contrib: small documentation fixes in shrink-revlog.py
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Thu, 07 Jan 2010 16:06:36 +0100
changeset 10216 843f6ee6d14b
parent 10215 9d79b8f58bea
child 10221 489b0caf21ed
contrib: small documentation fixes in shrink-revlog.py
contrib/shrink-revlog.py
--- a/contrib/shrink-revlog.py	Thu Jan 07 16:06:12 2010 +0100
+++ b/contrib/shrink-revlog.py	Thu Jan 07 16:06:36 2010 +0100
@@ -1,16 +1,17 @@
 #!/usr/bin/env python
 
 """\
-Reorder a revlog (by default the the manifest file in the current
-repository) to save space.  Specifically, this topologically sorts the
-revisions in the revlog so that revisions on the same branch are adjacent
-as much as possible.  This is a workaround for the fact that Mercurial
-computes deltas relative to the previous revision rather than relative to a
-parent revision.  This is *not* safe to run on a changelog.
+Reorder a revlog (by default the manifest file in the current repository) to
+save space. Specifically, this topologically sorts the revisions in the revlog
+so that revisions on the same branch are adjacent as much as possible. This is
+a workaround for the fact that Mercurial computes deltas relative to the
+previous revision rather than relative to a parent revision.
+
+This is *not* safe to run on a changelog.
 """
 
 # Originally written by Benoit Boissinot <benoit.boissinot at ens-lyon.org>
-# as a patch to rewrite-log.  Cleaned up, refactored, documented, and
+# as a patch to rewrite-log. Cleaned up, refactored, documented, and
 # renamed by Greg Ward <greg at gerg.ca>.
 
 # XXX would be nice to have a way to verify the repository after shrinking,
@@ -165,7 +166,7 @@
 
     # Don't use repo.transaction(), because then things get hairy with
     # paths: some need to be relative to .hg, and some need to be
-    # absolute.  Doing it this way keeps things simple: everything is an
+    # absolute. Doing it this way keeps things simple: everything is an
     # absolute path.
     lock = repo.lock(wait=False)
     tr = transaction.transaction(sys.stderr.write,