Rename parent1 to p decodefilter
authorChristian Ebert <blacktrash@gmx.net>
Fri, 15 Dec 2006 01:21:56 +0100
branchdecodefilter
changeset 16 e29cf107baf2
parent 15 4bd44185f781
child 85 c55a1a72d7af
Rename parent1 to p
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