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