hgkw/pretxnkw.py
branchdecodefilter
changeset 8 180d8484503a
parent 6 3ee39807daa5
child 9 437724c81b8f
--- a/hgkw/pretxnkw.py	Thu Dec 14 10:18:41 2006 +0100
+++ b/hgkw/pretxnkw.py	Thu Dec 14 12:55:52 2006 +0100
@@ -15,7 +15,7 @@
         # bail out with error
         return True
 
-    modified, added = repo.status()[1:3]
+    modified, added = repo.status()[:2]
     candidates = modified + added
 
     files = []
@@ -55,7 +55,8 @@
         if kwct:
             # backup file and write with expanded keyword
             ui.note(_('expanding keywords in %s\n' % filename))
-            util.copyfile(filename, filename+'~')
+            absname = os.path.join(repo.root, filename)
+            util.copyfile(absname, absname+'~')
             repo.wopener(filename, 'wb').write(data)
 
     return False