comparison fetch_command.py @ 58:a8b9c7e7c2ac

Fix a bug in real replay where dirs copied from outside the directory tree weren't removing the prefix within the repo.
author Augie Fackler <durin42@gmail.com>
date Tue, 04 Nov 2008 09:40:58 -0600
parents 85fcac4e2291
children 430af23bef4a
comparison
equal deleted inserted replaced
57:c3c5546eefb1 58:a8b9c7e7c2ac
147 hg_editor.ui.status('.') 147 hg_editor.ui.status('.')
148 hg_editor.ui.flush() 148 hg_editor.ui.flush()
149 p = dirs_to_list.pop(0) 149 p = dirs_to_list.pop(0)
150 cleanup_file_handles(svn, i) 150 cleanup_file_handles(svn, i)
151 i += 1 151 i += 1
152 l = svn.list_dir(p[:-1], r.revnum) 152 p2 = p[:-1]
153 if svn.subdir:
154 p2 = p2[len(svn.subdir)-1:]
155 l = svn.list_dir(p2, r.revnum)
153 for f in l: 156 for f in l:
154 157
155 if l[f].kind == core.svn_node_dir: 158 if l[f].kind == core.svn_node_dir:
156 dirs_to_list.append(p+f+'/') 159 dirs_to_list.append(p+f+'/')
157 elif l[f].kind == core.svn_node_file: 160 elif l[f].kind == core.svn_node_file: