comparison fetch_command.py @ 104:f046564b2916

fetch_command: remove useless delete_all_files case
author Patrick Mezard <pmezard@gmail.com>
date Tue, 25 Nov 2008 09:18:27 -0600
parents f9d0154e4d11
children 607d72c12dee
comparison
equal deleted inserted replaced
103:f9d0154e4d11 104:f046564b2916
326 isexec=isexec, copied=copied) 326 isexec=isexec, copied=copied)
327 327
328 return files, filectxfn 328 return files, filectxfn
329 329
330 def stupid_svn_server_pull_rev(ui, svn, hg_editor, r): 330 def stupid_svn_server_pull_rev(ui, svn, hg_editor, r):
331 delete_all_files = False
332 # this server fails at replay 331 # this server fails at replay
333 branches = hg_editor.branches_in_paths(r.paths) 332 branches = hg_editor.branches_in_paths(r.paths)
334 temp_location = os.path.join(hg_editor.path, '.hg', 'svn', 'temp') 333 temp_location = os.path.join(hg_editor.path, '.hg', 'svn', 'temp')
335 if not os.path.exists(temp_location): 334 if not os.path.exists(temp_location):
336 os.makedirs(temp_location) 335 os.makedirs(temp_location)
479 if not p2 in hg_editor.repo[parent_ha]: 478 if not p2 in hg_editor.repo[parent_ha]:
480 d_files = [f for f in hg_editor.repo[parent_ha].manifest().iterkeys() 479 d_files = [f for f in hg_editor.repo[parent_ha].manifest().iterkeys()
481 if f.startswith(p2 + '/')] 480 if f.startswith(p2 + '/')]
482 for d in d_files: 481 for d in d_files:
483 files_touched.add(d) 482 files_touched.add(d)
484 if delete_all_files:
485 for p in hg_editor.repo[parent_ha].manifest().iterkeys():
486 if p:
487 files_touched.add(p)
488 483
489 copies = getcopies(svn, hg_editor, b, branches[b], r, files_touched, 484 copies = getcopies(svn, hg_editor, b, branches[b], r, files_touched,
490 parent_ha) 485 parent_ha)
491 486
492 def filectxfn(repo, memctx, path): 487 def filectxfn(repo, memctx, path):