Mercurial > hg
comparison tests/test-subrepo-svn.t @ 17108:1894dac619de
subrepo: propagate matcher to subrepos when archiving
Add a match object to subrepo.archive(). This will allow the -X and -I
options to be honored inside subrepos when archiving. They formerly
only affect the top level repo.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 16 Jun 2012 22:34:06 -0400 |
parents | 0413f68da85c |
children | 3e856d8abe9c |
comparison
equal
deleted
inserted
replaced
17107:dcac72c9efb2 | 17108:1894dac619de |
---|---|
548 archiving (s): 1/2 files (50.00%) | 548 archiving (s): 1/2 files (50.00%) |
549 archiving (s): 2/2 files (100.00%) | 549 archiving (s): 2/2 files (100.00%) |
550 archiving (recreated): 0/1 files (0.00%) | 550 archiving (recreated): 0/1 files (0.00%) |
551 archiving (recreated): 1/1 files (100.00%) | 551 archiving (recreated): 1/1 files (100.00%) |
552 | 552 |
553 $ hg archive -S ../archive-exclude --debug -X **old | |
554 archiving: 0/2 files (0.00%) | |
555 archiving: .hgsub 1/2 files (50.00%) | |
556 archiving: .hgsubstate 2/2 files (100.00%) | |
557 archiving (obstruct): 0/1 files (0.00%) | |
558 archiving (obstruct): 1/1 files (100.00%) | |
559 archiving (s): 0/2 files (0.00%) | |
560 archiving (s): 1/2 files (50.00%) | |
561 archiving (s): 2/2 files (100.00%) | |
562 archiving (recreated): 0 files | |
563 $ find ../archive-exclude | sort | |
564 ../archive-exclude | |
565 ../archive-exclude/.hg_archival.txt | |
566 ../archive-exclude/.hgsub | |
567 ../archive-exclude/.hgsubstate | |
568 ../archive-exclude/obstruct | |
569 ../archive-exclude/obstruct/other | |
570 ../archive-exclude/s | |
571 ../archive-exclude/s/alpha | |
572 ../archive-exclude/s/dir | |
573 ../archive-exclude/s/dir/epsilon.py | |
574 | |
553 Test forgetting files, not implemented in svn subrepo, used to | 575 Test forgetting files, not implemented in svn subrepo, used to |
554 traceback | 576 traceback |
555 | 577 |
556 #if no-windows | 578 #if no-windows |
557 $ hg forget 'notafile*' | 579 $ hg forget 'notafile*' |