Set correct root for CHECKOUT_IMPORTED global command.
This is a fix of issue #52331.
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.