Skip to content
Snippets Groups Projects
Commit ff01506c authored by Siddharth Agarwal's avatar Siddharth Agarwal
Browse files

test-mq-strip.t: add a test for strip --keep with clean working dir

This helped uncover a bug in a patchset I've been writing.
parent 0509ae08
No related branches found
No related tags found
No related merge requests found
......@@ -427,6 +427,9 @@
$ hg add b
$ hg commit -mb
$ touch c
... with a clean working dir
$ hg add c
$ hg rm bar
$ hg commit -mc
......@@ -430,6 +433,19 @@
$ hg add c
$ hg rm bar
$ hg commit -mc
$ hg status
$ hg strip --keep tip
saved backup bundle to $TESTTMP/test/.hg/strip-backup/*-backup.hg (glob)
$ hg status
! bar
? c
... with a dirty working dir
$ hg add c
$ hg rm bar
$ hg commit -mc
$ hg status
$ echo b > b
$ echo d > d
$ hg strip --keep tip
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment