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 83987 - "Revert Modifications" does not revert new files
Summary: "Revert Modifications" does not revert new files
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
: 97849 (view as bug list)
Depends on:
Blocks: 89590
  Show dependency tree
 
Reported: 2006-09-01 02:28 UTC by headius
Modified: 2007-03-14 17:23 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description headius 2006-09-01 02:28:11 UTC
When I add files from outside NetBeans to a project dir, "Revert Modifications"
does not appear to remove those files. This makes it very difficult to run test
cases or do builds that generate extra files, since NetBeans will not remove
those files if I choose to revert the project.
Comment 1 Tomas Stupka 2006-09-01 10:17:41 UTC
WAD and also behaves the same way as the commenad line.

Otherwise - we agree that it could be a good thing to have an option to revert
also new unversioned files from the reverted working copy -> changing to
enhancement.
Comment 2 headius 2006-09-01 22:54:15 UTC
I feel this is a must for SCM support. I will provide my use case to help better
illustrate the need.

I work on the JRuby project. One of our test cases uses Ruby tools to install
extensions. Those extensions get installed under the JRuby lib directory, as
they do with a stock Ruby install. Normally, I can revert changes under other
SVN clients and IDEs and have all those installed libraries wiped out.
Unfortunately under NetBeans I'm forced to delete the entire project and
re-checkout. This greatly slows the time between my day-to-day development
iterations, since the full SVN re-checkout takes a while.
Comment 3 headius 2006-09-01 23:00:59 UTC
It's also worth noting that all other clients also eliminate new files added
under "ignored" directories. The general logic is that reverting should replace
everything in your local environment with exactly what comes out when doing a
fresh checkout. In Eclipse it's referred to as "Replace With -> Latest from
Repository"
Comment 4 Tomas Stupka 2006-10-27 14:31:23 UTC
fixed

/cvs/subversion/main/src/org/netbeans/modules/subversion/ui/update/RevertModificationsPanel.form,v
 <--  RevertModificationsPanel.form
new revision: 1.15; previous revision: 1.14
done
Checking in ui/update/RevertModificationsAction.java;
/cvs/subversion/main/src/org/netbeans/modules/subversion/ui/update/RevertModificationsAction.java,v
 <--  RevertModificationsAction.java
new revision: 1.21; previous revision: 1.20
done
Checking in ui/update/RevertModificationsPanel.java;
/cvs/subversion/main/src/org/netbeans/modules/subversion/ui/update/RevertModificationsPanel.java,v
 <--  RevertModificationsPanel.java
new revision: 1.16; previous revision: 1.15
done
Checking in ui/update/RevertModifications.java;
/cvs/subversion/main/src/org/netbeans/modules/subversion/ui/update/RevertModifications.java,v
 <--  RevertModifications.java
new revision: 1.12; previous revision: 1.11
done
Checking in FileStatusCache.java;
/cvs/subversion/main/src/org/netbeans/modules/subversion/FileStatusCache.java,v
 <--  FileStatusCache.java
new revision: 1.53; previous revision: 1.52
done
Checking in client/SvnClientInvocationHandler.java;
/cvs/subversion/main/src/org/netbeans/modules/subversion/client/SvnClientInvocationHandler.java,v
 <--  SvnClientInvocationHandler.java
new revision: 1.40; previous revision: 1.39
Comment 5 novakm 2007-02-13 14:42:57 UTC
Reopened. Even when the "Remove newly added Files and Folders" checkbox is
checked, revert operation doesn't remove them.
Comment 7 Tomas Stupka 2007-03-14 17:23:39 UTC
*** Issue 97849 has been marked as a duplicate of this issue. ***