##// END OF EJS Templates
shrink-revlog: remove unneeded imports and useless code
Benoit Boissinot -
r10509:3e7e789d stable
parent child Browse files
Show More
@@ -19,9 +19,8 b' This is *not* safe to run on a changelog'
19 # e.g. by comparing "before" and "after" states of random changesets
19 # e.g. by comparing "before" and "after" states of random changesets
20 # (maybe: export before, shrink, export after, diff).
20 # (maybe: export before, shrink, export after, diff).
21
21
22 import sys, os, tempfile
22 import os, tempfile
23 import optparse
23 from mercurial import revlog, transaction, node, util
24 from mercurial import ui as ui_, hg, revlog, transaction, node, util
25 from mercurial import changegroup
24 from mercurial import changegroup
26 from mercurial.i18n import _
25 from mercurial.i18n import _
27
26
@@ -113,9 +112,6 b' def shrink(ui, repo, **opts):'
113 Shrink revlog by re-ordering revisions. Will operate on manifest for
112 Shrink revlog by re-ordering revisions. Will operate on manifest for
114 the given repository if no other revlog is specified."""
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 if not repo.local():
115 if not repo.local():
120 raise util.Abort(_('not a local repository: %s') % repo.root)
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