Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: sitescripts/hg/bin/irchook.py

Issue 8327353: Crawler backend (Closed)
Left Patch Set: README fix Created Sept. 14, 2012, 2:42 p.m.
Right Patch Set: Created Sept. 27, 2012, 2:15 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(no file at all)
1 import os, subprocess, pipes
2
3 from sitescripts.utils import get_config
4
5 def hook(ui, repo, node=None, **kwargs):
6 ctx = repo[node]
7 remote = [get_config().get('irchook', 'remote_command'),
8 os.path.basename(repo.root), str(ctx.user()), str(ctx),
9 str(ctx.description())]
10 remote = ' '.join(map(lambda s: pipes.quote(s), remote))
11
12 command = ['ssh', get_config().get('irchook', 'remote_host'), remote]
13 subprocess.call(command)
LEFTRIGHT

Powered by Google App Engine
This is Rietveld