comparison tests/test_util.py @ 326:33736e2e25f0

alternate approach for supporting svn schemes for repository paths We now intercept the operations in the local repo class, and handle the relevant operation ourselves. This frees us from wrapping all relevant commands and replicating their functionality. The implementation is incomplete; only one test has been modified to use the standard Mercurial API with the changed URLs. Once changed, those tests will likely reveal bugs or missing features in the new wrappers. Also, new wrappers will be needed for handling conversion flags such as -A/--authormap.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Thu, 07 May 2009 20:50:53 +0200
parents dc2bb6faf904
children 75f082b5897e
comparison
equal deleted inserted replaced
320:1ba8ed29148e 326:33736e2e25f0
28 path = os.path.abspath(path) 28 path = os.path.abspath(path)
29 drive, path = os.path.splitdrive(path) 29 drive, path = os.path.splitdrive(path)
30 path = urllib.pathname2url(path) 30 path = urllib.pathname2url(path)
31 if drive: 31 if drive:
32 drive = '/' + drive 32 drive = '/' + drive
33 url = 'file://%s%s' % (drive, path) 33 url = 'svn+file://%s%s' % (drive, path)
34 return url 34 return url
35 35
36 def load_svndump_fixture(path, fixture_name): 36 def load_svndump_fixture(path, fixture_name):
37 '''Loads an svnadmin dump into a fresh repo at path, which should not 37 '''Loads an svnadmin dump into a fresh repo at path, which should not
38 already exist. 38 already exist.