Show More
@@ -577,11 +577,14 b' def pullrebase(orig, ui, repo, *args, **' | |||
|
577 | 577 | # there was nothing to rebase we force an update |
|
578 | 578 | hg.update(repo, dest) |
|
579 | 579 | else: |
|
580 | if opts.get('tool'): | |
|
581 | raise util.Abort(_('--tool can only be used with --rebase')) | |
|
580 | 582 | orig(ui, repo, *args, **opts) |
|
581 | 583 | |
|
582 | 584 | def uisetup(ui): |
|
583 | 585 | 'Replace pull with a decorator to provide --rebase option' |
|
584 | 586 | entry = extensions.wrapcommand(commands.table, 'pull', pullrebase) |
|
585 | 587 | entry[1].append(('', 'rebase', None, |
|
586 | _("rebase working directory to branch head")) | |
|
587 | ) | |
|
588 | _("rebase working directory to branch head"))) | |
|
589 | entry[1].append(('t', 'tool', '', | |
|
590 | _("specify merge tool for rebase"))) |
General Comments 0
You need to be logged in to leave comments.
Login now