Show More
@@ -16,7 +16,7 b' This is *not* safe to run on a changelog' | |||
|
16 | 16 | # e.g. by comparing "before" and "after" states of random changesets |
|
17 | 17 | # (maybe: export before, shrink, export after, diff). |
|
18 | 18 | |
|
19 |
import os, |
|
|
19 | import os, errno | |
|
20 | 20 | from mercurial import revlog, transaction, node, util, scmutil |
|
21 | 21 | from mercurial import changegroup |
|
22 | 22 | from mercurial.i18n import _ |
@@ -191,7 +191,6 b' def shrink(ui, repo, **opts):' | |||
|
191 | 191 | 'will corrupt your repository')) |
|
192 | 192 | |
|
193 | 193 | ui.write(_('shrinking %s\n') % indexfn) |
|
194 | prefix = os.path.basename(indexfn)[:-1] | |
|
195 | 194 | tmpindexfn = util.mktempcopy(indexfn, emptyok=True) |
|
196 | 195 | |
|
197 | 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