From f9879136a954dadc34e6ab7c8d9ae5e7e2154988 Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Wed, 14 Mar 2007 10:13:27 +0000 Subject: [PATCH] hg2git.py: Only print verification message for branches we have 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 --- hg2git.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hg2git.py b/hg2git.py index b411066..eb927a4 100644 --- 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)) -- 2.11.4.GIT