Patchwork [2,of,2] revset: mark reachablerootspure as private

login
register
mail settings
Submitter Yuya Nishihara
Date Aug. 28, 2015, 2:51 a.m.
Message ID <bb3dee2c8d859ae4b357.1440730309@mimosa>
Download mbox | patch
Permalink /patch/10313/
State Accepted
Headers show

Comments

Yuya Nishihara - Aug. 28, 2015, 2:51 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1440728131 -32400
#      Fri Aug 28 11:15:31 2015 +0900
# Node ID bb3dee2c8d859ae4b357b2e86a52881d5e8522f3
# Parent  054babf5b3a0f0f5a2bdaa95e0abd1469aa1f165
revset: mark reachablerootspure as private
Pierre-Yves David - Aug. 28, 2015, 6:34 a.m.
On 08/27/2015 07:51 PM, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya@tcha.org>
> # Date 1440728131 -32400
> #      Fri Aug 28 11:15:31 2015 +0900
> # Node ID bb3dee2c8d859ae4b357b2e86a52881d5e8522f3
> # Parent  054babf5b3a0f0f5a2bdaa95e0abd1469aa1f165
> revset: mark reachablerootspure as private

Great, pushed to the clowncopter.

Patch

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -87,7 +87,7 @@  def _revdescendants(repo, revs, followfi
 
     return generatorset(iterate(), iterasc=True)
 
-def reachablerootspure(repo, minroot, roots, heads, includepath):
+def _reachablerootspure(repo, minroot, roots, heads, includepath):
     """return (heads(::<roots> and ::<heads>))
 
     If includepath is True, return (<roots>::<heads>)."""
@@ -139,7 +139,7 @@  def reachableroots(repo, roots, heads, i
     try:
         revs = repo.changelog.reachableroots(minroot, heads, roots, includepath)
     except AttributeError:
-        revs = reachablerootspure(repo, minroot, roots, heads, includepath)
+        revs = _reachablerootspure(repo, minroot, roots, heads, includepath)
     revs = baseset(revs)
     revs.sort()
     return revs