| Index: sitescripts/hg/bin/irchook.py | 
| =================================================================== | 
| --- a/sitescripts/hg/bin/irchook.py | 
| +++ b/sitescripts/hg/bin/irchook.py | 
| @@ -2,15 +2,18 @@ import os | 
| import subprocess | 
| import pipes | 
|  | 
| from sitescripts.utils import get_config | 
|  | 
|  | 
| def hook(ui, repo, node=None, **kwargs): | 
| ctx = repo[node] | 
| +    commit_identifiers = ctx.bookmarks() | 
| +    if not commit_identifiers or ctx.branch() != 'default': | 
| +        commit_identifiers.append(ctx.branch()) | 
| remote = [get_config().get('irchook', 'remote_command'), | 
| -              os.path.basename(repo.root), str(ctx.branch()), str(ctx.user()), | 
| -              str(ctx), str(ctx.description())] | 
| +              os.path.basename(repo.root), ','.join(commit_identifiers), | 
| +              str(ctx.user()), str(ctx), str(ctx.description())] | 
| remote = ' '.join(map(lambda s: pipes.quote(s), remote)) | 
|  | 
| command = ['ssh', get_config().get('irchook', 'remote_host'), remote] | 
| subprocess.call(command) | 
|  |