Add missing var declaration
authorGraeme McCutcheon <graememcc_firefox@graeme-online.co.uk>
Fri, 04 Jan 2013 17:39:04 +0000
changeset 1194 44bdac3952a92805a463d5eb70c1f89c2cb3a61e
parent 1193 cc1af1d3edddb9b7f6ac803a60ef72a51d318064
child 1195 e445582c5dceab56c95e5d9d8a77bda9aaa67dc8
push id659
push useremorley@mozilla.com
push dateTue, 18 Jun 2013 13:49:17 +0000
Add missing var declaration
mcmerge/js/mcMerge.js
--- a/mcmerge/js/mcMerge.js
+++ b/mcmerge/js/mcMerge.js
@@ -418,25 +418,25 @@ var mcMerge = {
     if (this.validateChangeset(input)) {
       this.go('cset='+input, false);
       return;
     }
 
     var tree = null;
 
     for (var treeName in Config.treeInfo) {
-      reres = Config.treeInfo[treeName].hgRevRE.exec(input);
-      if (reres) {
-        input = input.substring(reres[0].length);
+      var reRes = Config.treeInfo[treeName].hgRevRE.exec(input);
+      if (reRes) {
+        input = input.substring(reRes[0].length);
         tree = treeName;
         break;
       } else {
-        reres = Config.treeInfo[treeName].hgPushlogRE.exec(input);
-        if (reres) {
-          input = input.substring(reres[0].length);
+        reRes = Config.treeInfo[treeName].hgPushlogRE.exec(input);
+        if (reRes) {
+          input = input.substring(reRes[0].length);
           tree = treeName;
           break;
         }
       }
     }
 
     if (tree && this.validateChangeset(input)) {
       this.go('cset='+input + '&tree=' + tree, false);