diff hgext/evolution.py @ 91:5b8d08c78854

[evolution:relocate] propertly interpred src and destination.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Tue, 20 Sep 2011 18:15:48 +0200
parents 64fe5a4f877e
children 5b23cdf998d0
line wrap: on
line diff
--- a/hgext/evolution.py	Tue Sep 13 15:35:49 2011 +0200
+++ b/hgext/evolution.py	Tue Sep 20 18:15:48 2011 +0200
@@ -162,8 +162,8 @@
     """relocate a changeset"""
     wlock = repo.wlock()
     try:
-        src = repo[rev]
-        dest = repo[dest]
+        src = scmutil.revsingle(repo, rev, rev)
+        dest = scmutil.revsingle(repo, dest, dest)
         if src == src.ancestor(dest):
             raise util.Abort(_('source is ancestor of destination'))
         relocate(repo, src.rev(), dest.rev())