diff tests/test-largefiles.t @ 15900:29defa7d20f6 stable

largefiles: remove empty directories upon update (issue3202)
author Patrick Mezard <pmezard@gmail.com>
date Tue, 17 Jan 2012 11:29:32 +0100
parents 0c7b83a057aa
children 8435fa20dff9
line wrap: on
line diff
--- a/tests/test-largefiles.t	Sun Jan 15 13:39:09 2012 +0100
+++ b/tests/test-largefiles.t	Tue Jan 17 11:29:32 2012 +0100
@@ -571,6 +571,14 @@
   getting changed largefiles
   1 largefiles updated, 0 removed
 
+Test removing empty largefiles directories on update
+  $ test -d sub2 && echo "sub2 exists"
+  sub2 exists
+  $ hg update -q null
+  $ test -d sub2 && echo "error: sub2 should not exist anymore"
+  [1]
+  $ hg update -q
+
 "revert" works on largefiles (and normal files too).
   $ echo hack3 >> normal3
   $ echo hack4 >> sub/normal4