##// END OF EJS Templates
shrink-revlog: update util.opener to scmutil.opener after d13913355390
Augie Fackler -
r14029:83d3f87c default
parent child Browse files
Show More
@@ -17,7 +17,7 b' This is *not* safe to run on a changelog'
17 17 # (maybe: export before, shrink, export after, diff).
18 18
19 19 import os, tempfile, errno
20 from mercurial import revlog, transaction, node, util
20 from mercurial import revlog, transaction, node, util, scmutil
21 21 from mercurial import changegroup
22 22 from mercurial.i18n import _
23 23
@@ -190,8 +190,8 b' def shrink(ui, repo, **opts):'
190 190 prefix = os.path.basename(indexfn)[:-1]
191 191 tmpindexfn = util.mktempcopy(indexfn, emptyok=True)
192 192
193 r1 = revlog.revlog(util.opener(os.getcwd(), audit=False), indexfn)
194 r2 = revlog.revlog(util.opener(os.getcwd(), audit=False), tmpindexfn)
193 r1 = revlog.revlog(scmutil.opener(os.getcwd(), audit=False), indexfn)
194 r2 = revlog.revlog(scmutil.opener(os.getcwd(), audit=False), tmpindexfn)
195 195
196 196 datafn, tmpdatafn = r1.datafile, r2.datafile
197 197
General Comments 0
You need to be logged in to leave comments. Login now