Commit Graph

41 Commits

Author SHA1 Message Date
Adrian Buehlmann
5573dff691 rename util.os_link to oslink 2011-05-06 15:34:34 +02:00
Augie Fackler
d47b2c1afa shrink-revlog: defend against null first parents 2011-04-29 09:28:45 -05:00
Augie Fackler
74615b75c0 shrink-revlog: use a bundler object (see cddd91650ec7) 2011-04-29 08:04:54 -05:00
Augie Fackler
fb1853a333 shrink-revlog: update util.opener to scmutil.opener after d26b1348d3f6 2011-04-29 08:01:10 -05:00
Augie Fackler
c61c6d6b7c shrink-revlog: remove \ from docstring 2011-04-29 07:38:12 -05:00
Matt Mackall
7fbf746bf2 changegroup: fold progress meter into callbacks
progress meters now start at 1 rather than 0
2011-03-28 11:18:56 -05:00
Matt Mackall
f94b6206a0 changegroup: combine infocollect and lookup callbacks 2011-03-28 11:18:56 -05:00
Dan Villiom Podlaski Christiansen
f385faac7a *: kill all unnecessary shebangs. 2010-10-26 12:18:39 +02:00
Matt Mackall
a624bd1945 bundle: fix shrink-revlog bundle usage 2010-09-20 16:25:29 -05:00
Matt Mackall
4b4d939b00 bundle: get rid of chunkiter 2010-09-19 12:51:54 -05:00
Matt Mackall
43940bec52 bundle: make getchunk() a method 2010-09-18 18:20:34 -05:00
Pradeepkumar Gayam
ade05bacc0 shrink-repo: wrong variable name 2010-06-06 22:39:32 +05:30
Greg Ward
6e1d6aff0f shrink-revlog: use util.mktempcopy() to preserve mode of index file.
(There's still a chmod() call to manually preserve the mode of the
data file.)
2010-06-03 10:18:33 -04:00
Martin Geisler
e73685cb49 Merge with stable 2010-06-02 14:40:31 +02:00
Greg Ward
cb24398037 shrink-revlog: preserve mode of the shrunken index and data file.
Otherwise, the shrunken index file always has mode 0600 thanks to
mkstemp(). This is annoying on a server, where multiple users may need
to read/write the manifest. chmod()ing the data file is not strictly
necessary, but it's nice for consistency.
2010-06-01 18:29:52 -04:00
Matt Mackall
6e515e4e5d progress: drop extra args for pos=None calls (issue2087) 2010-03-17 18:15:16 -05:00
Martin Geisler
dee8d94155 shrink-revlog: add missing whitespace in expression 2010-03-11 23:44:12 +01:00
Benoit Boissinot
bdc24dd6be shrink-revlog: factor out postorder algorithm 2010-03-10 09:52:16 +01:00
Benoit Boissinot
732670e0f2 shrink-revlog: factor out suboptimal computation 2010-03-10 09:51:07 +01:00
Benoit Boissinot
7727772fc6 shrink-revlog: remove branchsort algorithm (it behaves poorly) 2010-03-10 09:48:15 +01:00
Greg Ward
99f8164fc6 shrink-revlog: add accounting of suboptimal nodes to the new algorithms. 2010-03-09 21:25:37 -05:00
Greg Ward
76befe4a29 shrink-revlog: add "reverse postorder" and "postorder reverse" toposorts.
Based on a patch by Benoit Boissinot, adapted to the pluggable sort
algorithm design.  toposort_reversepostorder() is a very good
performer; it's designed to recreate what the revlog would have looked
like if Mercurial had parent deltas now.  toposort_postorderreverse()
is unstable and very inconsistent, but perhaps with some work it could
be made better.
2010-03-09 21:22:01 -05:00
Greg Ward
b03d42b1e5 shrink-revlog: add --sort option for user-selectable toposort algorithm. 2010-02-25 09:16:39 -05:00
Greg Ward
5495f8a314 shrink-revlog: rename some local variables for consistency. 2010-03-09 21:30:19 -05:00
Greg Ward
b1905b686f shrink-revlog: instrument sort code to record statistics.
Notably, count "suboptimal" nodes (predecessor is not first parent)
and (with -v) report them at the end of the run.
2010-03-09 21:13:39 -05:00
Benoit Boissinot
2615e405ae shrink: handle all combinations of inline/non-inline revlogs 2010-02-24 18:22:45 +01:00
Benoit Boissinot
72fa9a2788 shrink-revlog: remove unneeded imports and useless code 2010-02-19 02:11:37 +01:00
Benoit Boissinot
18bab73073 shrink-revlog: add strings for translation / import _ before using it 2010-02-19 02:07:13 +01:00
Martin Geisler
e2e1279b27 progress: mark strings for translation 2010-02-17 23:07:50 +01:00
Benoit Boissinot
dccf4785fb shrink: use progress API 2010-02-13 15:34:44 +01:00
Matt Mackall
8d99be19f0 many, many trivial check-code fixups 2010-01-25 00:05:27 -06:00
Patrick Mezard
ee36296620 shrink-revlog: add --dry-run option 2010-01-12 22:20:21 +01:00
Greg Ward
d14ca44965 shrink-revlog: help/doc tweaks
- make it look right in 'hg help extensions'
- clarify --revlog option
- add a main program to tell users this is no longer a standalone script
2010-01-12 15:12:53 +01:00
Patrick Mezard
97e153876e shrink-revlog: make it work on windows (issue1976) 2010-01-11 21:15:53 +01:00
Dirkjan Ochtman
33f1b017fa contrib: small documentation fixes in shrink-revlog.py 2010-01-07 16:06:36 +01:00
Dirkjan Ochtman
865f446247 contrib: turn shrink-revlog.py into an extension 2010-01-07 16:06:12 +01:00
Dirkjan Ochtman
012ee6cd41 contrib: fix error handling in shrink-revlog.py to be more hg-like 2010-01-07 15:12:16 +01:00
Dirkjan Ochtman
bd89648509 contrib: use ui to write in shrink-revlog.py 2010-01-07 15:07:18 +01:00
Benoit Boissinot
f50a5b9c25 shrink-revlog: improve performance: use changegroup instead of revisions
Before:
real	0m23.971s

Now:
real	0m4.229s

The only case where the output would be different is if the newer hg was using
a different diff algorithm than used originally.
2009-12-04 15:36:13 +01:00
Dirkjan Ochtman
12c5890a70 kill trailing whitespace 2009-11-05 10:44:36 +01:00
Greg Ward
48fc9e07a3 Add script to rewrite revlog to workaround lack of parent deltas.
Defaults to rewriting the manifest in the current repository.

Based on a patch to rewrite-log by Benoit Boissinot that I found here:
  http://article.gmane.org/gmane.comp.version-control.mercurial.general/11908
2009-08-27 10:21:32 -04:00