(If available)
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
(If available)
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | contrib/perf.py (6 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
38f3b3b9092a | 551ba3d29dee | Pierre-Yves David | Nov 8 2019, 7:26 AM |
Status | Author | Revision | |
---|---|---|---|
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute |
).result() | ).result() | ||||
del other | del other | ||||
publishing = remotephases.get(b'publishing', False) | publishing = remotephases.get(b'publishing', False) | ||||
if publishing: | if publishing: | ||||
ui.statusnoi18n(b'publishing: yes\n') | ui.statusnoi18n(b'publishing: yes\n') | ||||
else: | else: | ||||
ui.statusnoi18n(b'publishing: no\n') | ui.statusnoi18n(b'publishing: no\n') | ||||
nodemap = repo.changelog.nodemap | has_node = getattr(repo.changelog.index, 'has_node', None) | ||||
if has_node is None: | |||||
has_node = repo.changelog.nodemap.__contains__ | |||||
nonpublishroots = 0 | nonpublishroots = 0 | ||||
for nhex, phase in remotephases.iteritems(): | for nhex, phase in remotephases.iteritems(): | ||||
if nhex == b'publishing': # ignore data related to publish option | if nhex == b'publishing': # ignore data related to publish option | ||||
continue | continue | ||||
node = bin(nhex) | node = bin(nhex) | ||||
if node in nodemap and int(phase): | if has_node(node) and int(phase): | ||||
nonpublishroots += 1 | nonpublishroots += 1 | ||||
ui.statusnoi18n(b'number of roots: %d\n' % len(remotephases)) | ui.statusnoi18n(b'number of roots: %d\n' % len(remotephases)) | ||||
ui.statusnoi18n(b'number of known non public roots: %d\n' % nonpublishroots) | ui.statusnoi18n(b'number of known non public roots: %d\n' % nonpublishroots) | ||||
def d(): | def d(): | ||||
phases.remotephasessummary(repo, remotesubset, remotephases) | phases.remotephasessummary(repo, remotesubset, remotephases) | ||||
timer(d) | timer(d) |