comparison fetch_command.py @ 112:e58c2f1de059

Fix a regression in converting repositories with files copied in from outside branches/tags/trunk where repo root != project root.
author Augie Fackler <durin42@gmail.com>
date Tue, 25 Nov 2008 16:21:57 -0600
parents 5497d1264b4d
children a0401f6e14dd
comparison
equal deleted inserted replaced
111:5497d1264b4d 112:e58c2f1de059
122 hg_editor.ui.status('.') 122 hg_editor.ui.status('.')
123 hg_editor.ui.flush() 123 hg_editor.ui.flush()
124 if p[-1] == '/': 124 if p[-1] == '/':
125 dirpath = p[len(rootpath):] 125 dirpath = p[len(rootpath):]
126 files_to_grab.update((dirpath + f for f,k in 126 files_to_grab.update((dirpath + f for f,k in
127 svn.list_files(p, r.revnum) if k == 'f')) 127 svn.list_files(dirpath, r.revnum)
128 if k == 'f'))
128 else: 129 else:
129 files_to_grab.add(p[len(rootpath):]) 130 files_to_grab.add(p[len(rootpath):])
130 hg_editor.ui.status('\nFetching files...\n') 131 hg_editor.ui.status('\nFetching files...\n')
131 for p in files_to_grab: 132 for p in files_to_grab:
132 hg_editor.ui.status('.') 133 hg_editor.ui.status('.')