Off-by-one committing issue.

Issue #8 new
carbonica
repo owner created an issue

There's an issue with committing that's showing up in our repository. These were all committed using Ruby 1.9 if I'm not mistaken. I am willing to bet it is an issue with string encodings - a multi-byte character (such as the © that is now at the header of each file) reporting its size as 1 character.

{{{

!shell

michaeledgar:~/mygems/amp $ hg verify checking changesets checking manifests manifest@?: rev 71 points to unexpected changeset 71 manifest@?: 857560b5ab4e not in changesets crosschecking files in changesets and manifests checking files Rakefile@580: unpacked size is 4792, 4791 expected Rakefile@582: unpacked size is 4796, 4795 expected lib/amp.rb@582: unpacked size is 12168, 12167 expected lib/amp.rb@583: unpacked size is 12257, 12256 expected lib/amp.rb@584: unpacked size is 12436, 12435 expected lib/amp.rb@585: unpacked size is 12522, 12521 expected lib/amp/encoding/binary_diff.rb@580: unpacked size is 4501, 4500 expected lib/amp/repository/git/repo_format/commit_object.rb@584: unpacked size is 3152, 3151 expected lib/amp/repository/git/repo_format/loose_object.rb@582: unpacked size is 2443, 2442 expected lib/amp/repository/git/repo_format/loose_object.rb@584: unpacked size is 3059, 3058 expected lib/amp/repository/git/repo_format/loose_object.rb@585: unpacked size is 2794, 2793 expected lib/amp/repository/git/repo_format/packfile.rb@585: unpacked size is 8141, 8140 expected lib/amp/repository/git/repo_format/raw_object.rb@582: unpacked size is 1489, 1488 expected lib/amp/repository/git/repo_format/raw_object.rb@584: unpacked size is 1744, 1743 expected lib/amp/repository/git/repo_format/raw_object.rb@585: unpacked size is 2181, 2180 expected lib/amp/repository/git/repo_format/tag_object.rb@584: unpacked size is 3180, 3179 expected lib/amp/repository/git/repo_format/tree_object.rb@583: unpacked size is 2871, 2870 expected lib/amp/repository/git/repo_format/tree_object.rb@584: unpacked size is 3131, 3130 expected lib/amp/repository/mercurial/repositories/http_repository.rb@582: unpacked size is 16862, 16861 expected test/git_tests/packfile_tests/pack-4e1941122fd346526b0a3eee2d92f3277a0092cd.idx@585: unpacked size is 3620, 3543 expected test/git_tests/packfile_tests/pack-4e1941122fd346526b0a3eee2d92f3277a0092cd.pack@585: unpacked size is 16396, 15866 expected test/git_tests/packfile_tests/test_packfile.rb@585: unpacked size is 1523, 1522 expected test/git_tests/test_commit_object.rb@584: unpacked size is 2377, 2376 expected test/git_tests/test_loose_object.rb@582: unpacked size is 1704, 1703 expected test/git_tests/test_loose_object.rb@583: unpacked size is 2025, 2024 expected test/git_tests/test_loose_object.rb@584: unpacked size is 2032, 2031 expected test/git_tests/test_tag_object.rb@584: unpacked size is 2427, 2426 expected test/git_tests/test_tree_object.rb@583: unpacked size is 2272, 2271 expected test/git_tests/test_tree_object.rb@584: unpacked size is 2291, 2290 expected test/test_bdiff.rb@581: unpacked size is 3460, 3453 expected 489 files, 586 changesets, 2116 total revisions 32 integrity errors encountered! (first damaged changeset appears to be 580) }}}

Comments (0)

  1. Log in to comment