Use localrepository's wjoin() to obtain absolute path decodefilter
authorChristian Ebert <blacktrash@gmx.net>
Thu, 14 Dec 2006 13:52:53 +0100
branchdecodefilter
changeset 10 d8cd07b798f2
parent 9 437724c81b8f
child 11 56a61a5c696d
Use localrepository's wjoin() to obtain absolute path
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)