comparison hgext/convert/subversion.py @ 13653:30a0e3519f69

merge with stable
author Matt Mackall <mpm@selenic.com>
date Tue, 15 Mar 2011 16:53:46 -0500
parents 5f69af0d2fb3 9777df929035
children af331f557942
comparison
equal deleted inserted replaced
13652:0652b2da832d 13653:30a0e3519f69
864 """Enumerate all files in path at revnum, recursively.""" 864 """Enumerate all files in path at revnum, recursively."""
865 path = path.strip('/') 865 path = path.strip('/')
866 pool = Pool() 866 pool = Pool()
867 rpath = '/'.join([self.baseurl, urllib.quote(path)]).strip('/') 867 rpath = '/'.join([self.baseurl, urllib.quote(path)]).strip('/')
868 entries = svn.client.ls(rpath, optrev(revnum), True, self.ctx, pool) 868 entries = svn.client.ls(rpath, optrev(revnum), True, self.ctx, pool)
869 return ((path + '/' + p) for p, e in entries.iteritems() 869 if path:
870 path += '/'
871 return ((path + p) for p, e in entries.iteritems()
870 if e.kind == svn.core.svn_node_file) 872 if e.kind == svn.core.svn_node_file)
871 873
872 def getrelpath(self, path, module=None): 874 def getrelpath(self, path, module=None):
873 if module is None: 875 if module is None:
874 module = self.module 876 module = self.module