site

(Pierre-Yves David)
2011-09-20: [evolution:relocate] propertly interpred src and destination.

[evolution:relocate] propertly interpred src and destination.

diff --git a/hgext/evolution.py b/hgext/evolution.py
--- a/hgext/evolution.py
+++ b/hgext/evolution.py
@@ -162,8 +162,8 @@ def cmdrelocate(ui, repo, dest, rev='.')
     """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())