Show More
@@ -577,11 +577,14 b' def pullrebase(orig, ui, repo, *args, **' | |||||
577 | # there was nothing to rebase we force an update |
|
577 | # there was nothing to rebase we force an update | |
578 | hg.update(repo, dest) |
|
578 | hg.update(repo, dest) | |
579 | else: |
|
579 | else: | |
|
580 | if opts.get('tool'): | |||
|
581 | raise util.Abort(_('--tool can only be used with --rebase')) | |||
580 | orig(ui, repo, *args, **opts) |
|
582 | orig(ui, repo, *args, **opts) | |
581 |
|
583 | |||
582 | def uisetup(ui): |
|
584 | def uisetup(ui): | |
583 | 'Replace pull with a decorator to provide --rebase option' |
|
585 | 'Replace pull with a decorator to provide --rebase option' | |
584 | entry = extensions.wrapcommand(commands.table, 'pull', pullrebase) |
|
586 | entry = extensions.wrapcommand(commands.table, 'pull', pullrebase) | |
585 | entry[1].append(('', 'rebase', None, |
|
587 | entry[1].append(('', 'rebase', None, | |
586 | _("rebase working directory to branch head")) |
|
588 | _("rebase working directory to branch head"))) | |
587 | ) |
|
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