Show More
@@ -1421,13 +1421,15 b' def perfphasesremote(ui, repo, dest=None' | |||
|
1421 | 1421 | else: |
|
1422 | 1422 | ui.statusnoi18n(b'publishing: no\n') |
|
1423 | 1423 | |
|
1424 |
node |
|
|
1424 | has_node = getattr(repo.changelog.index, 'has_node', None) | |
|
1425 | if has_node is None: | |
|
1426 | has_node = repo.changelog.nodemap.__contains__ | |
|
1425 | 1427 | nonpublishroots = 0 |
|
1426 | 1428 | for nhex, phase in remotephases.iteritems(): |
|
1427 | 1429 | if nhex == b'publishing': # ignore data related to publish option |
|
1428 | 1430 | continue |
|
1429 | 1431 | node = bin(nhex) |
|
1430 |
if node |
|
|
1432 | if has_node(node) and int(phase): | |
|
1431 | 1433 | nonpublishroots += 1 |
|
1432 | 1434 | ui.statusnoi18n(b'number of roots: %d\n' % len(remotephases)) |
|
1433 | 1435 | ui.statusnoi18n(b'number of known non public roots: %d\n' % nonpublishroots) |
General Comments 0
You need to be logged in to leave comments.
Login now