Show More
@@ -280,7 +280,7 b' class svn_source(converter_source):' | |||||
280 | # Check if branches bring a few more heads to the list |
|
280 | # Check if branches bring a few more heads to the list | |
281 | if branches: |
|
281 | if branches: | |
282 | rpath = self.url.strip('/') |
|
282 | rpath = self.url.strip('/') | |
283 |
branchnames = svn.client.ls(rpath + '/' + urllib.quote(branches), |
|
283 | branchnames = svn.client.ls(rpath + '/' + urllib.quote(branches), | |
284 | rev, False, self.ctx) |
|
284 | rev, False, self.ctx) | |
285 | for branch in branchnames.keys(): |
|
285 | for branch in branchnames.keys(): | |
286 | module = '%s/%s/%s' % (oldmodule, branches, branch) |
|
286 | module = '%s/%s/%s' % (oldmodule, branches, branch) | |
@@ -325,7 +325,7 b' class svn_source(converter_source):' | |||||
325 | else: |
|
325 | else: | |
326 | # Perform a full checkout on roots |
|
326 | # Perform a full checkout on roots | |
327 | uuid, module, revnum = self.revsplit(rev) |
|
327 | uuid, module, revnum = self.revsplit(rev) | |
328 |
entries = svn.client.ls(self.baseurl + urllib.quote(module), |
|
328 | entries = svn.client.ls(self.baseurl + urllib.quote(module), | |
329 | optrev(revnum), True, self.ctx) |
|
329 | optrev(revnum), True, self.ctx) | |
330 | files = [n for n,e in entries.iteritems() |
|
330 | files = [n for n,e in entries.iteritems() | |
331 | if e.kind == svn.core.svn_node_file] |
|
331 | if e.kind == svn.core.svn_node_file] | |
@@ -872,7 +872,7 b' class svn_source(converter_source):' | |||||
872 | path = path.strip('/') |
|
872 | path = path.strip('/') | |
873 | pool = Pool() |
|
873 | pool = Pool() | |
874 | rpath = '/'.join([self.baseurl, urllib.quote(path)]).strip('/') |
|
874 | rpath = '/'.join([self.baseurl, urllib.quote(path)]).strip('/') | |
875 |
return ['%s/%s' % (path, x) for x in |
|
875 | return ['%s/%s' % (path, x) for x in | |
876 | svn.client.ls(rpath, optrev(revnum), True, self.ctx, pool).keys()] |
|
876 | svn.client.ls(rpath, optrev(revnum), True, self.ctx, pool).keys()] | |
877 |
|
877 | |||
878 | def getrelpath(self, path, module=None): |
|
878 | def getrelpath(self, path, module=None): |
@@ -37,5 +37,5 b' def rsplit(s, sep=None, maxsplit=-1):' | |||||
37 | try: |
|
37 | try: | |
38 | return s.rsplit(sep, maxsplit) |
|
38 | return s.rsplit(sep, maxsplit) | |
39 | except AttributeError: |
|
39 | except AttributeError: | |
40 |
return [chunk[::-1] for chunk in |
|
40 | return [chunk[::-1] for chunk in | |
41 | s[::-1].split(sep, maxsplit)[::-1]] |
|
41 | s[::-1].split(sep, maxsplit)[::-1]] |
@@ -1,7 +1,7 b'' | |||||
1 | # this is hack to make sure no escape characters are inserted into the output |
|
1 | # this is hack to make sure no escape characters are inserted into the output | |
2 | import os; |
|
2 | import os; | |
3 | if 'TERM' in os.environ: |
|
3 | if 'TERM' in os.environ: | |
4 |
del os.environ['TERM'] |
|
4 | del os.environ['TERM'] | |
5 | import doctest |
|
5 | import doctest | |
6 |
|
6 | |||
7 | import mercurial.changelog |
|
7 | import mercurial.changelog |
General Comments 0
You need to be logged in to leave comments.
Login now