Mercurial > hg-stable
comparison tests/test-largefiles.t @ 17229:a6d9b2d33040 stable
largefiles: fix addremove with -R option
If a file was missing, the missing list contained a path relative to the repo.
When building the matcher from that list, the file name ended up concatenated to
cwd, causing the command to abort with '<file> not under root'. This rebuilds
the missing list with paths relative to cwd.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 19 Jul 2012 06:30:59 -0400 |
parents | 5d0d99952494 |
children | fc4c155658b7 |
comparison
equal
deleted
inserted
replaced
17228:d1b49b02bc16 | 17229:a6d9b2d33040 |
---|---|
368 removing sub/large4 | 368 removing sub/large4 |
369 adding testaddremove.dat as a largefile | 369 adding testaddremove.dat as a largefile |
370 removing normal3 | 370 removing normal3 |
371 adding normaladdremove | 371 adding normaladdremove |
372 | 372 |
373 Test addremove with -R | |
374 | |
375 $ hg up -C | |
376 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
377 getting changed largefiles | |
378 1 largefiles updated, 0 removed | |
379 $ rm normal3 | |
380 $ rm sub/large4 | |
381 $ echo "testing addremove with patterns" > testaddremove.dat | |
382 $ echo "normaladdremove" > normaladdremove | |
383 $ cd .. | |
384 $ hg -R a addremove | |
385 removing sub/large4 | |
386 adding a/.hglf/testaddremove.dat as a largefile (glob) | |
387 adding a/testaddremove.dat as a largefile (glob) | |
388 removing normal3 | |
389 adding normaladdremove | |
390 $ cd a | |
391 | |
373 Clone a largefiles repo. | 392 Clone a largefiles repo. |
374 | 393 |
375 $ hg clone . ../b | 394 $ hg clone . ../b |
376 updating to branch default | 395 updating to branch default |
377 5 files updated, 0 files merged, 0 files removed, 0 files unresolved | 396 5 files updated, 0 files merged, 0 files removed, 0 files unresolved |