Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#1289 closed defect (fixed)

Hitting Enter in trac-admin repeats the previous command

Reported by: Norbert Unterberg <nepo@…> Owned by: Christopher Lenz
Priority: low Milestone: 0.9
Component: admin/console Version: 0.8.1
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When you hit enter in trac-admin, the previous command is repeated and executed again. In most cases this is harmless, but you never know…

Attachments (0)

Change History (3)

comment:1 by Matthew Good <trac matt-good net>, 19 years ago

Ok, looks like we just need to override Cmd.emptyline

=== scripts/trac-admin
==================================================================
--- scripts/trac-admin  (revision 1608)
+++ scripts/trac-admin  (local)
@@ -64,6 +64,9 @@
     def docmd(self, cmd='help'):
         self.onecmd(cmd)

+    def emptyline():
+        pass
+
     def run(self):
         self.interactive = 1
         print 'Welcome to trac-admin %(ver)s\n'                \

comment:2 by Christopher Lenz, 19 years ago

Milestone: 0.9
Owner: changed from daniel to Christopher Lenz
Priority: normallow
Severity: normalminor
Status: newassigned
Version: devel0.8.1

Looks good.

comment:3 by anonymous, 19 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [1345].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz 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.