Show More
@@ -505,16 +505,12 b' class localrepository(repo.repository):' | |||||
505 |
|
505 | |||
506 | def wwrite(self, filename, data, flags): |
|
506 | def wwrite(self, filename, data, flags): | |
507 | data = self._filter("decode", filename, data) |
|
507 | data = self._filter("decode", filename, data) | |
508 | if "l" in flags: |
|
|||
509 | self.wopener.symlink(data, filename) |
|
|||
510 | else: |
|
|||
511 |
|
|
508 | try: | |
512 | if self._link(filename): |
|
|||
513 |
|
|
509 | os.unlink(self.wjoin(filename)) | |
514 |
|
|
510 | except OSError: | |
515 |
|
|
511 | pass | |
516 |
|
|
512 | self.wopener(filename, 'w').write(data) | |
517 |
|
|
513 | util.set_flags(self.wjoin(filename), flags) | |
518 |
|
514 | |||
519 | def wwritedata(self, filename, data): |
|
515 | def wwritedata(self, filename, data): | |
520 | return self._filter("decode", filename, data) |
|
516 | return self._filter("decode", filename, data) |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now