mirror of
https://github.com/frej/fast-export.git
synced 2025-11-06 11:15:39 +01:00
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 <pdmef@gmx.net>
This commit is contained in:
@@ -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
|
# get list of hg's branches to verify, don't take all git has
|
||||||
for _,_,b in l:
|
for _,_,b in l:
|
||||||
b=get_branch(b)
|
b=get_branch(b)
|
||||||
sys.stderr.write('Verifying branch [%s]\n' % b)
|
|
||||||
sha1=getsha1(b)
|
sha1=getsha1(b)
|
||||||
c=cache.get(b)
|
c=cache.get(b)
|
||||||
|
if sha1!=None and c!=None:
|
||||||
|
sys.stderr.write('Verifying branch [%s]\n' % b)
|
||||||
if sha1!=c:
|
if sha1!=c:
|
||||||
sys.stderr.write('Error: Branch [%s] modified outside hg2git:'
|
sys.stderr.write('Error: Branch [%s] modified outside hg2git:'
|
||||||
'\n%s (repo) != %s (cache)\n' % (b,sha1,c))
|
'\n%s (repo) != %s (cache)\n' % (b,sha1,c))
|
||||||
|
|||||||
Reference in New Issue
Block a user