Modify ↓
#10477 closed defect (worksforme)
Post-commit hook gives strange answer
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | plugin/mercurial | Version: | 0.12-stable |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I'm using 0.12.0.28dev-r0 of TracMercurial, but I can't get my post-commit hook work. I make a change, commit, then I try to push the changeset to the server from TortoiseHg, when the following error happens:
% hg --repository D:\Documents\Visual Studio 2010\Projects\Aperitif push ssh://belidzs@10.35.35.27/hg/aperitif pushing to ssh://belidzs@10.35.35.27/hg/aperitif searching for changes remote: adding changesets remote: adding manifests remote: adding file changes remote: added 1 changesets with 2 changes to 2 files remote: *** Unknown syntax: changeset 'added' '/home/belidzs/hg/aperitif' '11' [command completed successfully Sun Nov 20 21:08:04 2011]
The change itself successfully pushes and appears in trac, but the ticket only closes when I manually execute this:
trac-admin changeset added /var/local/trac 11
Attachments (2)
Change History (9)
by , 13 years ago
by , 13 years ago
comment:1 by , 13 years ago
Milestone: | → plugin - mercurial |
---|---|
Owner: | set to |
comment:3 by , 13 years ago
Sorry, the correct command to add the questioned changeset is:
trac-admin /var/local/trac changeset added /home/belidzs/hg/aperitif 11
comment:6 by , 9 years ago
Owner: | removed |
---|
comment:7 by , 9 years ago
Milestone: | plugin - mercurial |
---|
Removing milestone as per policy TracTicketTriage.
Note:
See TracTickets
for help on using tickets.
The error message comes from Mercurial, but the content of the error definitely comes from Trac. I wonder if Mercurial chokes on something we print to stdout (which we shouldn't do, especially in the case of Python hooks).