[PATCH] Allow specifying > 2 files at command line



The attached patch to meldapp.py allows passing in multiple files to
compare at the command line.

Thanks,
-Adrian

P.S. I'm not subscribed to the list.
--- orig/meldapp.py	2007-04-05 11:51:16.027877000 -0700
+++ new/meldapp.py	2007-04-05 11:47:34.000000000 -0700
@@ -886,6 +886,11 @@
                 
     elif len(args) in (2,3):
         app.append_diff(args)
+    elif len(args) % 2 == 0:
+        i = 0
+        while i < len(args):
+            app.append_diff([args[i], args[i+1]])
+            i = i + 2
     else:
         app.usage( _("Wrong number of arguments (Got %i)") % len(args))
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]