cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1423657 - /cxf/trunk/bin/DoMerges.java
Date Tue, 18 Dec 2012 21:17:09 GMT
Author: dkulp
Date: Tue Dec 18 21:17:09 2012
New Revision: 1423657

URL: http://svn.apache.org/viewvc?rev=1423657&view=rev
Log:
Add a "-from" to my script to provide a starting point

Modified:
    cxf/trunk/bin/DoMerges.java

Modified: cxf/trunk/bin/DoMerges.java
URL: http://svn.apache.org/viewvc/cxf/trunk/bin/DoMerges.java?rev=1423657&r1=1423656&r2=1423657&view=diff
==============================================================================
--- cxf/trunk/bin/DoMerges.java (original)
+++ cxf/trunk/bin/DoMerges.java Tue Dec 18 21:17:09 2012
@@ -732,9 +732,12 @@ public class DoMerges {
         }
         
         int onlyVersion = -1;
+        int fromVersion = -1;
         if (args.length > 0) {
             if ("-auto".equals(args[0])) { 
                 auto = true;
+            } else if ("-from".equals(args[0])) {
+                fromVersion = Integer.valueOf(args[1]);
             } else {
                 onlyVersion = Integer.valueOf(args[0]);
             }
@@ -758,6 +761,15 @@ public class DoMerges {
             verList.clear();
             verList.add(onlyVersion);
         }
+        if (fromVersion != -1) {
+            Iterator<Integer> it = verList.iterator();
+            while (it.hasNext()) {
+                Integer i = it.next();
+                if (i < fromVersion) {
+                    it.remove();
+                }
+            }
+        }
         if (verList.isEmpty()) {
             System.out.println("Nothing needs to be merged");
             System.exit(0);



Mime
View raw message