A ``debugobsolete`` command was added. It adds an obsolete relation between two
+Note that rebased changesets are not marked obsolete rather than being stripped
+In this experimental extensions, this is done forcing the --keep option. Trying
+to use the --keep option of rebase with this extensionn this experimental
+extension will cause such a call to abort. Until better releasen please use
+graft command to rebase and copy changesets.
def cmdrebase(orig, ui, repo, *args, **kwargs):
- oldkeep = kwargs.pop('keep', False)
- ui.warn('WARNING --keep option ignored by experimental obsolete extension')
+ if kwargs.get('keep', False):
+ raise util.Abort(_('rebase --keep option is unsupported with obsolete '
+ 'extension'), hint=_("see 'hg help obsolete'"))
return orig(ui, repo, *args, **kwargs)