Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#7498 closed defect (fixed)

TracAdmin hotcopy fails due to missing function in console.py

Reported by: palmer.todd@… Owned by: palmer.todd@…
Priority: normal Milestone: 0.11.1
Component: admin/console Version: 0.12dev
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

changset:7365 left off the remove_if_overwriting method, causing trac-admin hotcopy to fail:

Traceback (most recent call last):
  File "C:\Python25\scripts\trac-admin-script.py", line 8, in <module>
    load_entry_point('Trac==0.12dev-r7422', 'console_scripts', 'trac-admin')()
  File "c:\python25\lib\site-packages\Trac-0.12dev_r7422-py2.5.egg\trac\admin\console.py", line 1294, in run
    return admin.onecmd(command)
  File "c:\python25\lib\site-packages\Trac-0.12dev_r7422-py2.5.egg\trac\admin\console.py", line 125, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "C:\Python25\lib\cmd.py", line 219, in onecmd
    return func(arg)
  File "c:\python25\lib\site-packages\Trac-0.12dev_r7422-py2.5.egg\trac\admin\console.py", line 1176, in do_hotcopy
    copytree(self.__env.path, dest, symlinks=1, skip=skip)
  File "c:\python25\lib\site-packages\Trac-0.12dev_r7422-py2.5.egg\trac\admin\console.py", line 90, in copytree
    copytree_rec(str_path(src), str_path(dst))
  File "c:\python25\lib\site-packages\Trac-0.12dev_r7422-py2.5.egg\trac\admin\console.py", line 81, in copytree_rec
    copytree_rec(srcname, dstname)
  File "c:\python25\lib\site-packages\Trac-0.12dev_r7422-py2.5.egg\trac\admin\console.py", line 81, in copytree_rec
    copytree_rec(srcname, dstname)
  File "c:\python25\lib\site-packages\Trac-0.12dev_r7422-py2.5.egg\trac\admin\console.py", line 81, in copytree_rec
    copytree_rec(srcname, dstname)
  File "c:\python25\lib\site-packages\Trac-0.12dev_r7422-py2.5.egg\trac\admin\console.py", line 83, in copytree_rec
    remove_if_overwriting(dstname)
NameError: global name 'remove_if_overwriting' is not defined

Patch fix: attachment:console.patch

Attachments (1)

console.patch (543 bytes ) - added by palmer.todd@… 16 years ago.
console.py patch

Download all attachments as: .zip

Change History (3)

by palmer.todd@…, 16 years ago

Attachment: console.patch added

console.py patch

comment:1 by Jonas Borgström, 16 years ago

Resolution: fixed
Status: newclosed

Thanks, fixed in r7437.

comment:2 by Christian Boos, 16 years ago

Milestone: 0.11.1
Owner: set to palmer.todd@…

Modify Ticket

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