[PATCH 2 of 2] Adding empty GPG signature comment when reading uncommented signature

Pierre THIERRY nowhere.man at levallois.eu.org
Fri Aug 31 15:47:53 CDT 2007


# HG changeset patch
# User Pierre THIERRY <nowhere.man at levallois.eu.org>
# Date 1188588335 -7200
# Node ID 0710672191e81f78170faf9e5d1eec6a6f845512
# Parent  f1159b971cdeea750f3037ff9c7dee0cbeff78cf
Adding empty GPG signature comment when reading uncommented signature

diff -r f1159b971cde -r 0710672191e8 hgext/gpg.py
--- a/hgext/gpg.py	Fri Aug 31 20:55:19 2007 +0200
+++ b/hgext/gpg.py	Fri Aug 31 21:25:35 2007 +0200
@@ -87,7 +87,10 @@ def sigwalk(repo):
         for l in fileiter:
             if not l:
                 continue
-            yield (l.split(" ", 3), (context, ln))
+            tmp = l.split(" ", 3)
+            if len(tmp) == 3:
+                tmp.append("")
+            yield (tmp, (context, ln))
             ln +=1
 
     fl = repo.file(".hgsigs")



More information about the Mercurial-devel mailing list