comparison tests/test-commit-amend.t @ 35244:98f97eb20597

rewriteutil: use precheck() in uncommit and amend commands Differential Revision: https://phab.mercurial-scm.org/D1526
author Pulkit Goyal <7895pulkit@gmail.com>
date Tue, 28 Nov 2017 05:50:45 +0530
parents 7f183c643eb6
children 4441705b7111
comparison
equal deleted inserted replaced
35243:490df753894d 35244:98f97eb20597
14 Refuse to amend public csets: 14 Refuse to amend public csets:
15 15
16 $ hg phase -r . -p 16 $ hg phase -r . -p
17 $ hg ci --amend 17 $ hg ci --amend
18 abort: cannot amend public changesets 18 abort: cannot amend public changesets
19 (see 'hg help phases' for details)
19 [255] 20 [255]
20 $ hg phase -r . -f -d 21 $ hg phase -r . -f -d
21 22
22 $ echo a >> a 23 $ echo a >> a
23 $ hg ci -Am 'base1' 24 $ hg ci -Am 'base1'