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 168519 - Reverting a revision when multiple projects are open from the same repo reverts to the wrong revision
Summary: Reverting a revision when multiple projects are open from the same repo rever...
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Marian Petras
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-14 06:47 UTC by shiningmasamune
Modified: 2009-07-20 12:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shiningmasamune 2009-07-14 06:47:58 UTC
I have multiple NetBeans projects from in same Subversion repository.  I check them all out through NetBeans, in a
single action.  I select all the projects in the project pane, and hit Search History to view the complete commit
history.  I see that the latest commit is erroneous, and would like to undo it, so I click the “Revert” label in the
Search History summery view.  Bizarrely, NetBeans performs a reverse merge to a different revision for each selected
project.

For example, say my entire project folder (encompassing all projects) is at revision 20.  When I have all projects
selected in NetBeans, hit Search History, and hit Revert on revision 20, I expect to see something like the following in
the SVN output window:

merge my/repo/Project1 -r 20:19 C:\path\to\projects\Project1 
merge my/repo/Project2 -r 20:19 C:\path\to\projects\Project2
merge my/repo/Project3 -r 20:19 C:\path\to\projects\Project3
merge my/repo/Project4 -r 20:19 C:\path\to\projects\Project4

But instead, I see this:

merge my/repo/Project1 -r 20:19 C:\path\to\projects\Project1 
merge my/repo/Project2 -r 20:18 C:\path\to\projects\Project2
merge my/repo/Project3 -r 20:17 C:\path\to\projects\Project3
merge my/repo/Project4 -r 20:16 C:\path\to\projects\Project4

Clearly, this is a problem.  The same behavior occurs when I select "Revert Modifications" from the context menu and
then "Revert modifications from single commit."
Comment 1 Marian Petras 2009-07-14 13:59:15 UTC
Fixed.

The cause of the bug was that the target revision number was decreased for each selected file/folder.

Changeset Id:
f50259dd5a4e
Comment 2 shiningmasamune 2009-07-14 14:52:52 UTC
Thanks for the incredibly fast response.
Comment 3 Quality Engineering 2009-07-15 07:26:18 UTC
Integrated into 'main-golden', will be available in build *200907150249* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f50259dd5a4e
User: Marian Petras <mpetras@netbeans.org>
Log: fixed bug #168519 - "Reverting a revision when multiple projects are open from the same repo reverts to the wrong revision"