shrink-revlog: update util.opener to scmutil.opener after d13913355390
authorAugie Fackler <durin42@gmail.com>
Fri, 29 Apr 2011 08:01:10 -0500
changeset 14029 83d3f87c059e
parent 14028 7e453770b364
child 14030 e5dd974a99fa
shrink-revlog: update util.opener to scmutil.opener after d13913355390
contrib/shrink-revlog.py
--- a/contrib/shrink-revlog.py	Fri Apr 29 07:38:12 2011 -0500
+++ b/contrib/shrink-revlog.py	Fri Apr 29 08:01:10 2011 -0500
@@ -17,7 +17,7 @@
 # (maybe: export before, shrink, export after, diff).
 
 import os, tempfile, errno
-from mercurial import revlog, transaction, node, util
+from mercurial import revlog, transaction, node, util, scmutil
 from mercurial import changegroup
 from mercurial.i18n import _
 
@@ -190,8 +190,8 @@
     prefix = os.path.basename(indexfn)[:-1]
     tmpindexfn = util.mktempcopy(indexfn, emptyok=True)
 
-    r1 = revlog.revlog(util.opener(os.getcwd(), audit=False), indexfn)
-    r2 = revlog.revlog(util.opener(os.getcwd(), audit=False), tmpindexfn)
+    r1 = revlog.revlog(scmutil.opener(os.getcwd(), audit=False), indexfn)
+    r2 = revlog.revlog(scmutil.opener(os.getcwd(), audit=False), tmpindexfn)
 
     datafn, tmpdatafn = r1.datafile, r2.datafile