Edgewall Software

Opened 11 years ago

Closed 8 years ago

Last modified 7 years ago

#10477 closed defect (worksforme)

Post-commit hook gives strange answer

Reported by: balazs.keresztury@… Owned by:
Priority: normal Milestone:
Component: plugin/mercurial Version: 0.12-stable
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


I'm using 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@
pushing to ssh://belidzs@
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)

hgrc (451 bytes ) - added by balazs.keresztury@… 11 years ago.
trac.ini (4.7 KB ) - added by balazs.keresztury@… 11 years ago.

Download all attachments as: .zip

Change History (9)

by balazs.keresztury@…, 11 years ago

Attachment: hgrc added

by balazs.keresztury@…, 11 years ago

Attachment: trac.ini added

comment:1 by Remy Blank, 11 years ago

Milestone: plugin - mercurial
Owner: set to Remy Blank

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).

comment:2 by anonymous, 11 years ago

Is there anything I can help to find this out?

comment:3 by balazs.keresztury@…, 11 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:4 by Remy Blank, 10 years ago

Did you ever find out what the issue was?

comment:5 by Remy Blank, 8 years ago

Resolution: worksforme
Status: newclosed

No answer, closing.

comment:6 by Remy Blank, 8 years ago

Owner: Remy Blank removed

comment:7 by figaro, 7 years ago

Milestone: plugin - mercurial

Removing milestone as per policy TracTicketTriage.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.