mercurial/patch.py
changeset 6877 1d38f3605b20
parent 6791 bbd89c9e6012
child 6884 11229144aa01
equal deleted inserted replaced
6875:0d714a48ab53 6877:1d38f3605b20
  1107             dst = os.path.join(repo.root, gp.path)
  1107             dst = os.path.join(repo.root, gp.path)
  1108             # patch won't create empty files
  1108             # patch won't create empty files
  1109             if ctype == 'ADD' and not os.path.exists(dst):
  1109             if ctype == 'ADD' and not os.path.exists(dst):
  1110                 repo.wwrite(gp.path, '', flags)
  1110                 repo.wwrite(gp.path, '', flags)
  1111             else:
  1111             else:
  1112                 util.set_flags(dst, flags)
  1112                 util.set_flags(dst, 'l' in flags, 'x' in flags)
  1113     cmdutil.addremove(repo, cfiles)
  1113     cmdutil.addremove(repo, cfiles)
  1114     files = patches.keys()
  1114     files = patches.keys()
  1115     files.extend([r for r in removes if r not in files])
  1115     files.extend([r for r in removes if r not in files])
  1116     files.sort()
  1116     files.sort()
  1117 
  1117