hg log -f -r : foo.cpp gives an error
Bob Eby
ebyrob at gmail.com
Mon Jul 20 13:46:17 UTC 2015
See this link for where I got the idea to use:
hg log -r : foo.cpp
https://selenic.com/pipermail/mercurial/2010-April/031054.html
I'm perfectly happy to use:
hg log -f -r 0:tip foo.cpp
instead, but it does not reverse the order (when -f is specified)
as multirevs help would imply:
https://bitbucket.org/mirror/mercurial/src/47fbbc4845ff/mercurial/help/multirevs.txt
Thanks,
Robert
On Fri, Jul 17, 2015 at 5:56 PM, Matt Mackall <mpm at selenic.com> wrote:
> On Fri, 2015-07-17 at 14:10 -0500, Matt Mackall wrote:
>> On Fri, 2015-07-17 at 14:38 -0400, Bob Eby wrote:
>> > Hi Everyone,
>> >
>> > When I run:
>> >
>> > hg log -f -r : foo.cpp
>>
>> I have no idea what you'd expect this to do: following the history.. of
>> all the history is a bit meaningless.
>>
>> Or maybe you're just trying to control the order that's output.
>>
>> > on my repository I get some kind of error:
>> >
>> > hg: parse error at 1: not a prefix: end
>>
>> The simplest version of this bug is:
>>
>> $ hg log -r "(:)"
>> hg: parse error at 2: not a prefix: )
>>
>> And that's because ":" is not a valid revset (see hg help revsets), but
>> IS a valid legacy specifier (which we silently fall back to when we
>> can't parse something as a revset). Unfortunately, bare ":" is simply
>> too ambiguous to be part of revsets in any useful way and most of us
>> have forgotten it even exists.
>
> And then Yuya Nishihara sent a series of patches to fix this precise
> issue.. hours before I sent my email.
>
> --
> Mathematics is the supreme nostalgia of our time.
>
More information about the Mercurial
mailing list