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