--- a/hgext/rebase.py Mon Dec 31 17:44:18 2012 -0600
+++ b/hgext/rebase.py Mon Dec 31 17:45:52 2012 -0600
@@ -194,8 +194,9 @@
if not rebaseset:
repo.ui.debug('base is ancestor of destination\n')
result = None
- elif not keepf and repo.revs('first(children(%ld) - %ld)-hidden()',
- rebaseset, rebaseset):
+ elif (not (keepf or obsolete._enabled)
+ and repo.revs('first(children(%ld) - %ld)-hidden()',
+ rebaseset, rebaseset)):
raise util.Abort(
_("can't remove original changesets with"
" unrebased descendants"),