comparison tests/test_pull.py @ 342:76c833526fbc

Use fallbacks in the wrappers for Subversion support, instead of prefixes. The change only applies to the ambiguous URL schemes: file, http and https. The others - svn+ssh and svn - behave the same as previously. For http and https, the wrapping is implemented in 'svnrepo.py': Only when the attempt to create a httprepo instance fails, will the URL be considered for Subversion URL. For file, the ambiguity is treated much like the Mercurial core distinguishes bundle and directories. In this case, a directory that looks like a Subversion repository will *not* be considered for a Mercurial clone. Tthe command lines are more similar to before this refactor. The only option added to push & pull is --stupid; others are only added to clone. Any of these options specified to clone will be added to the generated '.hgrc'. Also, the -r/--rev option now works for clone & push.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Wed, 20 May 2009 18:38:01 +0200
parents 75f082b5897e
children 35a1e93b6f78
comparison
equal deleted inserted replaced
341:cfbd0e563af9 342:76c833526fbc
19 def _add_svn_rev(self, changes): 19 def _add_svn_rev(self, changes):
20 # changes is a dict of filename -> contents 20 # changes is a dict of filename -> contents
21 if self.svn_wc is None: 21 if self.svn_wc is None:
22 self.svn_wc = os.path.join(self.tmpdir, 'testsvn_wc') 22 self.svn_wc = os.path.join(self.tmpdir, 'testsvn_wc')
23 subprocess.call([ 23 subprocess.call([
24 'svn', 'co', '-q', test_util.fileurl(self.repo_path)[4:], 24 'svn', 'co', '-q', test_util.fileurl(self.repo_path),
25 self.svn_wc 25 self.svn_wc
26 ], 26 ],
27 stdout=subprocess.PIPE, stderr=subprocess.STDOUT) 27 stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
28 28
29 for filename, contents in changes.iteritems(): 29 for filename, contents in changes.iteritems():