Edgewall Software
Modify

Opened 10 years ago

Closed 10 years ago

#12075 closed defect (worksforme)

trac-admin <env> changeset added fails silently

Reported by: Belegnar Owned by:
Priority: normal Milestone:
Component: admin/console Version: 1.0-stable
Severity: normal Keywords: trac-admin changeset added AttributeError
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

trac 1.0.5 tracmercurial 1.0.0.7

trac-admin <env> changeset added <repo> <number> silently do nothing

debugging brings this error

> /usr/lib/python2.7/cmd.py(218)onecmd()
    217             try:
--> 218                 func = getattr(self, 'do_' + cmd)
    219             except AttributeError:

ipdb> n
AttributeError: "TracAdmin instance has no attribute 'do_changeset'"

which is failed silently in try…except block.

Attachments (0)

Change History (1)

comment:1 by Jun Omae, 10 years ago

Resolution: worksforme
Status: newclosed

That is incorrect. TracAdmin class has default method.

217             try:
218                 func = getattr(self, 'do_' + cmd)
219             except AttributeError:
220                 return self.default(line)
221             return func(arg)

See source:/tags/trac-1.0.5/trac/admin/console.py#L270.

If you need CommitTicketUpdater, see TracRepositoryAdmin#Automaticchangesetreferencesintickets and TracRepositoryAdmin#ExplicitSync.

Modify Ticket

Change Properties
Set your email in Preferences
Action
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.