[Bug 3750] New: All revset ancestor() function to take one or two revset arguments

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Tue Jan 1 00:50:07 UTC 2013


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

          Priority: normal
            Bug ID: 3750
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: All revset ancestor() function to take one or two
                    revset arguments
          Severity: bug
    Classification: Unclassified
                OS: Mac OS
          Reporter: jruderman at gmail.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: unspecified
         Component: Mercurial
           Product: Mercurial

I'm trying to make a revset that means "parent, or for merges, common ancestor
of the parents".  But I'm having trouble making one that works in all cases.

> hg log -r "ancestor(p1(x), p2(x))"

hg: parse error: ancestor arguments must be single revisions
(if x is not a merge changset)

> "ancestor(parents(x))"

hg: parse error: ancestor requires two arguments

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


More information about the Mercurial-devel mailing list