comparison tests/test-touch.t @ 4710:0e0731406efd

rewriteutil: allow rewriting merge commits (issue4561) This patch simply allows rewriteutil.rewrite() to work with commits with multiple parents (i.e. merges). That function is used in such commands as fold, metaedit, touch, rewind. The issue 4561 is marked as easy, the limitation is called unnecessary, no tests fail after this change. What can go wrong.
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 09 Jul 2019 17:08:34 +0800
parents cc3569da7150
children b69497b23d31
comparison
equal deleted inserted replaced
4709:cc3569da7150 4710:0e0731406efd
184 $ hg prune -r . 184 $ hg prune -r .
185 0 files updated, 0 files merged, 2 files removed, 0 files unresolved 185 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
186 working directory is now at * (glob) 186 working directory is now at * (glob)
187 1 changesets pruned 187 1 changesets pruned
188 $ hg touch 16 --hidden 188 $ hg touch 16 --hidden
189 abort: cannot amend merge changesets 189 $ hg glog -r '12+15+17'
190 [255] 190 o 17: merge
191 |\
192 | o 15: ab
193 |
194 @ 12: move
195 |
196 ~