Greg Ward  committed 90ca62b

shrink-revlog: make pyflakes happy

  • Participants
  • Parent commits a740fa2

Comments (0)

Files changed (1)

File contrib/

 # e.g. by comparing "before" and "after" states of random changesets
 # (maybe: export before, shrink, export after, diff).
-import os, tempfile, errno
+import os, errno
 from mercurial import revlog, transaction, node, util, scmutil
 from mercurial import changegroup
 from mercurial.i18n import _
                            'will corrupt your repository'))
     ui.write(_('shrinking %s\n') % indexfn)
-    prefix = os.path.basename(indexfn)[:-1]
     tmpindexfn = util.mktempcopy(indexfn, emptyok=True)
     r1 = revlog.revlog(scmutil.opener(os.getcwd(), audit=False), indexfn)