Show More
@@ -389,7 +389,7 b' def getoldnodedrevmap(repo, nodelist):' | |||
|
389 | 389 | corresponding Differential Revision, and exist in the repo. |
|
390 | 390 | """ |
|
391 | 391 | unfi = repo.unfiltered() |
|
392 |
node |
|
|
392 | has_node = unfi.changelog.index.has_node | |
|
393 | 393 | |
|
394 | 394 | result = {} # {node: (oldnode?, lastdiff?, drev)} |
|
395 | 395 | toconfirm = {} # {node: (force, {precnode}, drev)} |
@@ -398,7 +398,7 b' def getoldnodedrevmap(repo, nodelist):' | |||
|
398 | 398 | # For tags like "D123", put them into "toconfirm" to verify later |
|
399 | 399 | precnodes = list(obsutil.allpredecessors(unfi.obsstore, [node])) |
|
400 | 400 | for n in precnodes: |
|
401 |
if n |
|
|
401 | if has_node(n): | |
|
402 | 402 | for tag in unfi.nodetags(n): |
|
403 | 403 | m = _differentialrevisiontagre.match(tag) |
|
404 | 404 | if m: |
@@ -454,7 +454,7 b' def getoldnodedrevmap(repo, nodelist):' | |||
|
454 | 454 | if diffs: |
|
455 | 455 | lastdiff = max(diffs, key=lambda d: int(d[b'id'])) |
|
456 | 456 | oldnode = getnode(lastdiff) |
|
457 |
if oldnode and |
|
|
457 | if oldnode and not has_node(oldnode): | |
|
458 | 458 | oldnode = None |
|
459 | 459 | |
|
460 | 460 | result[newnode] = (oldnode, lastdiff, drev) |
General Comments 0
You need to be logged in to leave comments.
Login now