Show More
@@ -1,10 +1,11 b'' | |||||
1 | #!/usr/bin/env python |
|
1 | #!/usr/bin/env python | |
2 |
|
2 | |||
3 | """\ |
|
3 | """\ | |
4 | Reorder a revlog (by default the manifest file in the current repository) to |
|
4 | reorder a revlog (the manifest by default) to save space | |
5 | save space. Specifically, this topologically sorts the revisions in the revlog |
|
5 | ||
6 | so that revisions on the same branch are adjacent as much as possible. This is |
|
6 | Specifically, this topologically sorts the revisions in the revlog so that | |
7 | a workaround for the fact that Mercurial computes deltas relative to the |
|
7 | revisions on the same branch are adjacent as much as possible. This is a | |
|
8 | workaround for the fact that Mercurial computes deltas relative to the | |||
8 | previous revision rather than relative to a parent revision. |
|
9 | previous revision rather than relative to a parent revision. | |
9 |
|
10 | |||
10 | This is *not* safe to run on a changelog. |
|
11 | This is *not* safe to run on a changelog. | |
@@ -206,6 +207,9 b' def shrink(ui, repo, **opts):' | |||||
206 |
|
207 | |||
207 | cmdtable = { |
|
208 | cmdtable = { | |
208 | 'shrink': (shrink, |
|
209 | 'shrink': (shrink, | |
209 |
[('', 'revlog', '', ' |
|
210 | [('', 'revlog', '', 'index (.i) file of the revlog to shrink')], | |
210 | 'hg shrink [--revlog PATH]') |
|
211 | 'hg shrink [--revlog PATH]') | |
211 | } |
|
212 | } | |
|
213 | ||||
|
214 | if __name__ == "__main__": | |||
|
215 | print "shrink-revlog.py is now an extension (see hg help extensions)" |
General Comments 0
You need to be logged in to leave comments.
Login now