[evolution:evolve] use short hex instead of rev number
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 21 Sep 2011 03:49:59 +0200
changeset 94 780a222d547d
parent 93 1b962aaf0c7d
child 95 5dcece86aeb0
[evolution:evolve] use short hex instead of rev number
hgext/evolution.py
tests/test-evolution.t
--- a/hgext/evolution.py	Tue Sep 20 18:17:08 2011 +0200
+++ b/hgext/evolution.py	Wed Sep 21 03:49:59 2011 +0200
@@ -150,7 +150,7 @@
     assert obs.obsolete()
     newer = obsolete.newerversion(repo, obs.node())
     target = newer[-1]
-    repo.ui.status('hg relocate --rev %s %s\n' % (next, repo[target].rev()))
+    repo.ui.status('hg relocate --rev %s %s\n' % (repo[next], repo[target]))
 
 @command('^relocate',
     [
--- a/tests/test-evolution.t	Tue Sep 20 18:17:08 2011 +0200
+++ b/tests/test-evolution.t	Wed Sep 21 03:49:59 2011 +0200
@@ -202,7 +202,7 @@
   1	: a nifty feature - test
   0	: base - test
   $ hg evolve
-  hg relocate --rev 4 6
+  hg relocate --rev 8c7704f377af 1075109f9999
   $ hg up feature-B -q #prevent feature-A bookmark to move grml
   $ hg relocate -r 4 6 --traceback
   merging main-file-1