##// END OF EJS Templates
rebase: drop redundant functions to keep branch and graft source explicitly...
Yuya Nishihara -
r27260:d755a953 default
parent child Browse files
Show More
@@ -47,17 +47,6 b" testedwith = 'internal'"
47 47 def _nothingtorebase():
48 48 return 1
49 49
50 def _savegraft(ctx, extra):
51 s = ctx.extra().get('source', None)
52 if s is not None:
53 extra['source'] = s
54 s = ctx.extra().get('intermediate-source', None)
55 if s is not None:
56 extra['intermediate-source'] = s
57
58 def _savebranch(ctx, extra):
59 extra['branch'] = ctx.branch()
60
61 50 def _makeextrafn(copiers):
62 51 """make an extrafn out of the given copy-functions.
63 52
@@ -228,7 +217,7 b' def rebase(ui, repo, **opts):'
228 217 collapsemsg = cmdutil.logmessage(ui, opts)
229 218 date = opts.get('date', None)
230 219 e = opts.get('extrafn') # internal, used by e.g. hgsubversion
231 extrafns = [_savegraft]
220 extrafns = []
232 221 if e:
233 222 extrafns = [e]
234 223 keepf = opts.get('keep', False)
@@ -398,10 +387,6 b' def rebase(ui, repo, **opts):'
398 387 ui.status(_('reopening closed branch head %s\n') % dest)
399 388
400 389 if keepbranchesf:
401 # insert _savebranch at the start of extrafns so if
402 # there's a user-provided extrafn it can clobber branch if
403 # desired
404 extrafns.insert(0, _savebranch)
405 390 if collapsef:
406 391 branches = set()
407 392 for rev in state:
General Comments 0
You need to be logged in to leave comments. Login now