comparison tests/test-userguide.t @ 5892:34cd08a46b6d mercurial-5.6

test-compat: merge mercurial-5.7 into mercurial-5.6
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 24 Apr 2021 20:01:39 +0800
parents 08c30eef85d3
children c0921b5277a0
comparison
equal deleted inserted replaced
5891:b13cb2d500ae 5892:34cd08a46b6d
18 example 2: unsafe amend with plain vanilla Mercurial: the original 18 example 2: unsafe amend with plain vanilla Mercurial: the original
19 commit is stripped 19 commit is stripped
20 $ hg commit --amend -u alice -d '1 0' -m 'implement feature Y' 20 $ hg commit --amend -u alice -d '1 0' -m 'implement feature Y'
21 saved backup bundle to $TESTTMP/t/.hg/strip-backup/6e725fd2be6f-42cc74d4-amend.hg (glob) 21 saved backup bundle to $TESTTMP/t/.hg/strip-backup/6e725fd2be6f-42cc74d4-amend.hg (glob)
22 $ hg log -r 23fe4ac6d3f1 22 $ hg log -r 23fe4ac6d3f1
23 abort: unknown revision '23fe4ac6d3f1' 23 abort: unknown revision '23fe4ac6d3f1'!
24 [255] 24 [255]
25 $ hg identify -in 25 $ hg identify -in
26 fe0ecd3bd2a4 1 26 fe0ecd3bd2a4 1
27 27
28 enable evolve for safe history modification 28 enable evolve for safe history modification
36 36
37 example 3: safe amend with "hg commit --amend" (figure 2) 37 example 3: safe amend with "hg commit --amend" (figure 2)
38 $ echo 'tweak feature Y' >> file1.c 38 $ echo 'tweak feature Y' >> file1.c
39 $ hg commit --amend -u alice -d '2 0' -m 'implement feature Y' 39 $ hg commit --amend -u alice -d '2 0' -m 'implement feature Y'
40 $ hg shortlog -q -r fe0ecd3bd2a4 40 $ hg shortlog -q -r fe0ecd3bd2a4
41 abort: hidden revision 'fe0ecd3bd2a4' was rewritten as: 934359450037 41 abort: hidden revision 'fe0ecd3bd2a4' was rewritten as: 934359450037!
42 (use --hidden to access hidden revisions) 42 (use --hidden to access hidden revisions)
43 [255] 43 [255]
44 $ hg --hidden shortlog -G 44 $ hg --hidden shortlog -G
45 @ 2:934359450037 draft implement feature Y 45 @ 2:934359450037 draft implement feature Y
46 | 46 |