# HG changeset patch # User Christian Ebert # Date 1166100773 -3600 # Node ID d8cd07b798f29d677f496a67dcfaaeddf8d4b396 # Parent 437724c81b8f16336c1000e4f7978b2ecb99cb36 Use localrepository's wjoin() to obtain absolute path diff -r 437724c81b8f -r d8cd07b798f2 hgkw/pretxnkw.py --- a/hgkw/pretxnkw.py Thu Dec 14 12:58:46 2006 +0100 +++ b/hgkw/pretxnkw.py Thu Dec 14 13:52:53 2006 +0100 @@ -55,7 +55,7 @@ if kwct: # backup file and write with expanded keyword ui.note(_('expanding keywords in %s\n' % filename)) - absname = os.path.join(repo.root, filename) + absname = repo.wjoin(filename) util.copyfile(absname, absname+'~') repo.wfile(filename, 'w').write(data)