Comment 1 by Matías Halles, Jul 17, 2010
Here's the output for "hg log -l 25" which is executed in getChangeLog: http://zouppowered.com/logRl25.log And here are the dumps on how parseLog parses depending or the hdrs value: http://zouppowered.com/parseLog_hdrs4.log http://zouppowered.com/parseLog_hdrs5.log http://zouppowered.com/parseLog_hdrs6.log As you can see, i'm getting this exception ( http://x.halles.cl/e52efafa.png) related to the commit dd2c6db6c3da (the last one in the list) which is clearly being wrongly parsed due to my happy face in the beginning of the message ":D". He. This wasn't related to the $hdrs passed to parseLog. I'm gonna try to fix in the afternoon. Regards, Matías
Comment 2 by Matías Halles, Jul 18, 2010
The regexp pattern command used to parse the log has to be changed from /(\S+)\s*:\s*(.*)/ to /^(\S+):\s*(.*)/ What this does is match the header name by searching for it within the beggining of the line and the first ":", with no spaces between the string and the ":". I'm sorry i can't workout a patch, i don't know how to use git.
Comment 3 by Matías Halles, Jul 19, 2010
Also, i don't know why (might be related to hg version) but hg -R /path/ will not work on my install when fetching patches between versions. You have to use --cwd or both --cwd & -R to have the correct behaviour. This should go inside the getCommit in Mercurial.php
Comment 4 by Matías Halles, Jul 24, 2010
The behaviour might be happening because of my OS version; i'm running this on Debian Sarge, although i can't tell for sure, but i suppose it is my config and not indefero. I'm installing latest debian to give it a try. Gonna keep you updated so someone can close this for sure.
Comment 5 by Loïc d'Anterroches, Sep 6, 2010
Ok, I will need to review everything here. The Mercurial backend was created nearly 2 years ago, maybe the new version has a new interface and we need to adapt.
Status:
Accepted
Summary: Wrong behaviour with mercurial 1.6
Summary: Wrong behaviour with mercurial 1.6
Comment 6 by Matías Halles, Sep 6, 2010
Comment 1 and 2, were fixed with the patch relating Issue #508. I asked around, and the semantics on mercurial have not changed, and since nobody else is reporting this error, i'm inclined to think that it is because my environment, but i wouldn't be sure.
Comment 7 by Thomas Keller, Mar 18, 2011
Fixed with commit 5fc3a98.
Labels:
Milestone:Release1.1
Status: Fixed
Status: Fixed
Sign in to reply to this comment.
Reported by Matías Halles, Jul 17, 2010