changeset 19090:ff01506c6852 stable

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.
author Siddharth Agarwal <sid0@fb.com>
date Fri, 26 Apr 2013 22:07:25 -0700
parents 0509ae083ec1
children f01a351db791
files tests/test-mq-strip.t
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-mq-strip.t	Sat Apr 27 00:41:42 2013 +0200
+++ b/tests/test-mq-strip.t	Fri Apr 26 22:07:25 2013 -0700
@@ -427,9 +427,25 @@
   $ hg add b
   $ hg commit -mb
   $ touch c
+
+... with a clean working dir
+
   $ 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