Mercurial > evolve
comparison tests/test-metaedit.t @ 3218:772cc931f085
metaedit: add support for storing a note in obsmarker
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 17 Nov 2017 03:14:08 +0530 |
parents | c9e7b8db9900 |
children | 73b4e84df0bd |
comparison
equal
deleted
inserted
replaced
3217:b6ba296532cb | 3218:772cc931f085 |
---|---|
132 TODO: support this | 132 TODO: support this |
133 $ hg metaedit '.^::.' | 133 $ hg metaedit '.^::.' |
134 abort: editing multiple revisions without --fold is not currently supported | 134 abort: editing multiple revisions without --fold is not currently supported |
135 [255] | 135 [255] |
136 | 136 |
137 $ HGEDITOR=cat hg metaedit '.^::.' --fold | 137 $ HGEDITOR=cat hg metaedit '.^::.' --fold --note "folding changesets using metaedit" |
138 HG: This is a fold of 2 changesets. | 138 HG: This is a fold of 2 changesets. |
139 HG: Commit message of changeset 6. | 139 HG: Commit message of changeset 6. |
140 | 140 |
141 E | 141 E |
142 | 142 |
158 | 158 |
159 $ glog -r . | 159 $ glog -r . |
160 @ 9:a08d35fd7d9d@default(draft) E | 160 @ 9:a08d35fd7d9d@default(draft) E |
161 | | 161 | |
162 ~ | 162 ~ |
163 | |
164 $ hg obslog -r . | |
165 @ a08d35fd7d9d (9) E | |
166 |\ | |
167 x | 212b2a2b87cd (8) F | |
168 | | rewritten(description, user, parent, content) as a08d35fd7d9d by test (Thu Jan 01 00:00:00 1970 +0000) | |
169 | | note: 'folding changesets using metaedit' | |
170 | | | |
171 | x c2bd843aa246 (6) E | |
172 | rewritten(description, content) as a08d35fd7d9d by test (Thu Jan 01 00:00:00 1970 +0000) | |
173 | note: 'folding changesets using metaedit' | |
174 | | |
175 x 587528abfffe (7) F | |
176 rewritten(user) as 212b2a2b87cd by test (Thu Jan 01 00:00:00 1970 +0000) | |
177 | |
163 | 178 |
164 no new commit is created here because the date is the same | 179 no new commit is created here because the date is the same |
165 $ HGEDITOR=cat hg metaedit | 180 $ HGEDITOR=cat hg metaedit |
166 E | 181 E |
167 | 182 |