Patchwork D6505: dagop: fix documentation of reachableroots

login
register
mail settings
Submitter phabricator
Date June 12, 2019, 4:44 p.m.
Message ID <df35d8d4498e9877b159c27ea117cb25@localhost.localdomain>
Download mbox | patch
Permalink /patch/40444/
State Not Applicable
Headers show

Comments

phabricator - June 12, 2019, 4:44 p.m.
Closed by commit rHG3e42fc243741: dagop: fix documentation of reachableroots (authored by valentin.gatienbaron).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6505?vs=15421&id=15455

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6505/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6505

AFFECTED FILES
  mercurial/dagop.py

CHANGE DETAILS




To: valentin.gatienbaron, #hg-reviewers
Cc: pulkit, mercurial-devel

Patch

diff --git a/mercurial/dagop.py b/mercurial/dagop.py
--- a/mercurial/dagop.py
+++ b/mercurial/dagop.py
@@ -260,9 +260,7 @@ 
                 break
 
 def _reachablerootspure(repo, minroot, roots, heads, includepath):
-    """return (heads(::<roots> and ::<heads>))
-
-    If includepath is True, return (<roots>::<heads>)."""
+    """See reachableroots"""
     if not roots:
         return []
     parentrevs = repo.changelog.parentrevs
@@ -298,7 +296,7 @@ 
     return reachable
 
 def reachableroots(repo, roots, heads, includepath=False):
-    """return (heads(::<roots> and ::<heads>))
+    """return (heads(::<roots> and <roots>::<heads>))
 
     If includepath is True, return (<roots>::<heads>)."""
     if not roots: