diff hgext/qsync.py @ 201:94360b577857

qsync: display short node repr on error
author David Douard <david.douard@logilab.fr>
date Tue, 03 Apr 2012 17:47:15 +0200
parents ccbadfae1d06
children 9400e234b3d7
line wrap: on
line diff
--- a/hgext/qsync.py	Mon Apr 02 17:40:26 2012 +0200
+++ b/hgext/qsync.py	Tue Apr 03 17:47:15 2012 +0200
@@ -151,6 +151,7 @@
         if newnodes:
             newnodes = [n for n in newnodes if n] # remove killing
             if len(newnodes) > 1:
+                newnodes = [short(nodes[0]) for nodes in newnodes]
                 raise util.Abort('%s have more than one newer version: %s'% (oldname, newnodes))
             if newnodes:
                 # else, changeset have been killed