comparison tests/test-keyword.t @ 21707:e22cfd1ae97c stable

keyword: suppress keyword expansion while 'hg histedit' for internal merge Before this patch, 'hg histedit' may cause unexpected conflict, if 'hg histedit'-ed changes are located near lines in which keywords are embedded, because keywords are substituted with other strings in the working directory. This patch suppresses keyword expansion while 'hg histedit' for internal merge by adding 'histedit' to 'restricted' command list like 'merge'. Test in this patch just swaps order of revision #13 and #14: this is enough to cause internal merge.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Thu, 05 Jun 2014 16:47:14 +0900
parents 5c64c338fa9f
children 2668a78df8ba
comparison
equal deleted inserted replaced
21706:5c64c338fa9f 21707:e22cfd1ae97c
1269 do not process $Id: 1269 do not process $Id:
1270 xxx $ 1270 xxx $
1271 $Xinfo$ 1271 $Xinfo$
1272 -xxxx 1272 -xxxx
1273 1273
1274 Test restricted mode with histedit
1275
1276 $ cat <<EOF >> $HGRCPATH
1277 > [extensions]
1278 > histedit =
1279 > EOF
1280
1281 $ hg commit -m 'backout #11'
1282 $ hg histedit -q --command - 13 <<EOF
1283 > pick 49f5f2d940c3 14 backout #11
1284 > pick 01a68de1003a 13 9foobranch
1285 > EOF
1286
1274 $ cd .. 1287 $ cd ..