Show More
@@ -19,9 +19,8 b' This is *not* safe to run on a changelog' | |||
|
19 | 19 | # e.g. by comparing "before" and "after" states of random changesets |
|
20 | 20 | # (maybe: export before, shrink, export after, diff). |
|
21 | 21 | |
|
22 |
import |
|
|
23 | import optparse | |
|
24 | from mercurial import ui as ui_, hg, revlog, transaction, node, util | |
|
22 | import os, tempfile | |
|
23 | from mercurial import revlog, transaction, node, util | |
|
25 | 24 | from mercurial import changegroup |
|
26 | 25 | from mercurial.i18n import _ |
|
27 | 26 | |
@@ -113,9 +112,6 b' def shrink(ui, repo, **opts):' | |||
|
113 | 112 | Shrink revlog by re-ordering revisions. Will operate on manifest for |
|
114 | 113 | the given repository if no other revlog is specified.""" |
|
115 | 114 | |
|
116 | # Unbuffer stdout for nice progress output. | |
|
117 | sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) | |
|
118 | ||
|
119 | 115 | if not repo.local(): |
|
120 | 116 | raise util.Abort(_('not a local repository: %s') % repo.root) |
|
121 | 117 |
General Comments 0
You need to be logged in to leave comments.
Login now