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 197621 - Mercurial forgets default-pull and default-push properties
Summary: Mercurial forgets default-pull and default-push properties
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-11 14:04 UTC by vieiro
Modified: 2011-04-13 08:40 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 vieiro 2011-04-11 14:04:10 UTC
Description:

Mercurial "forgets" about default-pull adn default-push properties, and then doesn't allow to modify them, making mercurial support unusable to push/pull.

Steps to reproduce (I think):

1.- Create a mercurial repository on a directory on disk, with a NB Project within.

2.- Clone that repository (using NetBeans) onto another directory. During the wizard the default-pull adn default-push are informed, clone ends normally.

3.- The NB Project is detected in the clone. Select to open it within the IDE.

4.- The default-push and default-pull are forgotten. If you try to pull/push from default a popup window appears saying: "No default Push path set for this project. Please set a default Push path using Mercurial > Properties" and "OK".

5.- Press OK on the popup. Select "Mercurial > Properties". The "Hg Properties Editor" appears in a new window, there's a table there. The default-pull and default-push values in the table are blank. You cannot edit them by double-clicking on the table.

Version info:
Product Version: NetBeans IDE 7.0 RC2 (Build 201104070802)
Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02
System: Windows XP version 5.1 running on x86; Cp1252; es_ES (nb)
Userdir: C:\Documents and Settings\A148999\.netbeans\7.0rc2
Comment 1 Ondrej Vrabec 2011-04-11 15:54:38 UTC
Hmm, i'll take a look. Some corrections to the scenario:
1) Mercurial -> Clone Other.. must be invoked
2) Paths are not "forgotten", they are just saved in a form that causes the IDE's parser some problems. I don't know why but it seems a closing backslash seems to cause such a problem.
3) add 5) you don't dbl-click on the property, you click on the property and then fill the URL in the textarea underneath the table

As a workaround:
1) Either clone the project using faster Mercurial -> Clone instead of 'Clone other'
2) Edit the props and remove the closing backslash
Comment 2 vieiro 2011-04-11 17:44:59 UTC
Ah! I know what happens! The clone is on an USB disk that I mount from Windows and Mac OS/X. NetBeans behaviour is correct: "F:/myrepo" is not the same as "/Volumes/myrepo" I assume ;-)

I'm closing this as a consequence.
Comment 3 Ondrej Vrabec 2011-04-12 11:01:17 UTC
fix: http://hg.netbeans.org/core-main/rev/ff58fcfc7dd4
Comment 4 Quality Engineering 2011-04-13 08:40:29 UTC
Integrated into 'main-golden', will be available in build *201104130401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ff58fcfc7dd4
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: Issue #197621 - Mercurial forgets default-pull and default-push properties