Commits

Pierre-Yves David committed 5b8d08c

[evolution:relocate] propertly interpred src and destination.

Comments (0)

Files changed (1)

hgext/evolution.py

     """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())