Set correct root for CHECKOUT_IMPORTED global command. BLD200412131900
authormentlicher@netbeans.org
Mon, 13 Dec 2004 17:17:55 +0000
changeset 5487ab9403f52097
parent 5486 c656443ac5f0
child 5488 290239fbb938
Set correct root for CHECKOUT_IMPORTED global command.
This is a fix of issue #52331.
vcs.profiles.cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/commands/CvsPreCheckoutFolder.java
     1.1 --- a/vcs.profiles.cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/commands/CvsPreCheckoutFolder.java	Mon Dec 13 07:41:38 2004 +0000
     1.2 +++ b/vcs.profiles.cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/commands/CvsPreCheckoutFolder.java	Mon Dec 13 17:17:55 2004 +0000
     1.3 @@ -47,7 +47,10 @@
     1.4                          CommandDataOutputListener stdoutListener, String dataRegex,
     1.5                          CommandDataOutputListener stderrListener, String errorRegex) {
     1.6                              
     1.7 -        String root = (String) vars.get("ROOTDIR");
     1.8 +        String root = (String) vars.get("CHECKOUT_ROOTDIR"); // For CHECKOUT_IMPORTED global command
     1.9 +        if (root == null) {
    1.10 +            root = (String) vars.get("ROOTDIR");
    1.11 +        }
    1.12          String dir = (String) vars.get("DIR");
    1.13          String file = (String) vars.get("FILE");
    1.14          // Do nothing when we're not in root.