On 11/20/2015 04:56 PM, Stephan Beal wrote:
> On Fri, Nov 20, 2015 at 10:52 PM, Eduard
> <eduard.c.dumitre...@gmail.com <mailto:eduard.c.dumitre...@gmail.com>>
> wrote:
>
>     On 11/20/2015 04:06 PM, Stephan Beal wrote:
>>      
>>
>>         $ f status
>>         tags:         pending-review
>>                       (user: andybradford)
>>         $ f up -n   
>>         UPDATE src/add.c
>>         
>> -------------------------------------------------------------------------------
>>         updated-to:   d83fc58dead2d03428a763b0890b8b5fbffb7957
>>         2014-01-09 13:17:23 UTC
>>         tags:         pending-review
>>         comment:      Add comments to better explain what it
>>         happening for the out-of-tree check
>>                       in the "add" command. (user: drh)
>>         changes:      1 file modified.
>>         $ f up -n pending-review
>>         updated-to:   2a1d7e0efc0f048b495815bac577d3c0f5c4d9a6
>>         2015-10-20 08:14:11 UTC
>>         tags:         pending-review
>>         comment:      Docker build "release" by default. Meant for
>>         upcoming Fossil release. (user:
>>                       jan.nijtmans)
>>         changes:      322 files modified.
>>
>>
>>     Aha, now i see the problem. i don't have a solution. In such a
>>     crazy case, using the UUID is really the only sane choice.
>     So uh is there any chance of adding an alias for this (@drh)? It's
>     easy to write a shell script that does it, but it seems to me that
>     this is something that should really be within fossil itself
>     (since not every fossil user necessarily knows how to write shell
>     scripts).
>
>
> i don't think an alias is needed - simply leave out the branch name
> when you do 'update' (or pass the name 'current'). Then, according to
> the code-level docs, if you leave out a name or use 'current', it will
> look for a direct ancestor. Try it with 'current' and see if that
> solves your case.
The problem lies not with 'update'. The problem is that there's no way
to refer within other commands (specifically 'diff') to the commit that
'update' (with no VERSION argument) would update to. In the above
example, I would like there to be some alias "update-target" that would
resolve to d83fc58dead2d03428a763b0890b8b5fbffb7957 (not actually
suggesting that as a name, there's probably a better name for it), so
that I could do "fossil diff --from current --to update-target".

Best,
Eduard

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
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