def relocate(repo, orig, dest):
"""rewrite <rev> on dest"""
+ if orig.rev() == dest.rev():
+ raise util.Abort(_('tried to relocade a node on top of itself'),
+ hint=_("This shouldn't happen. If you still "
+ "need to move changesets, please do so "
+ "manually with nothing to rebase - working directory parent is also destination"))
rebase = extensions.find('rebase')
# dummy state to trick rebase node
if not orig.p2().rev() == node.nullrev: