[PATCH 1 of 8] histedit: documents the between function

pierre-yves.david at logilab.fr pierre-yves.david at logilab.fr
Fri Sep 21 12:28:24 CDT 2012


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1348180207 -7200
# Node ID 15743c1683b3b5a854342623e818af76d9e62067
# Parent  431e3e827ab08dbb7a40e79af57f271c3928ec07
histedit: documents the between function

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -194,10 +194,13 @@ def foldchanges(ui, repo, node1, node2, 
     finally:
         os.unlink(patchfile)
     return files
 
 def between(repo, old, new, keep):
+    """select and validate the set of revision to edit
+
+    When keep is false, the specified set can't have children."""
     revs = [old]
     current = old
     while current != new:
         ctx = repo[current]
         if not keep and len(ctx.children()) > 1:


More information about the Mercurial-devel mailing list