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 254367 - Default pull / push is ignored
Summary: Default pull / push is ignored
Status: RESOLVED INVALID
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 8.1
Hardware: PC Linux
: P4 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-14 10:16 UTC by mperezma
Modified: 2015-08-14 12:20 UTC (History)
0 users

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 mperezma 2015-08-14 10:16:07 UTC
NetBeans is ignoring the mercurial default pull and default push properties.
Steps to reproduce:

1) Activate versioning labels for more easily identify cloned projects: View -> Show Versioning Labels.
2) Create a new project and init a hg repo for it:
  - File -> New Project -> Java Application; name it p1
  - Project p1 -> Versioning -> Initialize mercurial..
  - Project p1 -> Mercurial -> Commit
3) Clone project p1:
  - Project p1 -> Mercurial -> Remote -> Clone (suggested p1_clone0 is ok)
4) Create an other project and init a hg repo for it:
  - File -> New Project -> Java Application; name it p2
  - Project p2 -> Versioning -> Initialize mercurial..
  - Project p2 -> Mercurial -> Commit
5) Clone project p2:
  - Project p2 -> Mercurial -> Remote -> Clone (suggested p2_clone0 is ok)
6) Try to pull from p1_clone0:
  - Expected: path to p1 project should be used, but we need to select it from the combo.
7) Try to pull from p2_clone0:
  - Expected: path to p2 project should be used, but instead of it we get the last used for p1 project.
8) Try to pull from p1_clone0:
  - Expected: path to p1 project should be used, but now it has retained the last used: p2...

If we inspect Mercurial -> Properties on any of the cloned projects, we see the default pull and push paths to pristines ok, but the are ignored.
Comment 1 Ondrej Vrabec 2015-08-14 10:44:48 UTC
push/pull wizard just remembers the last used URL, it merely does not preselect the default URL. Why do you even use this action? You should stick to Pull/Push from/to default.
Comment 2 mperezma 2015-08-14 10:55:14 UTC
I can't find "pull from default".. I right-click the project and select Mercurial -> Remote -> Pull...
The only options I see to pull are "Pull current branch", "Pull all branches" and "Pull..." from this popup menu.
Comment 3 Ondrej Vrabec 2015-08-14 11:02:02 UTC
Sorry, my fault, it used to be Pull from default, now it is:
Pull current branch - hg pull -b CURRENT_BRANCH
Pull all branches - hg pull
Both working with the default path. So you probably want to try these.
Comment 4 mperezma 2015-08-14 12:20:11 UTC
You are right. These commands works as expected with default repos defined in hg properties for the project. I close the issue.

Anyway, an enhancement would be to make the last url project-dependent. It has no much sense to propose a url of other project...

Thank you a lot.