[Bug 3775] New: revset: or-joined rangeset(":")/ancestorspec("~")/parentspec("^") may unexpected result

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Tue Jan 22 03:41:10 CST 2013


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

          Priority: normal
            Bug ID: 3775
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: revset: or-joined
                    rangeset(":")/ancestorspec("~")/parentspec("^") may
                    unexpected result
          Severity: bug
    Classification: Unclassified
                OS: All
          Reporter: foozy at lares.dti.ne.jp
          Hardware: All
            Status: UNCONFIRMED
           Version: 2.5-rc
         Component: Mercurial
           Product: Mercurial

or-joined rangeset(":")/ancestorspec("~")/parentspec("^") revset
expressions may cause unexpected result like below:

  - "^"/parentspec():
    "R or R^1" is not equal to "R^1 or R". the former returns only "R".

  - "~"/ancestorspec():
    "R or R~1" is not equal to "R~1 or R". the former returns only "R".

  - ":"/rangeset():
    "10 or (10 or 15):" is not equal to "(10 or 15): or 10". the
    former returns only 15 or grater.

The latter of or-joined expressions are evaluated incorrectly,
because predicates above don't take care about subset narrowing
by orset("or").

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


More information about the Mercurial-devel mailing list