[PATCH] bookmarks: add --only-bookmark option to log
David Shilvock
davels at telus.net
Tue Dec 9 23:53:06 CST 2008
On Tue, 09 Dec 2008 19:43:44 +0100 David Soria Parra <sn_ at gmx.net> wrote:
>> Maybe I'm missing something but isn't this what --follow is for? (follow
>> wasn't mentioned, but the comment in the original patch seems to suggest
>> that follow is what it wanted). What if --follow automatically turned a
>> single revision into a range terminated at 0.
>>
>> So "hg log -f -r mybookmark" would be interpreted as "hg log -f -r
>> mybookmark:0".
>>
>> You wouldn't normally use --follow with a single revision so hopefully this
>> won't be a backwards compatibility issue.
>
> I personally think that it is a bc issue and furthermore that if you add
> the --follow parameter it should just do what it says, and not changing
> the behaviour of other parameters. So even though I'm looking for a
> solution on that problem, I don't think that's the right way to do it.
>
> David
(I promise this is my last word on the topic)
The current behavior has "hg log -f" showing all ancestors of the working
directory parent (ie '.:0').
I'm just suggesting that it seems like a natural extension of that to have
"hg log -f -r REV" show all ancestors of REV (ie 'REV:0'). Especially
since follow with a single revision has no other real use.
It seems to provide a pleasant syntax for the original request without requiring
any new options.
--
DS
More information about the Mercurial-devel
mailing list