Anonymous avatar Anonymous committed 21f73a4

l10nmove: minor fixes

Comments (0)

Files changed (2)

solenv/bin/cws.pl

     my $pull_from_remote = 0;
     my $cws_remote_source;
     if ( !$clone_milestone_only ) {
-        $cws_remote_source = "$hg_remote_source/cws/" . $cws->child();
+        if ($rep_type eq "ooo" || $rep_type eq "so")
+        {
+            $cws_remote_source = "$hg_remote_source/cws/" . $cws->child();
+        }
+        # e.g. cws_l10n 
+        else
+        {
+             $cws_remote_source = "$hg_remote_source/cws_".$rep_type."/" . $cws->child();
+        }
 
         # The outgoing repository might not yet be available. Which is not
         # an error. Since pulling from the cws outgoing URL results in an ugly
                 print_error("Can't create directory '$work_master': $!.", 8);
             }
 
-            my %unique = map { $_ => 1 } split(/,/,$additional_repositories_opt);
+            my %unique = map { $_ => 1 } split(/","/,$additional_repositories_opt);
             my @unique_repo_list = keys %unique;
 
             if (defined($additional_repositories_opt))
             {
                 foreach my $repo(@unique_repo_list) 
                 {
-                    hg_clone_cws_or_milestone($repo, $cws, "$work_master/".$repo, $clone_milestone_only), if $repo ne "ooo" || $repo ne "sun";
+                    # do not double clone ooo and sun
+                    hg_clone_cws_or_milestone($repo, $cws, "$work_master/".$repo, $clone_milestone_only), if $repo ne "ooo" && $repo ne "sun";
                 }
 
             }

solenv/bin/modules/CwsConfig.pm

     my $repository  = shift;
     my $location    = shift;
 
+    #Special prefix handling, see cwsrc
     if ($repository eq "OOO")
     {
         if ($location eq "LOCAL")
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.