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 130625 - Default username
Summary: Default username
Status: VERIFIED DUPLICATE of bug 126803
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-03-20 11:37 UTC by novakm
Modified: 2008-04-14 07:55 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 novakm 2008-03-20 11:37:15 UTC
Where does the default username in options come from? <login>@<hostname> is quite confusing from several reasons:
1) If you want to change it, for example just add one letter to login and press OK, you are presented with warning
dialog that it is not valid email address. But then the original is not either.
2) If you change it in options to valid email address and press OK, then you delete the created hgrc (because you want
to yous your Mercurial.ini at mercurial install dir), just opening the options and pressing OK will create the hgrc
again. Maybe a button "set" or something like that might be there. You can say that you should press Cancel if you don't
want to use what is in options, but most people will pres OK, because they know they did not change anything so they
don't expect to be any difference from before.
3) Invoking Mercurial | Properties... does show other username than is used for push. I think that if you did not change
anything there (thus <project>/.hg/hgrc is not created), there should be present a username that will be used for push.

I think that the default username should be determined looking into hgrc or .ini. The question is what should be there
when no username is found in any of these files, perhaps the <username>@<hostname> but then the behavior of options has
to be changed as stated above.

I am not sure what would be the best way to solve this, but in current state is really confusing.

NetBeans IDE Dev (Build 200803170003)
Comment 1 Padraig Obriain 2008-03-20 12:33:00 UTC
Is this description based on what is currently checked in or on the patch in #126803?

Comment 2 novakm 2008-03-20 12:59:36 UTC
It is based on current daily build without that patch. I wanted to have the options and default username problem
isolated, that's why I filed another issue. I will test the patch on Monday and add my comment to both issues afterwards.
Comment 3 novakm 2008-03-25 09:54:53 UTC
Well I tested the patch. As far as I tested it, no change for the default user name described here was not introduced,
was it?
Comment 4 John Rice 2008-03-26 18:41:04 UTC

*** This issue has been marked as a duplicate of 126803 ***
Comment 5 novakm 2008-04-14 07:55:32 UTC
Verified duplicate