Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-vcm-dev] Patch: default user names for cvs

Also note that lots of repositories use "cvs" as the anonymous user 
name... perhaps that should be added to your list as well.





Tom Tromey <tromey@xxxxxxxxxx>
Sent by: platform-vcm-dev-admin@xxxxxxxxxxx
11/21/02 11:20 PM
Please respond to platform-vcm-dev

 
        To:     platform-vcm-dev <platform-vcm-dev@xxxxxxxxxxx>
        cc: 
        Subject:        [platform-vcm-dev] Patch: default user names for cvs

I find that I almost always use one of three user names when using
CVS: my current login, "anonymous", or "anoncvs".  I've found the
appended patch convenient.  It sets up defaults for the user name
combo in the new cvs repository wizard.

I'm working on a larger patch that adds a new menu item:
"New->Standard Public Repository".  The idea here is that we can make
it very easy for the Eclipse user to check out a project from one of
the common public cvs repositories.  Is this something you'd be
interested in?

Tom

Index: 
src/org/eclipse/team/internal/ccvs/ui/wizards/ConfigurationWizardMainPage.java
===================================================================
RCS file: 
/home/eclipse/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/ConfigurationWizardMainPage.java,v
retrieving revision 1.22
diff -u -r1.22 ConfigurationWizardMainPage.java
--- 
src/org/eclipse/team/internal/ccvs/ui/wizards/ConfigurationWizardMainPage.java 
4 Sep 2002 20:16:35 -0000 1.22
+++ 
src/org/eclipse/team/internal/ccvs/ui/wizards/ConfigurationWizardMainPage.java 
22 Nov 2002 04:03:32 -0000
@@ -290,6 +290,14 @@
                                                                 }
                                                 }
                                                 String[] userNames = 
settings.getArray(STORE_USERNAME_ID);
+                                                if (userNames == null) {
+                                                                userNames 
= new String[] {
+  System.getProperty("user.name"),
+  "anonymous",
+  "anoncvs"
+                                                                };
+ settings.put(STORE_USERNAME_ID, userNames);
+                                                }
                                                 if (userNames != null) {
                                                                 for (int 
i = 0; i < userNames.length; i++) {
  userCombo.add(userNames[i]);
_______________________________________________
platform-vcm-dev mailing list
platform-vcm-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-vcm-dev





Back to the top