hgk.py: fix for a bug introduced in 32fd512ca7c0
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 08 Sep 2006 00:56:37 +0200
changeset 3069 c6bfe536a1f9
parent 3067 fbd3f9fd645d
child 3070 9b480509658c
hgk.py: fix for a bug introduced in 32fd512ca7c0
hgext/hgk.py
--- a/hgext/hgk.py	Thu Sep 07 14:13:01 2006 +0200
+++ b/hgext/hgk.py	Fri Sep 08 00:56:37 2006 +0200
@@ -25,7 +25,7 @@
 
         change = repo.changelog.read(node1)
         mmap = repo.manifest.read(change[0])
-        empty = hg.nullid
+        empty = hg.short(hg.nullid)
 
         for f in modified:
             # TODO get file permissions
@@ -33,12 +33,12 @@
                                                       hg.short(mmap2[f]),
                                                       f, f)
         for f in added:
-            print ":000000 100664 %s %s N\t%s\t%s" % (hg.short(nullid),
+            print ":000000 100664 %s %s N\t%s\t%s" % (empty,
                                                       hg.short(mmap2[f]),
                                                       f, f)
         for f in removed:
             print ":100664 000000 %s %s D\t%s\t%s" % (hg.short(mmap[f]),
-                                                      hg.short(nullid),
+                                                      empty,
                                                       f, f)
     ##