Get set_exec from util in convert_repo
authormpm@selenic.com
Thu, 23 Jun 2005 17:33:07 -0800
changeset 450 9d785fd7deec
parent 449 df83b2c306ac
child 451 c9d134165392
Get set_exec from util in convert_repo -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Get set_exec from util in convert_repo manifest hash: 82fa9db49fa56127d59a7aae70b3c0527420ddad -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCu2LTywK+sNU5EO8RAjBwAJ4+8ME5PPzQumB4u8R0zpX84tqm8QCgqhzE cd83i0X45u09mKFNFruaHYY= =9LfW -----END PGP SIGNATURE-----
contrib/convert-repo
--- a/contrib/convert-repo	Thu Jun 23 14:12:57 2005 -0800
+++ b/contrib/convert-repo	Thu Jun 23 17:33:07 2005 -0800
@@ -21,7 +21,7 @@
 # interrupted and can be run repeatedly to copy new commits.
 
 import sys, os, zlib, sha
-from mercurial import hg, ui
+from mercurial import hg, ui, util
 
 class convert_git:
     def __init__(self, path):
@@ -91,7 +91,7 @@
         
     def putfile(self, f, e, data):
         self.repo.wfile(f, "w").write(data)
-        hg.set_exec(self.repo.wjoin(f), e)
+        util.set_exec(self.repo.wjoin(f), e)
 
     def delfile(self, f):
         try: