comparison 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
comparison
equal deleted inserted replaced
13877:653121e6941f 13878:a8d13ee0ce68
520 520
521 def lookup(self, key): 521 def lookup(self, key):
522 if isinstance(key, int): 522 if isinstance(key, int):
523 return self.changelog.node(key) 523 return self.changelog.node(key)
524 elif key == '.': 524 elif key == '.':
525 return self.dirstate.parents()[0] 525 return self.dirstate.p1()
526 elif key == 'null': 526 elif key == 'null':
527 return nullid 527 return nullid
528 elif key == 'tip': 528 elif key == 'tip':
529 return self.changelog.tip() 529 return self.changelog.tip()
530 n = self.changelog._match(key) 530 n = self.changelog._match(key)