##// END OF EJS Templates
rollback: improve message
Matt Mackall -
r10893:468876bc default
parent child Browse files
Show More
@@ -609,11 +609,12 b' class localrepository(repo.repository):'
609 609 try:
610 610 args = self.opener("undo.desc", "r").read().splitlines()
611 611 if len(args) >= 3 and self.ui.verbose:
612 desc = _("rolling back %s (%s) to revision %s\n") % (
613 args[1], args[2], args[0])
612 desc = _("rolling back to revision %s"
613 " (undo %s: %s)\n") % (
614 args[0], args[1], args[2])
614 615 elif len(args) >= 2:
615 desc = _("rolling back %s to revision %s\n") % (
616 args[1], args[0])
616 desc = _("rolling back to revision %s (undo %s)\n") % (
617 args[0], args[1])
617 618 except IOError:
618 619 desc = _("rolling back unknown transaction\n")
619 620 self.ui.status(desc)
@@ -71,7 +71,7 b' adding quux/file.py revisions'
71 71 files: 3/3 chunks (100.00%)
72 72 added 3 changesets with 3 changes to 3 files
73 73 updating the branch cache
74 rolling back push to revision 1
74 rolling back to revision 1 (undo push)
75 75 0:6675d58eff77
76 76
77 77 Extension disabled for lack of acl.sources
@@ -143,7 +143,7 b' added 3 changesets with 3 changes to 3 f'
143 143 calling hook pretxnchangegroup.acl: hgext.acl.hook
144 144 acl: changes have source "push" - skipping
145 145 updating the branch cache
146 rolling back push to revision 1
146 rolling back to revision 1 (undo push)
147 147 0:6675d58eff77
148 148
149 149 No [acl.allow]/[acl.deny]
@@ -221,7 +221,7 b' acl: allowing changeset ef1ea85a6374'
221 221 acl: allowing changeset f9cafe1212c8
222 222 acl: allowing changeset 911600dab2ae
223 223 updating the branch cache
224 rolling back push to revision 1
224 rolling back to revision 1 (undo push)
225 225 0:6675d58eff77
226 226
227 227 Empty [acl.allow]
@@ -799,7 +799,7 b' acl: allowing changeset ef1ea85a6374'
799 799 acl: allowing changeset f9cafe1212c8
800 800 acl: allowing changeset 911600dab2ae
801 801 updating the branch cache
802 rolling back push to revision 1
802 rolling back to revision 1 (undo push)
803 803 0:6675d58eff77
804 804
805 805 wilma can change files with a .txt extension
@@ -1160,6 +1160,6 b' acl: allowing changeset ef1ea85a6374'
1160 1160 acl: allowing changeset f9cafe1212c8
1161 1161 acl: allowing changeset 911600dab2ae
1162 1162 updating the branch cache
1163 rolling back push to revision 1
1163 rolling back to revision 1 (undo push)
1164 1164 0:6675d58eff77
1165 1165
@@ -62,7 +62,7 b' abort: cannot use --parent on non-merge '
62 62 # backout with valid parent should be ok
63 63 removing d
64 64 changeset 5:10e5328c8435 backs out changeset 4:b2f3bb92043e
65 rolling back commit to revision 5
65 rolling back to revision 5 (undo commit)
66 66 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
67 67 removing c
68 68 changeset 5:033590168430 backs out changeset 4:b2f3bb92043e
@@ -154,7 +154,7 b' checking manifests'
154 154 crosschecking files in changesets and manifests
155 155 checking files
156 156 4 files, 9 changesets, 7 total revisions
157 rolling back pull to revision 5
157 rolling back to revision 5 (undo pull)
158 158 % should fail
159 159 abort: --base is incompatible with specifying a destination
160 160 abort: repository default-push not found!
@@ -187,7 +187,7 b' checking manifests'
187 187 crosschecking files in changesets and manifests
188 188 checking files
189 189 4 files, 9 changesets, 7 total revisions
190 rolling back unbundle to revision 3
190 rolling back to revision 3 (undo unbundle)
191 191 % 2
192 192 2:d62976ca1e50
193 193 adding changesets
@@ -202,7 +202,7 b' checking manifests'
202 202 crosschecking files in changesets and manifests
203 203 checking files
204 204 2 files, 5 changesets, 5 total revisions
205 rolling back unbundle to revision 3
205 rolling back to revision 3 (undo unbundle)
206 206 adding changesets
207 207 adding manifests
208 208 adding file changes
@@ -215,7 +215,7 b' checking manifests'
215 215 crosschecking files in changesets and manifests
216 216 checking files
217 217 3 files, 7 changesets, 6 total revisions
218 rolling back unbundle to revision 3
218 rolling back to revision 3 (undo unbundle)
219 219 adding changesets
220 220 adding manifests
221 221 adding file changes
@@ -37,7 +37,7 b' adding file changes'
37 37 added 9 changesets with 7 changes to 4 files (+1 heads)
38 38 (run 'hg heads' to see heads, 'hg merge' to merge)
39 39 ====== Rollback empty
40 rolling back pull to revision 0
40 rolling back to revision 0 (undo pull)
41 41 ====== Pull full.hg into empty again (using --cwd)
42 42 pulling from ../full.hg
43 43 requesting all changes
@@ -55,7 +55,7 b' pulling from full.hg'
55 55 searching for changes
56 56 no changes found
57 57 ====== Rollback empty
58 rolling back pull to revision 0
58 rolling back to revision 0 (undo pull)
59 59 ====== Pull full.hg into empty again (using -R)
60 60 pulling from full.hg
61 61 requesting all changes
@@ -123,7 +123,7 b' adding file changes'
123 123 added 9 changesets with 7 changes to 4 files (+1 heads)
124 124 (run 'hg heads' to see heads, 'hg merge' to merge)
125 125 ====== Rollback empty
126 rolling back pull to revision 0
126 rolling back to revision 0 (undo pull)
127 127 ====== Log -R bundle:empty+full.hg
128 128 8 7 6 5 4 3 2 1 0
129 129 ====== Pull full.hg into empty again (using -R; with hook)
@@ -45,7 +45,7 b' converting...'
45 45 2 Initial revision
46 46 1 import
47 47 filtering out empty revision
48 rolling back commit to revision 1
48 rolling back to revision 1 (undo commit)
49 49 0 ci0
50 50 updating tags
51 51 c
@@ -43,7 +43,7 b" examine changes to 'a'? [Ynsfdaq?]"
43 43 c
44 44 record this change to 'a'? [Ynsfdaq?]
45 45
46 rolling back commit to revision 1
46 rolling back to revision 1 (undo commit)
47 47 % qrecord
48 48 diff --git a/a b/a
49 49 old mode 100644
@@ -101,7 +101,7 b' adding manifests'
101 101 adding file changes
102 102 added 1 changesets with 1 changes to 1 files
103 103 (run 'hg update' to get a working copy)
104 rolling back pull to revision 4
104 rolling back to revision 4 (undo pull)
105 105 preoutgoing hook: HG_SOURCE=pull
106 106 preoutgoing.forbid hook: HG_SOURCE=pull
107 107 pulling from ../a
@@ -182,7 +182,7 b' parent: 0'
182 182 applying ../patch1
183 183 applying ../patch2
184 184 applied 1d4bd90af0e4
185 rolling back commit to revision 2
185 rolling back to revision 2 (undo commit)
186 186 parent: 1
187 187 % hg import in a subdirectory
188 188 requesting all changes
@@ -198,7 +198,7 b' diff -r ef63ca68695b c'
198 198 +do not process $Id:
199 199 +xxx $
200 200 % rollback
201 rolling back commit to revision 2
201 rolling back to revision 2 (undo commit)
202 202 % status
203 203 A c
204 204 % update -C
@@ -266,7 +266,7 b' committed changeset 3:d14c712653769de926'
266 266 % status
267 267 ? c
268 268 % rollback
269 rolling back commit to revision 3
269 rolling back to revision 3 (undo commit)
270 270 % status
271 271 R a
272 272 ? c
@@ -308,7 +308,7 b' xxx $'
308 308 ignore $Id$
309 309
310 310 % rollback
311 rolling back commit to revision 3
311 rolling back to revision 3 (undo commit)
312 312 % clean update
313 313 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
314 314 % kwexpand/kwshrink on selected files
@@ -62,7 +62,7 b' foo'
62 62 default
63 63 bar
64 64 % test for invalid branch cache
65 rolling back commit to revision 5
65 rolling back to revision 5 (undo commit)
66 66 changeset: 4:4909a3732169
67 67 branch: foo
68 68 tag: tip
@@ -95,10 +95,10 b' diff -r cb9a9f314b8b -r 0647d048b600 a'
95 95 +a
96 96 (run 'hg update' to get a working copy)
97 97 % fail for config file is missing
98 rolling back pull to revision 1
98 rolling back to revision 1 (undo pull)
99 99 pull failed
100 100 % pull
101 rolling back pull to revision 1
101 rolling back to revision 1 (undo pull)
102 102 pulling from ../a
103 103 searching for changes
104 104 adding changesets
@@ -129,7 +129,7 b' diff -r cb9a9f314b8b -r 0647d048b600 a'
129 129 +a
130 130 (run 'hg update' to get a working copy)
131 131 % pull
132 rolling back pull to revision 1
132 rolling back to revision 1 (undo pull)
133 133 pulling from ../a
134 134 searching for changes
135 135 adding changesets
@@ -19,7 +19,7 b' summary: add foo'
19 19 abort: unknown revision 'missing'!
20 20 % pull multiple revisions with update
21 21 0:bbd179dfa0a7
22 rolling back pull to revision 0
22 rolling back to revision 0 (undo pull)
23 23 % pull -r 0
24 24 changeset: 0:bbd179dfa0a7
25 25 tag: tip
@@ -25,7 +25,7 b' remote: adding file changes'
25 25 remote: added 1 changesets with 1 changes to 1 files
26 26 % serve errors
27 27 changegroup hook: HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_URL=remote:http
28 rolling back serve to revision 1
28 rolling back to revision 1 (undo serve)
29 29 % expect authorization error: all users denied
30 30 abort: authorization failed
31 31 pushing to http://localhost:$HGPORT/
@@ -34,7 +34,7 b' 2 files updated, 0 files merged, 0 files'
34 34 (branch merge, don't forget to commit)
35 35 % commit issue 1476
36 36 copies: c2 (c1)
37 rolling back commit to revision 3
37 rolling back to revision 3 (undo commit)
38 38 2 files updated, 0 files merged, 2 files removed, 0 files unresolved
39 39 % merge heads again
40 40 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
@@ -9,7 +9,7 b' user: test'
9 9 date: Mon Jan 12 13:46:40 1970 +0000
10 10 summary: test
11 11
12 rolling back commit to revision 0
12 rolling back to revision 0 (undo commit)
13 13 checking changesets
14 14 checking manifests
15 15 crosschecking files in changesets and manifests
@@ -18,14 +18,14 b' 0 files, 0 changesets, 0 total revisions'
18 18 A a
19 19 % Test issue 902
20 20 marked working directory as branch test
21 rolling back commit to revision 0
21 rolling back to revision 0 (undo commit)
22 22 default
23 23 % Test issue 1635 (commit message saved)
24 24 .hg/last-message.txt:
25 25 test2
26 26 % Test rollback of hg before issue 902 was fixed
27 27 marked working directory as branch test
28 rolling back commit to revision 0
28 rolling back to revision 0 (undo commit)
29 29 Named branch could not be reset, current branch still is: test
30 30 test
31 31 % rollback by pretxncommit saves commit message (issue 1635)
@@ -111,7 +111,7 b' date: Thu Jan 01 00:00:00 1970 +0'
111 111 summary: Removed tag bar
112 112
113 113 % rollback undoes tag operation
114 rolling back commit to revision 5
114 rolling back to revision 5 (undo commit)
115 115 tip 4:0c192d7d5e6b
116 116 bar 1:78391a272241
117 117 tip 4:0c192d7d5e6b
@@ -75,7 +75,7 b' summary: add a'
75 75
76 76
77 77 % rolling back
78 rolling back push to revision 2
78 rolling back to revision 2 (undo push)
79 79 % incoming
80 80 2:faba9097cad4
81 81 % pull
@@ -104,7 +104,7 b' summary: add a'
104 104 % no new revs, no update
105 105 0:1f0dee641bb7
106 106 % rollback
107 rolling back pull to revision 2
107 rolling back to revision 2 (undo pull)
108 108 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
109 109 0:1f0dee641bb7
110 110 % pull -u takes us back to branch foo
@@ -116,7 +116,7 b' date: Thu Jan 01 00:00:00 1970 +0'
116 116 summary: new head of branch foo
117 117
118 118 % rollback
119 rolling back pull to revision 2
119 rolling back to revision 2 (undo pull)
120 120 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
121 121 % parents
122 122 0:1f0dee641bb7
General Comments 0
You need to be logged in to leave comments. Login now