# HG changeset patch # User Patrick Mezard # Date 1194787050 -3600 # Node ID 7501ef26402b5d224da2d80f5c923e4744645cf1 # Parent 6cf7d7fe7d3d01e2bd42d253543fc3e07fd2c66f convert: fix svn file:// URL generation under Windows diff -r 6cf7d7fe7d3d -r 7501ef26402b hgext/convert/subversion.py --- a/hgext/convert/subversion.py Mon Nov 12 10:49:26 2007 -0800 +++ b/hgext/convert/subversion.py Sun Nov 11 14:17:30 2007 +0100 @@ -720,14 +720,19 @@ self.wc = path self.run0('update') else: + wcpath = os.path.join(os.getcwd(), os.path.basename(path) + '-wc') + if os.path.isdir(os.path.dirname(path)): if not os.path.exists(os.path.join(path, 'db', 'fs-type')): ui.status(_('initializing svn repo %r\n') % os.path.basename(path)) commandline(ui, 'svnadmin').run0('create', path) created = path + path = path.replace('\\', '/') + if not path.startswith('/'): + path = '/' + path path = 'file://' + path - wcpath = os.path.join(os.getcwd(), os.path.basename(path) + '-wc') + ui.status(_('initializing svn wc %r\n') % os.path.basename(wcpath)) self.run0('checkout', path, wcpath)