Mercurial > hgsubversion
diff 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 |
line wrap: on
line diff
--- a/fetch_command.py +++ b/fetch_command.py @@ -149,7 +149,10 @@ def replay_convert_rev(hg_editor, svn, r p = dirs_to_list.pop(0) cleanup_file_handles(svn, i) i += 1 - l = svn.list_dir(p[:-1], r.revnum) + p2 = p[:-1] + if svn.subdir: + p2 = p2[len(svn.subdir)-1:] + l = svn.list_dir(p2, r.revnum) for f in l: if l[f].kind == core.svn_node_dir: