hgk.py: use nullid instead of a constant
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Thu, 07 Sep 2006 14:01:00 +0200
changeset 3065 32fd512ca7c0
parent 3064 fe5c92529d1c
child 3066 035fd2029575
hgk.py: use nullid instead of a constant
hgext/hgk.py
--- a/hgext/hgk.py	Wed Sep 06 02:15:33 2006 +0200
+++ b/hgext/hgk.py	Thu Sep 07 14:01:00 2006 +0200
@@ -86,7 +86,7 @@
 
         change = repo.changelog.read(node1)
         mmap = repo.manifest.read(change[0])
-        empty = "0" * 40;
+        empty = hg.nullid
 
         for f in modified:
             # TODO get file permissions
@@ -94,12 +94,12 @@
                                                       hg.short(mmap2[f]),
                                                       f, f)
         for f in added:
-            print ":000000 100664 %s %s N\t%s\t%s" % (empty,
+            print ":000000 100664 %s %s N\t%s\t%s" % (hg.short(nullid),
                                                       hg.short(mmap2[f]),
                                                       f, f)
         for f in removed:
             print ":100664 000000 %s %s D\t%s\t%s" % (hg.short(mmap[f]),
-                                                      empty,
+                                                      hg.short(nullid),
                                                       f, f)
     ##