***UNCHECKED*** [issue3418] log: --follow-first is not working with revision specifier (-r)

Oleg Malashenko bugs at mercurial.selenic.com
Thu May 3 01:05:12 CDT 2012


New submission from Oleg Malashenko <oma.jc404 at gmail.com>:

I am trying to get the list of revisions between 1 and tip following only
first parents.

Doing this while working directory is on tip:

hg log --follow-first --template '{rev}:{node}\n' --branch default 
13:c37d72f1d9715b2c06277300fc122fc4ac81c155
12:9bafca6e148a9f0b164f847cbc95dc9d0f4eb667
11:056792c087d72fa836a45e365dfaba28dafe0ca5
3:0a2b3bd250863c29b443e17b35955bd4b071aade
2:fd516ae456e7a69a38c13827bb92e4bec54155b3
1:7639385e704b98eff4a162f8daafef824cc1d213
0:a51bfd809a3416576ea0ff03a3df7d98f5cc3f0c

produces correct results. Trying to narrow results with '-r' breaks
--follow-first behaviour

hg log --follow-first --template '{rev}:{node}\n' --branch default -r 1..tip
1:7639385e704b98eff4a162f8daafef824cc1d213
2:fd516ae456e7a69a38c13827bb92e4bec54155b3
3:0a2b3bd250863c29b443e17b35955bd4b071aade
4:4408150dfe23ed7f3c98cebbdef14f6b4fb80738
5:12d66212cb9fdc213b0aa508111dccf4851534fd
6:53c0f96b54366204529850e5615cf64395adc9d7
7:e4c1ae2d9c29aed658e4e0e4741cd09ef660fda5
8:30194909824852e1a6db7d557ced75b78f4c6120
9:b328dab6f33f77e383b735a3f596fca243f8154c
10:25835166fe5df6f7d0e7ba00cbb4fde51142ac3b
11:056792c087d72fa836a45e365dfaba28dafe0ca5
12:9bafca6e148a9f0b164f847cbc95dc9d0f4eb667
13:c37d72f1d9715b2c06277300fc122fc4ac81c155

... and returns all revisions in repository.

Test repository is attached.
==================================================================
Environment details:

Mercurial: 2.2 (installed with easy_install -U mercurial)
Python 2.4.3 (#1, Feb 22 2012, 16:05:45) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
OS: CentOS 5.8 amd64

----------
files: testrepo.tar.bz2
messages: 19863
nosy: omalashenko
priority: bug
status: unread
title: log: --follow-first is not working with revision specifier (-r)

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3418>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testrepo.tar.bz2
Type: application/x-bzip
Size: 4945 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120503/d9a3115e/attachment.bin>


More information about the Mercurial-devel mailing list