##// END OF EJS Templates
rebase: don't use util.Abort for an internal error
Martin Geisler -
r13609:e035356d default
parent child Browse files
Show More
@@ -90,7 +90,7 b' def rebase(ui, repo, **opts):'
90 contf = opts.get('continue')
90 contf = opts.get('continue')
91 abortf = opts.get('abort')
91 abortf = opts.get('abort')
92 collapsef = opts.get('collapse', False)
92 collapsef = opts.get('collapse', False)
93 extrafn = opts.get('extrafn')
93 extrafn = opts.get('extrafn') # internal, used by e.g. hgsubversion
94 keepf = opts.get('keep', False)
94 keepf = opts.get('keep', False)
95 keepbranchesf = opts.get('keepbranches', False)
95 keepbranchesf = opts.get('keepbranches', False)
96 detachf = opts.get('detach', False)
96 detachf = opts.get('detach', False)
@@ -138,8 +138,7 b' def rebase(ui, repo, **opts):'
138 external = checkexternal(repo, state, targetancestors)
138 external = checkexternal(repo, state, targetancestors)
139
139
140 if keepbranchesf:
140 if keepbranchesf:
141 if extrafn:
141 assert not extrafn, 'cannot use both keepbranches and extrafn'
142 raise util.Abort(_('cannot use both keepbranches and extrafn'))
143 def extrafn(ctx, extra):
142 def extrafn(ctx, extra):
144 extra['branch'] = ctx.branch()
143 extra['branch'] = ctx.branch()
145
144
General Comments 0
You need to be logged in to leave comments. Login now