Mercurial > hg-stable
diff hgext/rebase.py @ 17028:efd2e14f7235
merge with crew
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 21 Jun 2012 17:37:02 -0500 |
parents | 50f434510da6 6c05eebd9fab |
children | fba17a64fa49 |
line wrap: on
line diff
--- a/hgext/rebase.py Fri May 18 12:45:47 2012 -0700 +++ b/hgext/rebase.py Thu Jun 21 17:37:02 2012 -0500 @@ -558,10 +558,11 @@ def abort(repo, originalwd, target, state): 'Restore the repository to its original state' dstates = [s for s in state.values() if s != nullrev] - if [d for d in dstates if not repo[d].mutable()]: - repo.ui.warn(_("warning: immutable rebased changeset detected, " - "can't abort\n")) - return -1 + immutable = [d for d in dstates if not repo[d].mutable()] + if immutable: + raise util.Abort(_("can't abort rebase due to immutable changesets %s") + % ', '.join(str(repo[r]) for r in immutable), + hint=_('see hg help phases for details')) descendants = set() if dstates: