[evolution:relocate] propertly interpred src and destination.
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 20 Sep 2011 18:15:48 +0200
changeset 91 5b8d08c78854
parent 90 a5f6194eb05c
child 92 5b23cdf998d0
[evolution:relocate] propertly interpred src and destination.
hgext/evolution.py
--- 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())