Show More
@@ -5889,6 +5889,7 b' def update(ui, repo, node=None, rev=None' | |||
|
5889 | 5889 | ui.status(_("updating bookmark %s\n") % repo._bookmarkcurrent) |
|
5890 | 5890 | elif brev in repo._bookmarks: |
|
5891 | 5891 | bookmarks.setcurrent(repo, brev) |
|
5892 | ui.status(_("(activating bookmark %s)\n") % brev) | |
|
5892 | 5893 | elif brev: |
|
5893 | 5894 | if repo._bookmarkcurrent: |
|
5894 | 5895 | ui.status(_("(leaving bookmark %s)\n") % |
@@ -24,6 +24,7 b' update to bookmark X' | |||
|
24 | 24 | |
|
25 | 25 | $ hg update X |
|
26 | 26 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
27 | (activating bookmark X) | |
|
27 | 28 | |
|
28 | 29 | list bookmarks |
|
29 | 30 | |
@@ -71,6 +72,7 b' list bookmarks' | |||
|
71 | 72 | Verify that switching to Z updates the current bookmark: |
|
72 | 73 | $ hg update Z |
|
73 | 74 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
75 | (activating bookmark Z) | |
|
74 | 76 | $ hg bookmark |
|
75 | 77 | Y 0:719295282060 |
|
76 | 78 | * Z -1:000000000000 |
@@ -78,6 +80,7 b' Verify that switching to Z updates the c' | |||
|
78 | 80 | Switch back to Y for the remaining tests in this file: |
|
79 | 81 | $ hg update Y |
|
80 | 82 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
83 | (activating bookmark Y) | |
|
81 | 84 | |
|
82 | 85 | delete bookmarks |
|
83 | 86 | |
@@ -152,6 +155,7 b' bare update moves the active bookmark fo' | |||
|
152 | 155 | $ hg bookmark X@2 -r 2 |
|
153 | 156 | $ hg update X |
|
154 | 157 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
158 | (activating bookmark X) | |
|
155 | 159 | $ hg bookmarks |
|
156 | 160 | * X 0:719295282060 |
|
157 | 161 | X@1 1:cc586d725fbe |
@@ -65,6 +65,7 b'' | |||
|
65 | 65 | |
|
66 | 66 | $ hg up -C e |
|
67 | 67 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
68 | (activating bookmark e) | |
|
68 | 69 | $ hg merge |
|
69 | 70 | abort: no matching bookmark to merge - please merge with an explicit rev or bookmark |
|
70 | 71 | (run 'hg heads' to see all heads) |
@@ -99,6 +100,7 b'' | |||
|
99 | 100 | |
|
100 | 101 | $ hg up -C e |
|
101 | 102 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
103 | (activating bookmark e) | |
|
102 | 104 | $ hg bookmarks |
|
103 | 105 | b 1:d2ae7f538514 |
|
104 | 106 | c 3:b8f96cf4688b |
@@ -118,6 +118,7 b' bookmark rev 0 again' | |||
|
118 | 118 | |
|
119 | 119 | $ hg update X |
|
120 | 120 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
121 | (activating bookmark X) | |
|
121 | 122 | $ echo c > c |
|
122 | 123 | $ hg add c |
|
123 | 124 | $ hg commit -m 2 |
@@ -501,6 +502,7 b" update to current bookmark if it's not t" | |||
|
501 | 502 | $ hg update |
|
502 | 503 | updating to active bookmark Z |
|
503 | 504 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
505 | (activating bookmark Z) | |
|
504 | 506 | $ hg bookmarks |
|
505 | 507 | X2 1:925d80f479bb |
|
506 | 508 | Y 2:db815d6d32e6 |
@@ -513,6 +515,7 b' pull --update works the same as pull && ' | |||
|
513 | 515 | moving bookmark 'Y' forward from db815d6d32e6 |
|
514 | 516 | $ hg -R cloned-bookmarks-update update Y |
|
515 | 517 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
518 | (activating bookmark Y) | |
|
516 | 519 | $ hg -R cloned-bookmarks-update pull --update . |
|
517 | 520 | pulling from . |
|
518 | 521 | searching for changes |
@@ -490,6 +490,7 b' test hg strip -B bookmark' | |||
|
490 | 490 | $ hg bookmark -r 'c' 'delete' |
|
491 | 491 | $ hg up -C todelete |
|
492 | 492 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
493 | (activating bookmark todelete) | |
|
493 | 494 | $ hg strip -B nostrip |
|
494 | 495 | bookmark 'nostrip' deleted |
|
495 | 496 | abort: empty revision set |
@@ -482,6 +482,7 b' same subrepo should work if the subrepo ' | |||
|
482 | 482 | A *obstruct/other (glob) |
|
483 | 483 | Checked out revision 1. |
|
484 | 484 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
485 | (activating bookmark other) | |
|
485 | 486 | |
|
486 | 487 | This is surprising, but is also correct based on the current code: |
|
487 | 488 | $ echo "updating should (maybe) fail" > obstruct/other |
General Comments 0
You need to be logged in to leave comments.
Login now