Modify ↓
#7498 closed defect (fixed)
TracAdmin hotcopy fails due to missing function in console.py
Reported by: | Owned by: | ||
---|---|---|---|
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)
Change History (3)
by , 16 years ago
Attachment: | console.patch added |
---|
comment:2 by , 16 years ago
Milestone: | → 0.11.1 |
---|---|
Owner: | set to |
Note:
See TracTickets
for help on using tickets.
console.py patch