Mercurial > hg
diff contrib/shrink-revlog.py @ 14029:83d3f87c059e
shrink-revlog: update util.opener to scmutil.opener after d13913355390
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Fri, 29 Apr 2011 08:01:10 -0500 |
parents | 7e453770b364 |
children | e5dd974a99fa |
line wrap: on
line diff
--- 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