diff tests/test-largefiles-misc.t @ 23741:f2893cd8d1e5

largefiles: pass a matcher instead of a raw file list to removelargefiles() This is consistent with addlargefiles(), and will make it easier to get the paths that are printed correct when recursing into subrepos or invoking from outside the repository. It also now restricts the path that the addremove is performed on if a path is given, as is done with normal files. The repo.status() call needs to exclude clean files when performing an addremove, because the addremove override method calling this used to pass the list of files to delete, which caused the matcher to only consider those files in building the status list. Now the matcher is restricted only to the extent that the caller requested- usually directories if at all. There's no reason for addremove to care about clean files anyway- we don't want them deleted.
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 28 Nov 2014 19:50:52 -0500
parents d944492445fa
children ce0731e58ac9
line wrap: on
line diff
--- a/tests/test-largefiles-misc.t	Sat Jan 03 17:50:21 2015 +0800
+++ b/tests/test-largefiles-misc.t	Fri Nov 28 19:50:52 2014 -0500
@@ -269,11 +269,13 @@
   $ mv subrepo/renamed-large.txt subrepo/large.txt
   $ hg -R subrepo add subrepo/normal.txt
 
-  $ hg addremove
+  $ hg addremove subrepo
+  $ hg addremove -S
   adding large.dat as a largefile
   $ rm large.dat
 
-  $ hg addremove
+  $ hg addremove subrepo
+  $ hg addremove -S
   removing large.dat
 
 Lock in subrepo, otherwise the change isn't archived