Show More
@@ -628,6 +628,7 def pullrebase(orig, ui, repo, *args, ** | |||||
628 | ui.debug('--update and --rebase are not compatible, ignoring ' |
|
628 | ui.debug('--update and --rebase are not compatible, ignoring ' | |
629 | 'the update flag\n') |
|
629 | 'the update flag\n') | |
630 |
|
630 | |||
|
631 | movemarkfrom = repo['.'].node() | |||
631 | cmdutil.bailifchanged(repo) |
|
632 | cmdutil.bailifchanged(repo) | |
632 | revsprepull = len(repo) |
|
633 | revsprepull = len(repo) | |
633 | origpostincoming = commands.postincoming |
|
634 | origpostincoming = commands.postincoming | |
@@ -646,6 +647,9 def pullrebase(orig, ui, repo, *args, ** | |||||
646 | if dest != repo['.'].rev(): |
|
647 | if dest != repo['.'].rev(): | |
647 | # there was nothing to rebase we force an update |
|
648 | # there was nothing to rebase we force an update | |
648 | hg.update(repo, dest) |
|
649 | hg.update(repo, dest) | |
|
650 | if bookmarks.update(repo, [movemarkfrom], repo['.'].node()): | |||
|
651 | ui.status(_("updating bookmark %s\n") | |||
|
652 | % repo._bookmarkcurrent) | |||
649 | else: |
|
653 | else: | |
650 | if opts.get('tool'): |
|
654 | if opts.get('tool'): | |
651 | raise util.Abort(_('--tool can only be used with --rebase')) |
|
655 | raise util.Abort(_('--tool can only be used with --rebase')) |
@@ -77,6 +77,7 Invoke pull --rebase and nothing to reba | |||||
77 |
|
77 | |||
78 | $ cd ../c |
|
78 | $ cd ../c | |
79 |
|
79 | |||
|
80 | $ hg book norebase | |||
80 | $ hg pull --rebase |
|
81 | $ hg pull --rebase | |
81 | pulling from $TESTTMP/a (glob) |
|
82 | pulling from $TESTTMP/a (glob) | |
82 | searching for changes |
|
83 | searching for changes | |
@@ -86,6 +87,7 Invoke pull --rebase and nothing to reba | |||||
86 | added 1 changesets with 1 changes to 1 files |
|
87 | added 1 changesets with 1 changes to 1 files | |
87 | nothing to rebase |
|
88 | nothing to rebase | |
88 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
89 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
90 | updating bookmark norebase | |||
89 |
|
91 | |||
90 | $ hg tglog -l 1 |
|
92 | $ hg tglog -l 1 | |
91 | @ 2: 'R1' |
|
93 | @ 2: 'R1' |
General Comments 0
You need to be logged in to leave comments.
Login now