[PATCH 1 of 3] Add a test that a svn subrepo is actually contained within the clone

Brett Cannon brett at python.org
Sat Apr 17 15:31:06 CDT 2010


# HG changeset patch
# User Brett Cannon <brett at python.org>
# Date 1271534667 25200
# Branch stable
# Node ID fbc8aeadff7e88d9343f02c6cea756d70785f2a5
# Parent  377d879e9d1b0238e4eb8fea507ba91608bfacaa
Add a test that a svn subrepo is actually contained within the clone
and not outside of it.

diff -r 377d879e9d1b -r fbc8aeadff7e tests/test-subrepo-svn
--- a/tests/test-subrepo-svn	Fri Apr 16 01:57:53 2010 +0200
+++ b/tests/test-subrepo-svn	Sat Apr 17 13:04:27 2010 -0700
@@ -106,3 +106,5 @@
 cd tc
 echo % debugsub in clone
 hg debugsub | sed "$filterpath"
+echo % verify subrepo is contained within the repo directory
+python -c "import os.path; print os.path.exists('s')"
diff -r 377d879e9d1b -r fbc8aeadff7e tests/test-subrepo-svn.out
--- a/tests/test-subrepo-svn.out	Fri Apr 16 01:57:53 2010 +0200
+++ b/tests/test-subrepo-svn.out	Sat Apr 17 13:04:27 2010 -0700
@@ -85,3 +85,5 @@
 path s
  source   file:///root/svn-repo/src
  revision 3
+% verify subrepo is contained within the repo directory
+True


More information about the Mercurial-devel mailing list