Mercurial > hg-stable
diff mercurial/localrepo.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 | e6bd5b403de0 |
children | 31d15f761631 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Mon Apr 04 16:21:57 2011 -0500 +++ b/mercurial/localrepo.py Mon Apr 04 16:21:59 2011 -0500 @@ -522,7 +522,7 @@ if isinstance(key, int): return self.changelog.node(key) elif key == '.': - return self.dirstate.parents()[0] + return self.dirstate.p1() elif key == 'null': return nullid elif key == 'tip':