]> asedeno.scripts.mit.edu Git - git-svn-keywords.git/blobdiff - git-svn-keywords.py
Cache modified blobs as having rNNNM
[git-svn-keywords.git] / 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)