Mercurial > hg > mercurial-crew-with-dirclash
diff contrib/convert-repo @ 4006:67982d3ee76c
symlinks: add flags param to wwrite
Now wwrite can set symlink and exec for files
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 29 Dec 2006 20:04:31 -0600 |
parents | 2b87d3c5ab8e |
children | 705d0792dbf2 |
line wrap: on
line diff
--- a/contrib/convert-repo +++ b/contrib/convert-repo @@ -351,12 +351,10 @@ class convert_mercurial: 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))