diff tests/test-subrepo-git.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 8a38839ae1dc
children ca75bd99f740
line wrap: on
line diff
--- a/tests/test-subrepo-git.t	Mon Jun 18 22:45:21 2012 -0400
+++ b/tests/test-subrepo-git.t	Sat Jun 16 22:34:06 2012 -0400
@@ -270,6 +270,16 @@
   gg
   ggg
 
+  $ hg -R ../tc archive --subrepo -r 5 -X ../tc/**f ../archive_x 2>/dev/null
+  $ find ../archive_x | sort
+  ../archive_x
+  ../archive_x/.hg_archival.txt
+  ../archive_x/.hgsub
+  ../archive_x/.hgsubstate
+  ../archive_x/a
+  ../archive_x/s
+  ../archive_x/s/g
+
 create nested repo
 
   $ cd ..