To get the trunk version of file webui.wiki, you can use (in bash):

$ fossil artifact `fossil artifact $(fossil info trunk | grep uuid | tr -s "
" | cut -d" " -f2) | grep webui.wiki | cut -d" " -f3`

What it does is:
Get uuid of the last trunk commit. Then get the manifest for that commit.
Then check the uuid of the file we are interested in. Then get that file.
Note that this might break in case of delta manifests. That will require
more work, but the principle will stay the same.

Mark

On Sun, Mar 13, 2011 at 1:24 PM, David Bovill <da...@architex.tv> wrote:

> The zip file is for the entire checkout - any way to download the latest
> version of a single file without referring to a particular version with a
> sha1?
>
> If not how can I deduce the sha1 of the latest commit of a given file based
> on parsing the output of fossil shell commands?
>
>
> On 12 March 2011 22:57, Richard Hipp <d...@sqlite.org> wrote:
>
>> Hi Richard - the above style url, or  
>> http://.../raw/libOPN_IRC.livecode?name=tip
>>> leads to an http download of the manifest file, not that actual file the
>>> manifest refers to. Any other thoughts?
>>>
>>
>>
>>     http://.../zip/checkout.zip?name=trunk
>>
>
> _______________________________________________
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to