[PATCH 1 of 8] histedit: documents the between function
Augie Fackler
lists at durin42.com
Tue Sep 25 10:51:31 CDT 2012
This whole series LGTM.
Available for pulling from my non-publishing server at http://hg.durin42.com/augie/mercurial/for-mpm/
On Sep 21, 2012, at 12:28 PM, pierre-yves.david at logilab.fr wrote:
> # 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