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.

Bug 204481 - [71cat] java.text.ParseException: Invalid revision. Revision should be a number, a date in MM/dd/yyyy hh:mm a format or HEAD, BASE, COMMITED or PREV
Summary: [71cat] java.text.ParseException: Invalid revision. Revision should be a numb...
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on: 203672
Blocks:
  Show dependency tree
 
Reported: 2011-10-31 22:36 UTC by javydreamercsw
Modified: 2011-11-03 15:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 182461


Attachments
stacktrace (1.55 KB, text/plain)
2011-10-31 22:36 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2011-10-31 22:36:13 UTC
Build: NetBeans IDE Dev (Build 201110300600)
VM: Java HotSpot(TM) Client VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08
OS: Windows 7

User Comments:
javydreamercsw: Added a commit message on files to be removed.




Stacktrace: 
java.text.ParseException: Invalid revision. Revision should be a number, a date in MM/dd/yyyy hh:mm a format or HEAD, BASE, COMMITED or PREV
   at org.tigris.subversion.svnclientadapter.SVNRevision.getRevision(SVNRevision.java:258)
   at org.tigris.subversion.svnclientadapter.SVNRevision.getRevision(SVNRevision.java:273)
   at org.netbeans.modules.subversion.ui.commit.CommitAction.getLogMessage(CommitAction.java:881)
   at org.netbeans.modules.subversion.ui.commit.CommitAction.access$700(CommitAction.java:107)
   at org.netbeans.modules.subversion.ui.commit.CommitAction$CommitCmd.getLogMessage(CommitAction.java:839)
   at org.netbeans.modules.subversion.ui.commit.CommitAction$CommitCmd.commitFiles(CommitAction.java:807)
Comment 1 javydreamercsw 2011-10-31 22:36:16 UTC
Created attachment 112626 [details]
stacktrace
Comment 2 Ondrej Vrabec 2011-11-01 10:06:26 UTC
for some reason commit of the files returns "-1" as the last commit revision. I would very much like to know the steps you did to achieve this. What files were you trying to commit, what was their svn status, what was their relative path to the repository root?
Comment 3 javydreamercsw 2011-11-01 11:27:05 UTC
It was a transient error as retrying was successful. These is the change set: http://xinco.svn.sourceforge.net/viewvc/xinco?view=revision&revision=899

It was curious because those files are not part of the project files. They were (I removed them as part of the sources files during the same session) but are part of the whole repository. I think that's part of the issue.
Comment 4 Ondrej Vrabec 2011-11-02 12:51:59 UTC
The steps i figured are:
1) Have sources on a mapped/external drive where the native FS watcher does not work. This is essential because otherwise the files would be deleted via svn remove
2) Delete files outside of IDE *not* via svn remove. The files will be marked as "missing" by subversion
3) Switch back to the IDE. Because of (1), the subversion metadata will not be corrected and files will remain missing: status '!' on commandline
4) Try to commit -> the commit will fail and the exception will be thrown
Comment 5 Ondrej Vrabec 2011-11-02 12:53:44 UTC
fix: http://hg.netbeans.org/core-main/rev/361f6692ab18
Comment 6 Quality Engineering 2011-11-03 15:34:53 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/361f6692ab18
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #204481 - [71cat] java.text.ParseException: Invalid revision. Revision should be a number, a date in MM/dd/yyyy hh:mm a format or HEAD, BASE, COMMITED or PREV
corrupted metadata for missing files should be fixed with 'svn delete' before a commit