##// END OF EJS Templates
convert: fix svn file:// URL generation under Windows
Patrick Mezard -
r5535:7501ef26 default
parent child Browse files
Show More
@@ -720,14 +720,19 class svn_sink(converter_sink, commandli
720 self.wc = path
720 self.wc = path
721 self.run0('update')
721 self.run0('update')
722 else:
722 else:
723 wcpath = os.path.join(os.getcwd(), os.path.basename(path) + '-wc')
724
723 if os.path.isdir(os.path.dirname(path)):
725 if os.path.isdir(os.path.dirname(path)):
724 if not os.path.exists(os.path.join(path, 'db', 'fs-type')):
726 if not os.path.exists(os.path.join(path, 'db', 'fs-type')):
725 ui.status(_('initializing svn repo %r\n') %
727 ui.status(_('initializing svn repo %r\n') %
726 os.path.basename(path))
728 os.path.basename(path))
727 commandline(ui, 'svnadmin').run0('create', path)
729 commandline(ui, 'svnadmin').run0('create', path)
728 created = path
730 created = path
731 path = path.replace('\\', '/')
732 if not path.startswith('/'):
733 path = '/' + path
729 path = 'file://' + path
734 path = 'file://' + path
730 wcpath = os.path.join(os.getcwd(), os.path.basename(path) + '-wc')
735
731 ui.status(_('initializing svn wc %r\n') % os.path.basename(wcpath))
736 ui.status(_('initializing svn wc %r\n') % os.path.basename(wcpath))
732 self.run0('checkout', path, wcpath)
737 self.run0('checkout', path, wcpath)
733
738
General Comments 0
You need to be logged in to leave comments. Login now