cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Bug 117890 - Refreshing of "Update Target" in Status view
: Refreshing of "Update Target" in Status view
Status: VERIFIED FIXED
: versioncontrol
Mercurial
: 6.1
: All All
: P3 (vote)
: 6.1
Assigned To:
:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2007-10-05 10:55 by
Modified: 2008-01-03 09:32 (History)
Issue Type: DEFECT
:


Attachments
proposed patch (4.97 KB, patch)
2007-10-17 15:43, Padraig Obriain
Details | Diff
new patch (826 bytes, patch)
2007-11-16 14:45, Padraig Obriain
Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2007-10-05 10:55:26
Product Version: NetBeans IDE Dev (Build 200710050000)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)
Userdir: D:\ide\60daily\user

Steps:
1. Clone project and have it opened in NB.
2. Modify some file and commit changes.
3. Select project root and invoke "Mercurial | Status" action. "Mercurial view
- Update Target: 2 (...)"
4. Selecting project root invoke "Mercurial | Export Diff" from main menu (use
the latest revision)
5. For project root invoke "Mercurial | Rollback". Confirm upcoming dialog.
"Mercurial view - Update Target: 2 (...)".
Pushing "Refresh" button in "Status" view makes "Mercurial view - Update
Target: 1 (...)". This field should be
refreshed automatically

6. Selecting project root invoke "Mercurial | Import Patches" from main menu.
Choose that file.
Mercurial view - Update Target: 1 (...)". Pushing "Refresh" button in "Status"
view makes "Mercurial view - Update
Target: 2 (...)". This field should be refreshed automatically
------- Comment #1 From 2007-10-16 16:28:49 -------
The problem is that when rollback is done there are no files whose status
changed so VersioningPanel is not notified.

As soon as a file changes status the fields are updated.
------- Comment #2 From 2007-10-17 15:43:39 -------
Created an attachment (id=51126) [details]
proposed patch
------- Comment #3 From 2007-10-22 18:36:32 -------
IDE:-------------------------------------------------
IDE: [10/22/07 6:35 PM] Committing Files started
Checking in ui/rollback/RollbackAction.java;
/shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/ui/rollback/RollbackAction.java,v
 <--  RollbackAction.java
new revision: 1.10; previous revision: 1.9
done
Checking in ui/diff/ImportDiffAction.java;
/shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/ui/diff/ImportDiffAction.java,v
 <--  ImportDiffAction.java
new revision: 1.9; previous revision: 1.8
done
Checking in ui/status/VersioningPanel.java;
/shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/ui/status/VersioningPanel.java,v
 <--  VersioningPanel.java
new revision: 1.8; previous revision: 1.7
done
Checking in Mercurial.java;
/shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/Mercurial.java,v
 <-- 
Mercurial.java
new revision: 1.13; previous revision: 1.12
done
IDE: [10/22/07 6:35 PM] Committing Files finished
------- Comment #4 From 2007-11-16 13:08:15 -------
Reopen, "Mercurial view - Update Target:" is still not refreshed.
------- Comment #5 From 2007-11-16 14:13:31 -------
I find that after Rollback then Update Target is updated but not after Import
Patches.

Is this what you see?
------- Comment #6 From 2007-11-16 14:20:54 -------
For me, it's also reproducible after Rollback. Refresh button has to be pushed
for seeing current status.
------- Comment #7 From 2007-11-16 14:42:07 -------
Yes. It does happen for Rollback. I am not sure why I thought it did not.
------- Comment #8 From 2007-11-16 14:45:16 -------
Created an attachment (id=53127) [details]
new patch
------- Comment #9 From 2007-11-19 11:54:43 -------
Patch committed to HEAD.
------- Comment #10 From 2007-11-19 12:00:04 -------
IDE:-------------------------------------------------
IDE: [11/19/07 11:54 AM] Committing "VersioningPanel.java" started
Checking in VersioningPanel.java;
/shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/ui/status/VersioningPanel.java,v
 <--  VersioningPanel.java
new revision: 1.12; previous revision: 1.11
done
IDE: [11/19/07 11:54 AM] Committing "VersioningPanel.java" finished
------- Comment #11 From 2007-12-10 06:09:43 -------
Verified.