1 from mercurial import util
4 def fix_symlinks(ui, repo, hooktype, parent1, **kwargs):
5 revert = hooktype in ('precommit', 'preupdate')
9 if 'l' in file.flags():
10 path = repo.wjoin(file.path())
16 repo.wwrite(file.path(), file.data(), '')
18 target = os.path.join(os.path.dirname(path), file.data())
19 util.copyfiles(target, path, True)