diff hgext/largefiles/overrides.py @ 18540:139529b0a191

merge: make all action tuples have the same length - keep args as tuple
author Mads Kiilerich <madski@unity3d.com>
date Thu, 24 Jan 2013 23:57:44 +0100
parents b7da9c042b9e
children 5ed6a375e9ca
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Thu Jan 24 23:57:44 2013 +0100
+++ b/hgext/largefiles/overrides.py	Thu Jan 24 23:57:44 2013 +0100
@@ -368,7 +368,7 @@
         if overwrite:
             processed.append(action)
             continue
-        f, m = action[:2]
+        f, m, args = action
 
         choices = (_('&Largefile'), _('&Normal file'))
         if m == "g" and lfutil.splitstandin(f) in p1 and f in p2:
@@ -379,10 +379,10 @@
             msg = _('%s has been turned into a largefile\n'
                     'use (l)argefile or keep as (n)ormal file?') % lfile
             if repo.ui.promptchoice(msg, choices, 0) == 0:
-                processed.append((lfile, "r"))
-                processed.append((standin, "g", p2.flags(standin)))
+                processed.append((lfile, "r", None))
+                processed.append((standin, "g", (p2.flags(standin),)))
             else:
-                processed.append((standin, "r"))
+                processed.append((standin, "r", None))
         elif m == "g" and lfutil.standin(f) in p1 and f in p2:
             # Case 2: largefile in the working copy, normal file in
             # the second parent
@@ -391,10 +391,10 @@
             msg = _('%s has been turned into a normal file\n'
                     'keep as (l)argefile or use (n)ormal file?') % lfile
             if repo.ui.promptchoice(msg, choices, 0) == 0:
-                processed.append((lfile, "r"))
+                processed.append((lfile, "r", None))
             else:
-                processed.append((standin, "r"))
-                processed.append((lfile, "g", p2.flags(lfile)))
+                processed.append((standin, "r", None))
+                processed.append((lfile, "g", (p2.flags(lfile),)))
         else:
             processed.append(action)