Checkout of branch w/ long file names to deep path fails on Windows XP
Bulgrien, Kevin
Kevin.Bulgrien at GDSATCOM.com
Wed Aug 22 15:01:27 UTC 2012
I have Windows XP system configuration committed in Bazaar. This was done along the lines of:
On a Linux server:
mkdir -p /home/data/bzr/user/kbulgrien/windows_xp
bzr init-repo -no-trees /home/data/bzr/user/kbulgrien/windows_xp
mkdir -p /home/data/bzr/user/kbulgrien/windows_xp/common
bzr init /home/data/bzr/user/kbulgrien/windows_xp/common
cd /home/data/bzr/user/kbulgrien/windows_xp
bzr branch common machine1
On Windows
C:
CD \
bzr co -lightweight bzr+ssh://server/home/data/bzr/user/kbulgrien/windows_wp/machine1
Files are added and committed.
Later, I push the state of the machine1 repository to common.
Then I branch common to machine2 on the server.
Next, I checkout machine2 from the server to a temporary location on machine2.
C:
CD \
mkdir bzr_tmp\machine2
cd bzr_tmp\machine2
C:\bzr_tmp\machine2>bzr checkout bzr+ssh://server/home/data/bzr/user/kbulgrien/windows_xp/machine2 .
Connected (version 2.0, client OpenSSH_5.1)
SSH kbulgrien at server password:
Authentication (password) successful!
Secsh channel 1 opened.
C:\bzr_tmp\machine2>dir
Volume in drive C has no label.
Volume Serial Number is ACF3-CFF7
Directory of C:\bzr_tmp\machine2
08/22/2012 09:42 AM <DIR> .
08/22/2012 09:42 AM <DIR> ..
08/22/2012 09:42 AM 323 .bzrignore
08/22/2012 09:42 AM 211 boot.ini
08/22/2012 09:42 AM <DIR> Documents and Settings
08/22/2012 09:42 AM <DIR> Program Files
2 File(s) 534 bytes
4 Dir(s) 233,819,410,432 bytes free
This works fine... which is a shock, because it hasn't worked up until I simplified the checkout to post this note.
What I was doing that didn't work:
C:
CD \
CD \msys\1.0\home\kbulgrien\tmp
MD bzr
CD bzr
MD kbulgrien
CD kbulgrien
MD windows_xp
CD windows_xp
MD machine2
CD machine2
C:\msys\1.0\home\kbulgrien\tmp\bzr\kbulgrien\windows_xp\machine2>bzr checkout bzr+ssh://server/home/data/bzr/user/kbulgrien/windows_xp/machine2
.
Connected (version 2.0, client OpenSSH_5.1)
SSH kbulgrien at server password:
Authentication (password) successful!
Secsh channel 1 opened.
bzr: ERROR: [Errno 2] No such file or directory: u'C:/msys/1.0/home/kbulgrien/tm
p/bzr/kbulgrien/windows_xp/machine2/.bzr/checkout/limbo/new-2/kbulgrien/Favorite
s/Hardware/Emulation/Emulation Technology, Inc. World Leader for IC Adapters, Te
st Clips, Sockets and IC Testing Accessories for QFP, BGA, PGA, PBGA.url'
C:\msys\1.0\home\kbulgrien\tmp\bzr\kbulgrien\windows_xp\machine2>dir
Volume in drive C has no label.
Volume Serial Number is ACF3-CFF7
Directory of C:\msys\1.0\home\kbulgrien\tmp\bzr\kbulgrien\windows_xp\machine2
08/22/2012 09:51 AM <DIR> .
08/22/2012 09:51 AM <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 233,818,468,352 bytes free
C:\msys\1.0\home\kbulgrien\tmp\bzr\kbulgrien\windows_xp\machine2>
C:\msys\1.0\home\kbulgrien\tmp\bzr\kbulgrien\windows_xp\machine2>bzr --version
Bazaar (bzr) 2.5.1
Python interpreter: C:\Program Files\Bazaar\python26.dll 2.6.6
Python standard library: C:\Program Files\Bazaar\lib\library.zip
Platform: Windows-XP-5.1.2600-SP3
bzrlib: C:\Program Files\Bazaar\lib\library.zip\bzrlib
Bazaar configuration: C:/Documents and Settings/kbulgrien/Application Data/baz
aar/2.0
Bazaar log file: C:\Documents and Settings\kbulgrien\My Documents\.bzr.log
The end of the log contains:
Wed 2012-08-22 09:51:48 -0500
0.094 bazaar version: 2.5.1
0.094 bzr arguments: [u'checkout', u'bzr+ssh://server/home/data/bzr/user/kbulgrien/windows_xp/machine2', u'.']
0.094 looking for plugins in C:/Documents and Settings/kbulgrien/Application Data/bazaar/2.0/plugins
0.094 looking for plugins in C:/Program Files/Bazaar/plugins
0.141 encoding stdout as sys.stdout encoding 'cp437'
0.250 Unable to look up default port for ssh
0.360 falling back to default implementation
0.360 failed to load system host keys: [Errno 2] No such file or directory: 'C:\\Documents and Settings\\kbulgrien/.ssh/known_hosts'
[ 504] 2012-08-22 09:51:48.648 INFO: Connected (version 2.0, client OpenSSH_5.1)
0.532 Unable to look up default port for ssh
0.610 Unable to look up default port for ssh
[ 504] 2012-08-22 09:51:53.851 INFO: Authentication (password) successful!
[ 504] 2012-08-22 09:51:53.868 INFO: Secsh channel 1 opened.
6.719 creating repository in file:///C:/msys/1.0/home/kbulgrien/tmp/bzr/kbulgrien/windows_xp/machine2/.bzr/.
6.860 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0x0109C770> in file:///C:/msys/1.0/home/kbulgrien/tmp/bzr/kbulgrien/windows_xp/machine2/
6.938 bzr-colo: setting nick from hook
7.125 Using fetch logic to copy between RemoteRepository(bzr+ssh://server/home/data/bzr/user/kbulgrien/windows_xp/.bzr/)(RemoteRepositoryFormat(_network_name='Bazaar repository format 2a (needs bzr 1.16 or later)\n')) and CHKInventoryRepository('file:///C:/msys/1.0/home/kbulgrien/tmp/bzr/kbulgrien/windows_xp/machine2/.bzr/repository/')(RepositoryFormat2a())
7.125 fetching: <SearchResult search:(set(['kevin.bulgrien at gdsatcom.com-20120820200403-hxur6amdg2k3kpdp']), set(['null:']), 41)>
7.906 opening working tree 'C:/msys/1.0/home/kbulgrien/tmp/bzr/kbulgrien/windows_xp/machine2'
18.109 Transferred: 284kB (22.8kB/s r:281kB w:3kB)
18.109 Traceback (most recent call last):
File "bzrlib\commands.pyo", line 920, in exception_to_return_code
File "bzrlib\commands.pyo", line 1131, in run_bzr
File "bzrlib\commands.pyo", line 673, in run_argv_aliases
File "bzrlib\commands.pyo", line 695, in run
File "bzrlib\cleanup.pyo", line 136, in run_simple
File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
File "bzrlib\builtins.pyo", line 1654, in run
File "bzrlib\branch.pyo", line 1491, in create_checkout
File "bzrlib\bzrdir.pyo", line 910, in create_workingtree
File "bzrlib\workingtree_4.pyo", line 1549, in initialize
File "bzrlib\transform.pyo", line 2536, in build_tree
File "bzrlib\transform.pyo", line 2635, in _build_tree
File "bzrlib\transform.pyo", line 2707, in _create_files
File "bzrlib\transform.pyo", line 1319, in create_file
IOError: [Errno 2] No such file or directory: u'C:/msys/1.0/home/kbulgrien/tmp/bzr/kbulgrien/windows_xp/machine2/.bzr/checkout/limbo/new-2/kbulgrien/Favorites/Hardware/Emulation/Emulation Technology, Inc. World Leader for IC Adapters, Test Clips, Sockets and IC Testing Accessories for QFP, BGA, PGA, PBGA.url'
18.109 return code 3
Wed 2012-08-22 09:54:45 -0500
0.094 bazaar version: 2.5.1
0.094 bzr arguments: [u'--version']
0.094 looking for plugins in C:/Documents and Settings/kbulgrien/Application Data/bazaar/2.0/plugins
0.094 looking for plugins in C:/Program Files/Bazaar/plugins
0.141 encoding stdout as sys.stdout encoding 'cp437'
0.234 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.234 return code 0
Since the fault occurred only with the checkout made in a deep directory location, perhaps bzr is choking because it has an insufficiently sized data structure to handle the very long path that results from checking out a very long path structure to an already deep path structure. That seems quite unfriendly... especially considering I spent a lot of time trying to figure it out myself before writing the list and accidentally finding a workaround by checking out to a shallow path.
________________________________
This message and/or attachments may include information subject to GD Corporate Policy 07-105 and is intended to be accessed only by authorized personnel of General Dynamics and approved service providers. Use, storage and transmission are governed by General Dynamics and its policies. Contractual restrictions apply to third parties. Recipients should refer to the policies or contract to determine proper handling. Unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20120822/bd51ccc2/attachment-0001.html>
More information about the bazaar
mailing list