changeset 4006 | 67982d3ee76c |
parent 3957 | 2b87d3c5ab8e |
child 4047 | 705d0792dbf2 |
--- a/contrib/convert-repo Fri Dec 29 20:04:31 2006 -0600 +++ b/contrib/convert-repo Fri Dec 29 20:04:31 2006 -0600 @@ -351,12 +351,10 @@ return [ hg.hex(x) for x in h ] def putfile(self, f, e, data): - self.repo.wfile(f, "w").write(data) + self.repo.wwrite(f, data, e and 'x' or '') if self.repo.dirstate.state(f) == '?': self.repo.dirstate.update([f], "a") - util.set_exec(self.repo.wjoin(f), e) - def delfile(self, f): try: os.unlink(self.repo.wjoin(f))