hg2git.py: Only print verification message for branches we have
authorRocco Rutte <pdmef@gmx.net>
Wed, 14 Mar 2007 10:13:27 +0000 (10:13 +0000)
committerRocco Rutte <pdmef@gmx.net>
Wed, 14 Mar 2007 10:13:27 +0000 (10:13 +0000)
It's pointless for many branches to print the validation message for the
first revision already; the same counts for incremental runs.

Signed-off-by: Rocco Rutte <pdmef@gmx.net>
hg2git.py

index b411066..eb927a4 100644 (file)
--- a/hg2git.py
+++ b/hg2git.py
@@ -352,9 +352,10 @@ def verify_heads(ui,repo,cache,force):
   # get list of hg's branches to verify, don't take all git has
   for _,_,b in l:
     b=get_branch(b)
-    sys.stderr.write('Verifying branch [%s]\n' % b)
     sha1=getsha1(b)
     c=cache.get(b)
+    if sha1!=None and c!=None:
+      sys.stderr.write('Verifying branch [%s]\n' % b)
     if sha1!=c:
       sys.stderr.write('Error: Branch [%s] modified outside hg2git:'
         '\n%s (repo) != %s (cache)\n' % (b,sha1,c))