[Bug 4396] New: revset: rev(tip+1) appears wrongly (default branch)

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Tue Sep 30 08:02:52 CDT 2014


http://bz.selenic.com/show_bug.cgi?id=4396

          Priority: normal
            Bug ID: 4396
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: revset: rev(tip+1) appears wrongly (default branch)
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: yuya at tcha.org
          Hardware: PC
            Status: UNCONFIRMED
           Version: unspecified
         Component: Mercurial
           Product: Mercurial

Bisect says the first bad revision is

changeset:   22544:bbf4f3dfd700
user:        Pierre-Yves David <pierre-yves.david at fb.com>
date:        Wed Sep 17 11:00:09 2014 -0700
summary:     revset: use `subset &` in `rev`

but actually this problem seems to be caused by fullreposet.__and__.
fullreposet.__and__ does not filter out invalid revision.

Step to reproduce:

% hg init repo
% cd repo 
% touch foo
% hg ci -Am foo
% hg debugrevspec 'rev(1)'
1
% hg log -r 'rev(1)'
changeset:   1:000000000000
parent:      -1:000000000000
user:        
date:        Thu Jan 01 00:00:00 1970 +0000
summary:

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list