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 126980 - Hg out problem with defaults.
Summary: Hg out problem with defaults.
Status: CLOSED DUPLICATE of bug 125835
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-08 09:29 UTC by Peter Pis
Modified: 2008-02-12 18:51 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 Peter Pis 2008-02-08 09:29:24 UTC
Product Version: NetBeans IDE 6.0 (Build 200711261600)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)
Userdir: D:\ide\6.0\user

Steps:
1. Create new project - "PR". Initialize it. Commit all changes.
2. Clone this project.
3. In "PR_clone0" add some file and commit it.
4. Select "PR_clone0" and invoke "Mercurial | Show Out" action.

Nothing is displayed. 

Then from command line I've tried (in "PR_clone0"):
===
hg out
comparing with https://user:passwd@hg.netbeans.org/main/
searching for changes
abort: repository is unrelated
===

But when I pointed hg out (in PR_clone0)
===
hg out <PR_Location>
===

then the result is fine.


IHMO, this is related to Mercurial.ini settings for default. So my suggestion is to use command hg out with repository
location if default push/pull are set for the project
Comment 1 John Rice 2008-02-11 17:55:37 UTC
hg out:
Show changesets not found in the specified destination repository or the default push location. 

We don't know which repository this came from we can only query for the default push location from hg. If you do a hg
clone, it will set the default path but not the default-push path. So if you have a top level Mercurial.ini or ~/.hgrc
file and it has a default-push set this is what it will use.

What we can do is after the clone completes, check if there is a default-push set and if not create one. This should
sort out your issue for local clones.
Comment 2 John Rice 2008-02-12 18:47:14 UTC

*** This issue has been marked as a duplicate of 125835 ***
Comment 3 Peter Pis 2008-02-12 18:51:50 UTC
Verified as a dup. closing.