--- a/hgext/rebase.py Sun Oct 11 13:54:19 2009 -0500
+++ b/hgext/rebase.py Thu Oct 08 10:07:41 2009 +0200
@@ -381,9 +381,9 @@
if src:
commonbase = repo[src].ancestor(repo[dest])
if commonbase == repo[src]:
- raise util.Abort(_('cannot rebase an ancestor'))
+ raise util.Abort(_('source is ancestor of destination'))
if commonbase == repo[dest]:
- raise util.Abort(_('cannot rebase a descendant'))
+ raise util.Abort(_('source is descendant of destination'))
source = repo[src].rev()
else:
if base:
@@ -392,12 +392,12 @@
cwd = repo['.'].rev()
if cwd == dest:
- repo.ui.debug('already working on current\n')
+ repo.ui.debug('source and destination are the same\n')
return None
targetancestors = set(repo.changelog.ancestors(dest))
if cwd in targetancestors:
- repo.ui.debug('already working on the current branch\n')
+ repo.ui.debug('source is ancestor of destination\n')
return None
cwdancestors = set(repo.changelog.ancestors(cwd))