##// END OF EJS Templates
cli: fix spelling in `debugnodemap` error messages
Arseniy Alekseyev -
r51403:4fe46f96 default
parent child Browse files
Show More
@@ -611,10 +611,10 b' def parse_data(data):'
611 def check_data(ui, index, data):
611 def check_data(ui, index, data):
612 """verify that the provided nodemap data are valid for the given idex"""
612 """verify that the provided nodemap data are valid for the given idex"""
613 ret = 0
613 ret = 0
614 ui.status((b"revision in index: %d\n") % len(index))
614 ui.status((b"revisions in index: %d\n") % len(index))
615 root, __ = parse_data(data)
615 root, __ = parse_data(data)
616 all_revs = set(_all_revisions(root))
616 all_revs = set(_all_revisions(root))
617 ui.status((b"revision in nodemap: %d\n") % len(all_revs))
617 ui.status((b"revisions in nodemap: %d\n") % len(all_revs))
618 for r in range(len(index)):
618 for r in range(len(index)):
619 if r not in all_revs:
619 if r not in all_revs:
620 msg = b" revision missing from nodemap: %d\n" % r
620 msg = b" revision missing from nodemap: %d\n" % r
@@ -637,7 +637,7 b' def check_data(ui, index, data):'
637
637
638 if all_revs:
638 if all_revs:
639 for r in sorted(all_revs):
639 for r in sorted(all_revs):
640 msg = b" extra revision in nodemap: %d\n" % r
640 msg = b" extra revisions in nodemap: %d\n" % r
641 ui.write_err(msg)
641 ui.write_err(msg)
642 ret = 1
642 ret = 1
643 return ret
643 return ret
@@ -154,8 +154,8 b' Simple lookup works'
154 #endif
154 #endif
155
155
156 $ hg debugnodemap --check
156 $ hg debugnodemap --check
157 revision in index: 5001
157 revisions in index: 5001
158 revision in nodemap: 5001
158 revisions in nodemap: 5001
159
159
160 add a new commit
160 add a new commit
161
161
@@ -241,8 +241,8 b' Check slow-path config value handling'
241 #endif
241 #endif
242
242
243 $ hg debugnodemap --check
243 $ hg debugnodemap --check
244 revision in index: 5002
244 revisions in index: 5002
245 revision in nodemap: 5002
245 revisions in nodemap: 5002
246
246
247 Test code path without mmap
247 Test code path without mmap
248 ---------------------------
248 ---------------------------
@@ -252,11 +252,11 b' Test code path without mmap'
252 $ hg ci -m 'bar' --config storage.revlog.persistent-nodemap.mmap=no
252 $ hg ci -m 'bar' --config storage.revlog.persistent-nodemap.mmap=no
253
253
254 $ hg debugnodemap --check --config storage.revlog.persistent-nodemap.mmap=yes
254 $ hg debugnodemap --check --config storage.revlog.persistent-nodemap.mmap=yes
255 revision in index: 5003
255 revisions in index: 5003
256 revision in nodemap: 5003
256 revisions in nodemap: 5003
257 $ hg debugnodemap --check --config storage.revlog.persistent-nodemap.mmap=no
257 $ hg debugnodemap --check --config storage.revlog.persistent-nodemap.mmap=no
258 revision in index: 5003
258 revisions in index: 5003
259 revision in nodemap: 5003
259 revisions in nodemap: 5003
260
260
261
261
262 #if pure
262 #if pure
General Comments 0
You need to be logged in to leave comments. Login now