Ticket #181 (closed defect: fixed)
A few glitches in the new Annotation support
| Reported by: | Jerome Negre <jerome+hg@…> | Owned by: | zingo |
|---|---|---|---|
| Priority: | major | Milestone: | Release 0.3.x |
| Component: | MercurialEclipse | Version: | 0.1.x |
| Keywords: | Cc: |
Description
A few points I noted:
- the parsing of the date does not set the locale which leads to [1] on non-english locales
- the regexp in AnnotateCommand? does not match for some authors [2] which leads to [3]
- ShowAnnotationOperation? use an internal package of Eclipse (org.eclipse.ui.internal.ide.IDEWorkbenchPlugin) that might move/be renamed/disappear any time (I've already made this mistake in another plugin, I know what I'm talking about)
java.lang.RuntimeException: java.text.ParseException: Unparseable date: "Thu Apr 20 23:14:10 2006 +0200" at com.vectrace.MercurialEclipse.annotations.AnnotateCommand.createFromStdOut(AnnotateCommand.java:104) at com.vectrace.MercurialEclipse.annotations.AnnotateCommand.createFromStdOut(AnnotateCommand.java:79) at com.vectrace.MercurialEclipse.annotations.AnnotateCommand.run(AnnotateCommand.java:70) at com.vectrace.MercurialEclipse.annotations.AnnotateCommand.execute(AnnotateCommand.java:50) at com.vectrace.MercurialEclipse.annotations.ShowAnnotationOperation.run(ShowAnnotationOperation.java:70) at org.eclipse.team.internal.ui.actions.ProgressDialogRunnableContext$3.run(ProgressDialogRunnableContext.java:100) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797) at org.eclipse.team.internal.ui.actions.ProgressDialogRunnableContext$2.run(ProgressDialogRunnableContext.java:97) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113) Caused by: java.text.ParseException: Unparseable date: "Thu Apr 20 23:14:10 2006 +0200" at java.text.DateFormat.parse(Unknown Source) at com.vectrace.MercurialEclipse.annotations.AnnotateCommand.createFromStdOut(AnnotateCommand.java:97) ... 8 more
jerome+hg 2 b041da22a7f8 Wed Mar 12 20:12:09 2008 +0100: some blabla
java.lang.RuntimeException: java.lang.IllegalStateException: No match found at com.vectrace.MercurialEclipse.annotations.AnnotateCommand.createFromStdOut(AnnotateCommand.java:104) at com.vectrace.MercurialEclipse.annotations.AnnotateCommand.createFromStdOut(AnnotateCommand.java:79) at com.vectrace.MercurialEclipse.annotations.AnnotateCommand.run(AnnotateCommand.java:70) at com.vectrace.MercurialEclipse.annotations.AnnotateCommand.execute(AnnotateCommand.java:50) at com.vectrace.MercurialEclipse.annotations.ShowAnnotationOperation.run(ShowAnnotationOperation.java:70) at org.eclipse.team.internal.ui.actions.ProgressDialogRunnableContext$3.run(ProgressDialogRunnableContext.java:100) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797) at org.eclipse.team.internal.ui.actions.ProgressDialogRunnableContext$2.run(ProgressDialogRunnableContext.java:97) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113) Caused by: java.lang.IllegalStateException: No match found at java.util.regex.Matcher.group(Unknown Source) at com.vectrace.MercurialEclipse.annotations.AnnotateCommand.createFromStdOut(AnnotateCommand.java:94) ... 8 more
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
