3r1co / hg4j

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

HgIncomingCommand executeFull fails with HgInvalidFileException #40

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I use the local clone of the repository 
http://code.google.com/p/droid-x86-tools/source/browse?repo=srcview updated to 
revision 8 (8f07beaa6b2c)
2. Master repository on GoogleCode has two more changesets: dab110e6a414 and 
0a3943f0fec7
3. Now, create HgIncomingCommand for local repository against remote
4. executeFull fails with exception. Exception occurs on processing second 
chunk of data. 

Exception:
org.tmatesoft.hg.repo.HgInvalidFileException: Invalid bundle file (;  
file:/sdcard/hg-bundle-842668367.tmp,EXISTS)

Traceback (from debugging session):
at org.tmatesoft.hg.internal.Patch.apply(Patch.java:114)
at org.tmatesoft.hg.repo.HgBundle$GroupElement.apply(HgBundle.java:446)
at org.tmatesoft.hg.repo.HgBundle$1.element(HgBundle.java:159)
at org.tmatesoft.hg.repo.HgBundle.readGroup(HgBundle.java:358)
at org.tmatesoft.hg.repo.HgBundle.internalInspectChangelog(HgBundle.java:317)
at org.tmatesoft.hg.repo.HgBundle.inspectChangelog(HgBundle.java:222)
at org.tmatesoft.hg.repo.HgBundle.changes(HgBundle.java:185)
at 
org.tmatesoft.hg.core.HgIncomingCommand.executeFull(HgIncomingCommand.java:146)
... (my own code)

It seem to the incorrect data try to be patched (revision header, not an actual 
data).

Which data may I provide to you to help you locate or reproduce the issue?

Original issue reported on code.google.com by stinger...@gmail.com on 29 Oct 2012 at 9:33

GoogleCodeExporter commented 8 years ago
There seems to be enough information in the description to reproduce the issue, 
I'll give it a try once done with outstanding tasks. 

Original comment by tikhomir...@gmail.com on 29 Oct 2012 at 6:37

GoogleCodeExporter commented 8 years ago
I've tried to reproduce the issue using command line sample (part of console 
bundle)

$ java -cp hg4j_1.1.0.jar:hg4j-console_1.1.0.jar 
org.tmatesoft.hg.console.Incoming -R 
/path/to/repo-up-torev8/droid-x86-tools.srcview/  
https://code.google.com/p/droid-x86-tools.srcview/

and got 2 revisions as expected. Likely to be the same issue with file contents 
as in Issue 41.

Original comment by tikhomir...@gmail.com on 30 Oct 2012 at 3:16

GoogleCodeExporter commented 8 years ago
Closing the issue to indicate Hg4J is not the origin of the trouble.
Please fill free to reopen with any new details.

Original comment by tikhomir...@gmail.com on 14 Dec 2012 at 6:05