diff -r 653121e6941f -r a8d13ee0ce68 mercurial/localrepo.py --- 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':