# HG changeset patch # User Christian Ebert # Date 1166142116 -3600 # Node ID e29cf107baf2e6e56124ce757f550120aa1ece3b # Parent 4bd44185f781aeb4915210232cb591a6b9c4a695 Rename parent1 to p diff -r 4bd44185f781 -r e29cf107baf2 hgkw/kwutil.py --- a/hgkw/kwutil.py Fri Dec 15 01:14:58 2006 +0100 +++ b/hgkw/kwutil.py Fri Dec 15 01:21:56 2006 +0100 @@ -8,14 +8,14 @@ # get hex if tip: - parent1 = repo.changelog.tip() + p = repo.changelog.tip() else: - parent1 = repo.dirstate.parents()[0] + p = repo.dirstate.parents()[0] if not node: - node = repo.changectx(parent1) + node = repo.changectx(p) - user, date = repo.changelog.read(parent1)[1:3] + user, date = repo.changelog.read(p)[1:3] user = util.shortuser(user) date = util.datestr(date=date, format=util.defaultdateformats[0]) # %Y-%m-%d %H:%M:%S