D3308: scmutil: document that isrevsymbol() raises on ambiguous node prefix
martinvonz updated this revision to Diff 8282. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3308?vs=8259=8282 REVISION DETAIL https://phab.mercurial-scm.org/D3308 AFFECTED FILES mercurial/scmutil.py CHANGE DETAILS 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 To: martinvonz, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D3308: scmutil: document that isrevsymbol() raises on ambiguous node prefix
This revision was automatically updated to reflect the committed changes. Closed by commit rHG41ac707322ba: scmutil: document that isrevsymbol() raises on ambiguous node prefix (authored by martinvonz, committed by ). CHANGED PRIOR TO COMMIT https://phab.mercurial-scm.org/D3308?vs=8251=8259#toc REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3308?vs=8251=8259 REVISION DETAIL https://phab.mercurial-scm.org/D3308 AFFECTED FILES mercurial/scmutil.py CHANGE DETAILS 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 To: martinvonz, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D3308: scmutil: document that isrevsymbol() raises on ambiguous node prefix
martinvonz updated this revision to Diff 8251. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3308?vs=8114=8251 REVISION DETAIL https://phab.mercurial-scm.org/D3308 AFFECTED FILES mercurial/scmutil.py CHANGE DETAILS 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 To: martinvonz, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D3308: scmutil: document that isrevsymbol() raises on ambiguous node prefix
martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3308 AFFECTED FILES mercurial/scmutil.py CHANGE DETAILS 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 + an ambiguous nodeid prefix. +""" try: revsymbol(repo, symbol) return True To: martinvonz, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel