Edgewall Software
Modify

Ticket #10477 (new defect)

Opened 6 months ago

Last modified 6 months ago

Post-commit hook gives strange answer

Reported by: balazs.keresztury@… Owned by: rblank
Priority: normal Milestone: plugin - mercurial
Component: plugin/mercurial Version: 0.12-stable
Severity: normal Keywords:
Cc:
Release Notes:
API 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

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

Download all attachments as: .zip

Change History

Changed 6 months ago by balazs.keresztury@…

Changed 6 months ago by balazs.keresztury@…

comment:1 Changed 6 months ago by rblank

  • Milestone set to plugin - mercurial
  • Owner set to rblank

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 Changed 6 months ago by anonymous

Is there anything I can help to find this out?

comment:3 Changed 6 months ago by balazs.keresztury@…

Sorry, the correct command to add the questioned changeset is:

trac-admin /var/local/trac changeset added /home/belidzs/hg/aperitif 11
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from rblank. Next status will be 'new'
The owner will be changed from rblank to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.