##// END OF EJS Templates
shrink-revlog: make pyflakes happy
Greg Ward -
r16305:90ca62bb default
parent child Browse files
Show More
@@ -16,7 +16,7 b' This is *not* safe to run on a changelog'
16 # e.g. by comparing "before" and "after" states of random changesets
16 # e.g. by comparing "before" and "after" states of random changesets
17 # (maybe: export before, shrink, export after, diff).
17 # (maybe: export before, shrink, export after, diff).
18
18
19 import os, tempfile, errno
19 import os, errno
20 from mercurial import revlog, transaction, node, util, scmutil
20 from mercurial import revlog, transaction, node, util, scmutil
21 from mercurial import changegroup
21 from mercurial import changegroup
22 from mercurial.i18n import _
22 from mercurial.i18n import _
@@ -191,7 +191,6 b' def shrink(ui, repo, **opts):'
191 'will corrupt your repository'))
191 'will corrupt your repository'))
192
192
193 ui.write(_('shrinking %s\n') % indexfn)
193 ui.write(_('shrinking %s\n') % indexfn)
194 prefix = os.path.basename(indexfn)[:-1]
195 tmpindexfn = util.mktempcopy(indexfn, emptyok=True)
194 tmpindexfn = util.mktempcopy(indexfn, emptyok=True)
196
195
197 r1 = revlog.revlog(scmutil.opener(os.getcwd(), audit=False), indexfn)
196 r1 = revlog.revlog(scmutil.opener(os.getcwd(), audit=False), indexfn)
General Comments 0
You need to be logged in to leave comments. Login now