comparison mercurial/cmdutil.py @ 14232:df2399663392

rename util.set_flags to setflags
author Adrian Buehlmann <adrian@cadifra.com>
date Fri, 06 May 2011 15:22:31 +0200
parents 21b8ce4d3331
children f4766e1bb0b3
comparison
equal deleted inserted replaced
14231:8abe4db2d162 14232:df2399663392
367 dst = repo.wjoin(gp.path) 367 dst = repo.wjoin(gp.path)
368 # patch won't create empty files 368 # patch won't create empty files
369 if gp.op == 'ADD' and not os.path.lexists(dst): 369 if gp.op == 'ADD' and not os.path.lexists(dst):
370 flags = (isexec and 'x' or '') + (islink and 'l' or '') 370 flags = (isexec and 'x' or '') + (islink and 'l' or '')
371 repo.wwrite(gp.path, '', flags) 371 repo.wwrite(gp.path, '', flags)
372 util.set_flags(dst, islink, isexec) 372 util.setflags(dst, islink, isexec)
373 addremove(repo, cfiles, similarity=similarity) 373 addremove(repo, cfiles, similarity=similarity)
374 files = patches.keys() 374 files = patches.keys()
375 files.extend([r for r in removes if r not in files]) 375 files.extend([r for r in removes if r not in files])
376 return sorted(files) 376 return sorted(files)
377 377