##// END OF EJS Templates
svn: use shared configurable storage for svn_txn_id interception logic.
marcink -
r3021:6b1bbc7a stable
parent child Browse files
Show More
@@ -190,8 +190,14 b' class HttpHooksCallbackDaemon(ThreadedHo'
190 190
191 191
192 192 def get_txn_id_data_path(txn_id):
193 root = tempfile.gettempdir()
194 return os.path.join(root, 'rc_txn_id_{}'.format(txn_id))
193 import rhodecode
194
195 root = rhodecode.CONFIG.get('cache_dir') or tempfile.gettempdir()
196 final_dir = os.path.join(root, 'svn_txn_id')
197
198 if not os.path.isdir(final_dir):
199 os.makedirs(final_dir)
200 return os.path.join(final_dir, 'rc_txn_id_{}'.format(txn_id))
195 201
196 202
197 203 def store_txn_id_data(txn_id, data_dict):
@@ -74,10 +74,10 b' class SimpleSvnApp(object):'
74 74
75 75 if response.status_code not in [200, 401]:
76 76 if response.status_code >= 500:
77 log.error('Got SVN response:%s with text:`%s`',
77 log.error('Got SVN response:%s with text:\n`%s`',
78 78 response, response.text)
79 79 else:
80 log.debug('Got SVN response:%s with text:`%s`',
80 log.debug('Got SVN response:%s with text:\n`%s`',
81 81 response, response.text)
82 82 else:
83 83 log.debug('got response code: %s', response.status_code)
General Comments 0
You need to be logged in to leave comments. Login now