On Sat, Mar 12, 2011 at 12:12 PM, David Bovill <[email protected]> wrote:

> Is there a syntax for constructing a url which would directly download a
> file from the repository? Looking at the way the web site is constructed it
> looks like there are only direct urls to a particular artifact - I want to
> use a url to link to the latest version of the file, not a particular
> artifact.
>
> As an example I have set up a multiple repository we site, and the url to a
> particular version of a file looks like this:
>
>    - http://...
>    /raw/libOPN_IRC.livecode?name=bf6a5a5751878cf242e2733656554ec131f3657c
>
> If I now update this file, then the above url will no longer point to the
> http download url for the latest file. Is there a way to construct this - or
> will I have to write a custom cgi that calls fossil via the command line?
>

In the name=NAME part of the URL, the NAME does not have to be a SHA1 hash.
It can be any of the forms described at
http://www.fossil-scm.org/fossil/doc/trunk/www/checkin_names.wiki such as
"trunk".  So perhaps you could use:

    http://.../raw/libOPEN_IRC.livecode?name=trunk





> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>


-- 
D. Richard Hipp
[email protected]
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to