##// END OF EJS Templates
rebase: backout changeset d755a9531fce...
Siddharth Agarwal -
r27976:8f4d3eeb stable
parent child Browse files
Show More
@@ -47,6 +47,17 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
50 61 def _makeextrafn(copiers):
51 62 """make an extrafn out of the given copy-functions.
52 63
@@ -208,7 +219,7 b' def rebase(ui, repo, **opts):'
208 219 collapsemsg = cmdutil.logmessage(ui, opts)
209 220 date = opts.get('date', None)
210 221 e = opts.get('extrafn') # internal, used by e.g. hgsubversion
211 extrafns = []
222 extrafns = [_savegraft]
212 223 if e:
213 224 extrafns = [e]
214 225 keepf = opts.get('keep', False)
@@ -398,6 +409,10 b' def rebase(ui, repo, **opts):'
398 409 ui.status(_('reopening closed branch head %s\n') % dest)
399 410
400 411 if keepbranchesf:
412 # insert _savebranch at the start of extrafns so if
413 # there's a user-provided extrafn it can clobber branch if
414 # desired
415 extrafns.insert(0, _savebranch)
401 416 if collapsef:
402 417 branches = set()
403 418 for rev in state:
General Comments 0
You need to be logged in to leave comments. Login now