# HG changeset patch # User Siddharth Agarwal # Date 1367039245 25200 # Node ID ff01506c68523a92dc7df97e2853f4382300efb1 # Parent 0509ae083ec10f0c2a35d99041efd5e4040a8ed4 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. diff -r 0509ae083ec1 -r ff01506c6852 tests/test-mq-strip.t --- 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