Opened 14 years ago
Closed 14 years ago
#638 closed defect (fixed)
Incorrect handling of Mercurial revision in Trac 0.12
Reported by: | krigstask | Owned by: | osimons |
---|---|---|---|
Priority: | major | Milestone: | 0.6 |
Component: | Recipe commands | Version: | 0.6b3 |
Keywords: | patch, hg | Cc: | |
Operating System: | Linux |
Description
When upgrading my Bitten+Trac installation to Trac 0.12 I stumbled upon the following issue.
Trac(s) 0.11 and 0.12 (or rather corresponding versions of Mercurial plugin) report Mercurial revisions differently, for example:
- Trac 0.11: 2098:9dc8d6fd60da
- Trac 0.12: 9dc8d6fd60da0b95ea8881f18eb803a4f78a1c6e
Due to this difference hg:pull fails here with IndexError: list index out of range.
Attached patch should handle both cases correctly, selecting hash in any case.
P.S. Add "Version: 0.6b3" for people to specify it in Trac.
Attachments (1)
Change History (3)
Changed 14 years ago by krigstask
comment:1 Changed 14 years ago by osimons
- Owner set to osimons
- Version changed from 0.6b2 to 0.6b3
Thanks! I wasn't aware of the change, but your patch makes sense. I'll put it on todo.
comment:2 Changed 14 years ago by osimons
- Resolution set to fixed
- Status changed from new to closed
Fix hg:pull revision handling in Trac 0.12