From: Alejandro R. SedeƱo Date: Fri, 19 Feb 2010 22:34:52 +0000 (-0500) Subject: Cache modified blobs as having rNNNM X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=74829b63a8daab8d17009188fb5162994f913d1f;p=git-svn-keywords.git Cache modified blobs as having rNNNM --- diff --git a/git-svn-keywords.py b/git-svn-keywords.py index 838e427..6825f33 100755 --- a/git-svn-keywords.py +++ b/git-svn-keywords.py @@ -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)