Mercurial > public > mercurial-scm > hg
diff tests/test-largefiles.t @ 17576:e0081bb5450e stable
largefiles: exit from remove with 1 on warnings
This maintains the exit codes documented in commands.py.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 09 Sep 2012 20:18:08 -0400 |
parents | 98d6a10bc401 |
children | cbacb5a813dd |
line wrap: on
line diff
--- a/tests/test-largefiles.t Wed Sep 05 21:26:08 2012 -0400 +++ b/tests/test-largefiles.t Sun Sep 09 20:18:08 2012 -0400 @@ -79,6 +79,17 @@ C sub/normal2 $ rm sub/unknown +Test exit codes for remove warning cases (modified and still exiting) + + $ hg remove -A large1 + not removing large1: file still exists (use forget to undo) + [1] + $ echo 'modified' > large1 + $ hg remove large1 + not removing large1: file is modified (use forget to undo) + [1] + $ hg up -Cq + Remove both largefiles and normal files. $ hg remove normal1 large1 @@ -96,11 +107,15 @@ A large1-test $ hg rm large1-test not removing large1-test: file has been marked for add (use forget to undo) + [1] $ hg st A large1-test $ hg forget large1-test $ hg st ? large1-test + $ hg remove large1-test + not removing large1-test: file is untracked + [1] $ rm large1-test Copy both largefiles and normal files (testing that status output is correct).