comparison 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
comparison
equal deleted inserted replaced
23740:9e1f4c65f5f5 23741:f2893cd8d1e5
267 ? subrepo/normal.txt 267 ? subrepo/normal.txt
268 ? subrepo/renamed-large.txt 268 ? subrepo/renamed-large.txt
269 $ mv subrepo/renamed-large.txt subrepo/large.txt 269 $ mv subrepo/renamed-large.txt subrepo/large.txt
270 $ hg -R subrepo add subrepo/normal.txt 270 $ hg -R subrepo add subrepo/normal.txt
271 271
272 $ hg addremove 272 $ hg addremove subrepo
273 $ hg addremove -S
273 adding large.dat as a largefile 274 adding large.dat as a largefile
274 $ rm large.dat 275 $ rm large.dat
275 276
276 $ hg addremove 277 $ hg addremove subrepo
278 $ hg addremove -S
277 removing large.dat 279 removing large.dat
278 280
279 Lock in subrepo, otherwise the change isn't archived 281 Lock in subrepo, otherwise the change isn't archived
280 282
281 $ hg ci -S -m "add normal file to top level" 283 $ hg ci -S -m "add normal file to top level"