diff hgext/largefiles/overrides.py @ 15626:931dc4af0d95

largefiles: remove pre-1.7 compatibility code Mercurial 1.7 added the --subrepos flag to status and archive and the largefiles code was still compatible with the old method signatures.
author Martin Geisler <mg@aragost.com>
date Wed, 07 Dec 2011 16:25:51 +0100
parents a77ce45584ef
children 7b7f03502b5a
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Fri Dec 09 17:34:53 2011 +0100
+++ b/hgext/largefiles/overrides.py	Wed Dec 07 16:25:51 2011 +0100
@@ -635,10 +635,7 @@
     if subrepos:
         for subpath in ctx.substate:
             sub = ctx.sub(subpath)
-            try:
-                sub.archive(repo.ui, archiver, prefix)
-            except TypeError:
-                sub.archive(archiver, prefix)
+            sub.archive(repo.ui, archiver, prefix)
 
     archiver.done()