3r1co / hg4j

Automatically exported from code.google.com/p/hg4j
GNU General Public License v2.0
0 stars 1 forks source link

HgInvalidRevisionException for svn imported repository (changeset 0 references nullid manifest) #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It's possible to have changeset with NULL manifest revision. E.g. 'hg convert' 
when importing SVN revision may produce such repository, here's outcome of a 
small test utility that tries each manifest revision references from a 
changeset:
java -classpath %HG4j%\bin org.tmatesoft.hg.console.MissingManifestEntry --check
Index:Cset nodeid          Manifest nodeid                  Troubles?
   0:9c324b9cce42  0000000000000000000000000000000000000000! NULL ! !!! NOT FOUND IN THE MANIFEST !!!
   1:d75d72b7a472  cbcf3ffa8d9f676020e342d87b1cbd3aec3e4571 OK
   2:7ab5174920f2  3561d886a607683aaa55a76881550656840a8817 OK
   3:baecfac7a5c3  e9a7fb9e575f46c18f6bb9c67bfba56b2418ad07 OK
   4:ee4c733329d0  9a10718a01e02f14b54d8d1226cc37e76db76acc OK
   5:c06f125da9c8  9a10718a01e02f14b54d8d1226cc37e76db76acc OK
   6:2781145d1d2b  cf2802c9748c7adf43f491638c9f20ac5c8fe69a OK

Note, besides NULL manifest for cset 0, there's also manifest revision reuse in 
revisions 4 and 5.

Original issue reported on code.google.com by tikhomir...@gmail.com on 13 Feb 2012 at 2:02

GoogleCodeExporter commented 8 years ago
Fixed in revision 6150555eb41d.
Tests: TestStatus#testImportedRepoWithOddManifestRevisions() and status-4 
repository

Original comment by tikhomir...@gmail.com on 13 Feb 2012 at 2:13