comparison fetch_command.py @ 118:a0401f6e14dd

fetch_command: ignore stray files in branches/ in non-diff mode
author Patrick Mezard <pmezard@gmail.com>
date Sat, 29 Nov 2008 11:25:01 -0600
parents e58c2f1de059
children ea65fe2b0856
comparison
equal deleted inserted replaced
117:3afe404042a3 118:a0401f6e14dd
422 Return a tuple (files, filectxfn) where 'files' is the list of all files 422 Return a tuple (files, filectxfn) where 'files' is the list of all files
423 in the branch at the given revision, and 'filectxfn' is a memctx compatible 423 in the branch at the given revision, and 'filectxfn' is a memctx compatible
424 callable to retrieve individual file information. 424 callable to retrieve individual file information.
425 """ 425 """
426 kind = svn.checkpath(branchpath, r.revnum) 426 kind = svn.checkpath(branchpath, r.revnum)
427 if kind is None: 427 if kind != 'd':
428 # Branch does not exist at this revision. Get parent revision and 428 # Branch does not exist at this revision. Get parent revision and
429 # remove everything. 429 # remove everything.
430 files = parentctx.manifest().keys() 430 files = parentctx.manifest().keys()
431 def filectxfn_rm(repo, memctx, path): 431 def filectxfn_rm(repo, memctx, path):
432 raise IOError() 432 raise IOError()