Patchwork D3308: scmutil: document that isrevsymbol() raises on ambiguous node prefix

login
register
mail settings
Submitter phabricator
Date April 14, 2018, 7:20 a.m.
Message ID <303f812290295c2eca622c94af0cc5a8@localhost.localdomain>
Download mbox | patch
Permalink /patch/30999/
State Not Applicable
Headers show

Comments

phabricator - April 14, 2018, 7:20 a.m.
martinvonz updated this revision to Diff 8251.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3308?vs=8114&id=8251

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

AFFECTED FILES
  mercurial/scmutil.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -444,6 +444,11 @@ 
     return node
 
 def isrevsymbol(repo, symbol):
+    """Checks if a symbol exists in the repo.
+
+       See revsymbol() for details. Raises error.LookupError if the symbol is an
+       ambiguous nodeid prefix.
+    """
     try:
         revsymbol(repo, symbol)
         return True