]> asedeno.scripts.mit.edu Git - git-svn-keywords.git/commitdiff
Skip files for which we have no data
authorAlejandro R. Sedeño <asedeno@mit.edu>
Thu, 3 Dec 2009 21:23:51 +0000 (16:23 -0500)
committerAlejandro R. Sedeño <asedeno@mit.edu>
Thu, 3 Dec 2009 21:23:51 +0000 (16:23 -0500)
This may happen if we're working on files in history that later get svn keywords.

git-svn-keywords.py

index c09d0452de26c8446a3f9264904b49054cbef27e..ae62300e9054098753dbf5782e4c6cd67b16adb2 100755 (executable)
@@ -191,8 +191,10 @@ def smudge(g, options):
                 ignore = True
         if ignore:
             continue
-
-        kw_rev = max(filter(lambda x: x <= rev_head, map(int, FILES.options(path))))
+        try:
+            kw_rev = max(filter(lambda x: x <= rev_head, map(int, FILES.options(path))))
+        except ValueError:
+            continue
 
         info_dict = {}
         if not options.clean: