[MERGE] workaround for bug #81689: give a proper error message instead of traceback when symlink cannot be created (e.g. on Windows)
Alexander Belchenko
bialix at ukr.net
Thu Nov 22 09:30:05 GMT 2007
This patch is workaround for problem with checkout linux tree with
symlinks on windows machine. The bug report #81689 ask for
having [fake] symlinks support as core feature of bzr, but
at least user should not see ugly traceback:
Traceback (most recent call last):
File "bzrlib\commands.pyc", line 626, in run_bzr_catch_errors
File "bzrlib\commands.pyc", line 588, in run_bzr
File "bzrlib\commands.pyc", line 292, in run_argv_aliases
File "bzrlib\builtins.pyc", line 756, in run
File "bzrlib\bzrdir.pyc", line 688, in sprout
File "bzrlib\bzrdir.pyc", line 914, in create_workingtree
File "bzrlib\workingtree.pyc", line 2113, in initialize
File "bzrlib\transform.pyc", line 1008, in build_tree
File "bzrlib\transform.pyc", line 1093, in new_by_entry
File "bzrlib\transform.pyc", line 904, in new_symlink
File "bzrlib\transform.pyc", line 318, in create_symlink
AttributeError: 'module' object has no attribute 'symlink'
With this patch checkout operation stops with message:
bzr: ERROR: Unable to create symlink on this platform
If you think it needs the test, then please suggest how to write
one. Because I'm not quite understand how to manually create
branch w/o working tree but with inventory that contains symlink
entry.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bzr-mail-ftfg2x.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20071122/9cc91adf/attachment.diff
More information about the bazaar
mailing list