# 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)