comparison tests/test-phases.t @ 16622:e4451d7432fa

test-phases: test changing null revision phase The behaviour is correct but for bad reasons: the repo.set() call in phase command fails for '-1'. It should be rejected explicitely by phase boundary commands, sadly this is hard to do because phase changes are not applied atomically.
author Patrick Mezard <patrick@mezard.eu>
date Thu, 10 May 2012 18:21:15 +0200
parents 39d1f83eb05d
children 58edd786e96f
comparison
equal deleted inserted replaced
16621:8c3c9031f5aa 16622:e4451d7432fa
7 > hg ci -m "$message" $* 7 > hg ci -m "$message" $*
8 > } 8 > }
9 9
10 $ hg init initialrepo 10 $ hg init initialrepo
11 $ cd initialrepo 11 $ cd initialrepo
12
13 Cannot change null revision phase
14
15 $ hg phase --force --secret null
16 abort: unknown revision '-1'!
17 [255]
18 $ hg phase null
19 -1: public
20
12 $ mkcommit A 21 $ mkcommit A
13 22
14 New commit are draft by default 23 New commit are draft by default
15 24
16 $ hglog 25 $ hglog