]> asedeno.scripts.mit.edu Git - git-svn-keywords.git/commitdiff
Cache modified blobs as having rNNNM
authorAlejandro R. Sedeño <asedeno@mit.edu>
Fri, 19 Feb 2010 22:34:52 +0000 (17:34 -0500)
committerAlejandro R. Sedeño <asedeno@mit.edu>
Fri, 19 Feb 2010 22:34:52 +0000 (17:34 -0500)
git-svn-keywords.py

index 838e4276113d0e003d9448da53c9bac8c04af7c3..6825f330c30027ac239802ca7bec30842a30c8ad 100755 (executable)
@@ -157,9 +157,10 @@ def get_path_info(g, path):
     # tranlsate that into an svn revision id
     if not CONFIG.has_option('CommitToRev', commit):
         file_rev = g.git.svn('find-rev', commit)
-        if file_rev:
-            CONFIG.set('CommitToRev', commit, file_rev)
-            write_config = True
+        if not file_rev:
+            file_rev = "%iM" % find_last_svn_rev('HEAD')
+        CONFIG.set('CommitToRev', commit, file_rev)
+        write_config = True
     else:
         file_rev = CONFIG.get('CommitToRev', commit)