Mercurial > public > mercurial-scm > hg
comparison mercurial/obsutil.py @ 33735:e6d8ee3c9ec3
obsutil: rename allprecursors into allpredecessors
Use util.nouideprecwarn because obsstore doesn't have easy access to an ui
object.
The renaming is done according to
https://www.mercurial-scm.org/wiki/CEDVocabulary.
Differential Revision: https://phab.mercurial-scm.org/D247
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 02 Aug 2017 19:49:57 +0200 |
parents | d5acd967f95a |
children | 833f70277f0e |
comparison
equal
deleted
inserted
replaced
33734:0c3112f17610 | 33735:e6d8ee3c9ec3 |
---|---|
100 if precnodeid in repo: | 100 if precnodeid in repo: |
101 yield precnodeid | 101 yield precnodeid |
102 else: | 102 else: |
103 stack.append(precnodeid) | 103 stack.append(precnodeid) |
104 | 104 |
105 def allprecursors(obsstore, nodes, ignoreflags=0): | 105 def allprecursors(*args, **kwargs): |
106 """ (DEPRECATED) | |
107 """ | |
108 msg = ("'obsutil.allprecursors' is deprecated, " | |
109 "use 'obsutil.allpredecessors'") | |
110 util.nouideprecwarn(msg, '4.4') | |
111 | |
112 return allpredecessors(*args, **kwargs) | |
113 | |
114 def allpredecessors(obsstore, nodes, ignoreflags=0): | |
106 """Yield node for every precursors of <nodes>. | 115 """Yield node for every precursors of <nodes>. |
107 | 116 |
108 Some precursors may be unknown locally. | 117 Some precursors may be unknown locally. |
109 | 118 |
110 This is a linear yield unsuited to detecting folded changesets. It includes | 119 This is a linear yield unsuited to detecting folded changesets. It includes |