contrib/phabricator.py
changeset 33761 e6d8ee3c9ec3
parent 33718 f100354cce52
child 33806 f7d6978a4da9
equal deleted inserted replaced
33760:0c3112f17610 33761:e6d8ee3c9ec3
    39 from mercurial.i18n import _
    39 from mercurial.i18n import _
    40 from mercurial import (
    40 from mercurial import (
    41     encoding,
    41     encoding,
    42     error,
    42     error,
    43     mdiff,
    43     mdiff,
    44     obsolete,
    44     obsutil,
    45     patch,
    45     patch,
    46     registrar,
    46     registrar,
    47     scmutil,
    47     scmutil,
    48     tags,
    48     tags,
    49     url as urlmod,
    49     url as urlmod,
   165     result = {} # {node: (oldnode?, lastdiff?, drev)}
   165     result = {} # {node: (oldnode?, lastdiff?, drev)}
   166     toconfirm = {} # {node: (force, {precnode}, drev)}
   166     toconfirm = {} # {node: (force, {precnode}, drev)}
   167     for node in nodelist:
   167     for node in nodelist:
   168         ctx = unfi[node]
   168         ctx = unfi[node]
   169         # For tags like "D123", put them into "toconfirm" to verify later
   169         # For tags like "D123", put them into "toconfirm" to verify later
   170         precnodes = list(obsolete.allprecursors(unfi.obsstore, [node]))
   170         precnodes = list(obsutil.allpredecessors(unfi.obsstore, [node]))
   171         for n in precnodes:
   171         for n in precnodes:
   172             if n in nodemap:
   172             if n in nodemap:
   173                 for tag in unfi.nodetags(n):
   173                 for tag in unfi.nodetags(n):
   174                     m = _differentialrevisiontagre.match(tag)
   174                     m = _differentialrevisiontagre.match(tag)
   175                     if m:
   175                     if m: