equal
deleted
inserted
replaced
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: |