branch command failed with --hardlink option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
High
|
Unassigned |
Bug Description
I tried branching with the --hardlink option and it failed with the stack trace mentioned below. I tested it in a shared repo and in a normal repo and on both test it failed.
The --hardlink option worked when I did a small test containing a simple text file.
Thanks
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
AttributeError: 'module' object has no attribute 'link'
bzr 1.9 on python 2.5.2 (win32)
arguments: ['bzr', 'branch', '--hardlink', 'st1', 'st2']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
bzrtools C:\Program Files\Bazaar\
cvsps_import E:\Documents and Settings\
fastimport E:\Documents and Settings\
launchpad C:\Program Files\Bazaar\
qbzr C:\Program Files\Bazaar\
svn C:\Program Files\Bazaar\
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
Python's os.link function doesn't exist on Windows, but bzrlib.transform's create_hardlink method doesn't handle that. My guess is that --hardlink should probably be a no-op on Windows.