Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revset.py @ 13878:a8d13ee0ce68
misc: replace .parents()[0] with p1()
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 04 Apr 2011 16:21:59 -0500 |
parents | 02c3d4d44a92 |
children | ba669bc7f851 |
line wrap: on
line diff
--- a/mercurial/revset.py Mon Apr 04 16:21:57 2011 -0500 +++ b/mercurial/revset.py Mon Apr 04 16:21:59 2011 -0500 @@ -207,7 +207,7 @@ First parent of changesets in set, or the working directory. """ if x is None: - p = repo[x].parents()[0].rev() + p = repo[x].p1().rev() return [r for r in subset if r == p] ps = set()