This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Annotate fails when revision numbers differ in digit length | ||
---|---|---|---|
Product: | versioncontrol | Reporter: | Jesse Glick <jglick> |
Component: | Mercurial | Assignee: | issues@versioncontrol <issues> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Proposed patch
Patch to correct Pattern Patch to work around Pattern issue with content colons |
Description
Jesse Glick
2007-12-13 21:44:59 UTC
BTW I just tried running annotate from the IDE (using today's version of the NBM) on main/ant.freeform/src/org/netbeans/modules/ant/freeform/Actions.java (from hg.netbeans.org) and it does not work at all. Shows annotations on only a handful of lines; some with version number, some without. In this case all the version numbers are 5 digits, I think. Created attachment 54417 [details]
Proposed patch
Committed to Head: IDE:------------------------------------------------- IDE: [20/12/07 15:58] Committing "AnnotateAction.java" started Checking in AnnotateAction.java; /shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/ui/annotate/AnnotateAction.java,v <-- AnnotateAction.java new revision: 1.8; previous revision: 1.7 done IDE: [20/12/07 15:58] Committing "AnnotateAction.java" finished IDE: [20/12/07 15:58] Diffing finished IDE: [20/12/07 15:58] Diffing finished Note: command used to fetch test data: $ hg clone https://<netbeans user id>:hguser@hg.netbeans.org/main main Created attachment 54443 [details]
Patch to correct Pattern
Created attachment 54444 [details]
Patch to work around Pattern issue with content colons
Seems to be a Pattern bug where (\\b.*): is not matching filename and first colon, but matches colon in content. Changed to use (\\b\\S*): for any non-White space char match and all lines are correctly annotated now. IDE:------------------------------------------------- IDE: [21/12/07 10:57] Committing started Checking in ui/annotate/AnnotateAction.java; /shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/ui/annotate/AnnotateAction.java,v <-- AnnotateAction.java new revision: 1.10; previous revision: 1.9 done Checking in FileInformation.java; /shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/FileInformation.java,v <-- FileInformation.java new revision: 1.6; previous revision: 1.5 done IDE: [21/12/07 10:57] Committing finished IDE: [21/12/07 10:57] Diffing finished |