tests/test-uncommit.t
changeset 5236 6c0797ec50b6
parent 5230 39d282fd04e0
equal deleted inserted replaced
5235:a1cf66165e69 5236:6c0797ec50b6
    13   $ cd repo
    13   $ cd repo
    14 
    14 
    15 Cannot uncommit null changeset
    15 Cannot uncommit null changeset
    16 
    16 
    17   $ hg uncommit
    17   $ hg uncommit
    18   abort: cannot uncommit the null revision
    18   abort: cannot 'uncommit' the null revision
    19   (no changeset checked out)
    19   (no changeset checked out)
    20   [255]
    20   [255]
    21 
    21 
    22 Cannot uncommit public changeset
    22 Cannot uncommit public changeset
    23 
    23 
    24   $ echo a > a
    24   $ echo a > a
    25   $ hg ci -Am adda a
    25   $ hg ci -Am adda a
    26   $ hg phase --public .
    26   $ hg phase --public .
    27   $ hg uncommit
    27   $ hg uncommit
    28   abort: cannot uncommit public changesets: 07f494440405
    28   abort: cannot 'uncommit' public changesets: 07f494440405
    29   (see 'hg help phases' for details)
    29   (see 'hg help phases' for details)
    30   [255]
    30   [255]
    31   $ hg phase --force --draft .
    31   $ hg phase --force --draft .
    32 
    32 
    33 Cannot uncommit merge
    33 Cannot uncommit merge