equal
deleted
inserted
replaced
1125 self.delete = [] |
1125 self.delete = [] |
1126 self.setexec = [] |
1126 self.setexec = [] |
1127 self.delexec = [] |
1127 self.delexec = [] |
1128 self.copies = [] |
1128 self.copies = [] |
1129 self.wc = None |
1129 self.wc = None |
1130 self.cwd = pycompat.getcwd() |
1130 self.cwd = encoding.getcwd() |
1131 |
1131 |
1132 created = False |
1132 created = False |
1133 if os.path.isfile(os.path.join(path, '.svn', 'entries')): |
1133 if os.path.isfile(os.path.join(path, '.svn', 'entries')): |
1134 self.wc = os.path.realpath(path) |
1134 self.wc = os.path.realpath(path) |
1135 self.run0('update') |
1135 self.run0('update') |
1145 path = util.normpath(path) |
1145 path = util.normpath(path) |
1146 if not path.startswith('/'): |
1146 if not path.startswith('/'): |
1147 path = '/' + path |
1147 path = '/' + path |
1148 path = 'file://' + path |
1148 path = 'file://' + path |
1149 |
1149 |
1150 wcpath = os.path.join(pycompat.getcwd(), os.path.basename(path) + |
1150 wcpath = os.path.join(encoding.getcwd(), os.path.basename(path) + |
1151 '-wc') |
1151 '-wc') |
1152 ui.status(_('initializing svn working copy %r\n') |
1152 ui.status(_('initializing svn working copy %r\n') |
1153 % os.path.basename(wcpath)) |
1153 % os.path.basename(wcpath)) |
1154 self.run0('checkout', path, wcpath) |
1154 self.run0('checkout', path, wcpath) |
1155 |
1155 |