Message6216

Author mpm
Recipients abuehl, djc, dov, pmezard
Date 2008-06-07.16:35:09
Content
Reverting the patch is a step in the wrong direction. The current code deletes
existing files, which simplifies various permission issues.

The -problem- is down in util.set_flags. For a symlink, we write out a -file-,
then read it back in and convert it to a symlink. Instead, we should just create
a symlink in the first place if that's allowed. Something like:

  if self._uselinks and "l" in flags:
     os.symlink(data, f)
  else:
     file("f", "w").write(data)
History
Date User Action Args
2008-06-07 16:35:11mpmsetmessageid: <1212856511.21.0.429164091247.issue1149@selenic.com>
2008-06-07 16:35:11mpmsetrecipients: + pmezard, dov, djc, abuehl
2008-06-07 16:35:11mpmlinkissue1149 messages
2008-06-07 16:35:09mpmcreate