263 return |
263 return |
264 |
264 |
265 repocheck_timeout[repo_name] = time.time() + (cfg ('hg_checkinterval', 15) * 60) |
265 repocheck_timeout[repo_name] = time.time() + (cfg ('hg_checkinterval', 15) * 60) |
266 zanrepo = hgapi.Repo (repo_name) |
266 zanrepo = hgapi.Repo (repo_name) |
267 commit_data = [] |
267 commit_data = [] |
|
268 delimeter = '@@@@@@@@@@' |
268 |
269 |
269 try: |
270 try: |
270 data = zanrepo.hg_command ('incoming', '--quiet', '--template', '{node|short} {desc}\n') |
271 data = zanrepo.hg_command ('incoming', '--quiet', '--template', |
|
272 '{node|short} {desc}' + delimeter) |
271 except hgapi.hgapi.HgException as e: |
273 except hgapi.hgapi.HgException as e: |
272 deciphered = decipher_hgapi_error (e) |
274 deciphered = decipher_hgapi_error (e) |
273 |
275 |
274 if deciphered[0] and len(deciphered[1]) > 0: |
276 if deciphered[0] and len(deciphered[1]) > 0: |
275 chanlog ("error while using hg import on %s: %s" % (repo_name, deciphered[1])) |
277 chanlog ("error while using hg import on %s: %s" % (repo_name, deciphered[1])) |