##// END OF EJS Templates
convert/svn: stop using svn bindings when pushing to svn
Patrick Mezard -
r13530:5f69af0d default
parent child Browse files
Show More
@@ -942,6 +942,7 b' exit 1'
942
942
943 class svn_sink(converter_sink, commandline):
943 class svn_sink(converter_sink, commandline):
944 commit_re = re.compile(r'Committed revision (\d+).', re.M)
944 commit_re = re.compile(r'Committed revision (\d+).', re.M)
945 uuid_re = re.compile(r'Repository UUID:\s*(\S+)', re.M)
945
946
946 def prerun(self):
947 def prerun(self):
947 if self.wc:
948 if self.wc:
@@ -962,8 +963,6 b' class svn_sink(converter_sink, commandli'
962
963
963 def __init__(self, ui, path):
964 def __init__(self, ui, path):
964
965
965 if svn is None:
966 raise MissingTool(_('Could not load Subversion python bindings'))
967 converter_sink.__init__(self, ui, path)
966 converter_sink.__init__(self, ui, path)
968 commandline.__init__(self, ui, 'svn')
967 commandline.__init__(self, ui, 'svn')
969 self.delete = []
968 self.delete = []
@@ -1010,8 +1009,8 b' class svn_sink(converter_sink, commandli'
1010 fp.close()
1009 fp.close()
1011 util.set_flags(hook, False, True)
1010 util.set_flags(hook, False, True)
1012
1011
1013 xport = transport.SvnRaTransport(url=geturl(path))
1012 output = self.run0('info')
1014 self.uuid = svn.ra.get_uuid(xport.ra)
1013 self.uuid = self.uuid_re.search(output).group(1).strip()
1015
1014
1016 def wjoin(self, *names):
1015 def wjoin(self, *names):
1017 return os.path.join(self.wc, *names)
1016 return os.path.join(self.wc, *names)
@@ -1,5 +1,5 b''
1
1
2 $ "$TESTDIR/hghave" svn svn-bindings no-outer-repo || exit 80
2 $ "$TESTDIR/hghave" svn no-outer-repo || exit 80
3
3
4 $ fixpath()
4 $ fixpath()
5 > {
5 > {
General Comments 0
You need to be logged in to leave comments. Login now