Mercurial > hg > mercurial-crew
diff tests/test-largefiles.t @ 15786:aca0f2b3c7e3 stable
largefiles: fix confusion upon removal of added largefile (issue3176)
This patch makes "hg remove" work the same way on largefiles as it does on
regular Mercurial files. If you try to remove an added largefile, the removal
fails and you are instead prompted to use "hg forget" to undo the add.
author | Na'Tosha Bard <natosha@unity3d.com> |
---|---|
date | Sun, 08 Jan 2012 11:19:51 +0100 |
parents | 5b66e55c0d93 |
children | 0c7b83a057aa |
line wrap: on
line diff
--- a/tests/test-largefiles.t +++ b/tests/test-largefiles.t @@ -50,6 +50,18 @@ $ hg commit -m "remove files" $ ls sub + $ echo "testlargefile" > large1-test + $ hg add --large large1-test + $ hg st + A large1-test + $ hg rm large1-test + not removing large1-test: file has been marked for add (use forget to undo) + $ hg st + A large1-test + $ hg forget large1-test + $ hg st + ? large1-test + $ rm large1-test Copy both largefiles and normal files (testing that status output is correct).