I looked a little closer and found that the invalid reference to "retcode" occurs in the finally portion of a try block, and that retcode is not set because an exception is thrown earlier. Initializing retcode and trying again reveals the actual error. Although the output claims that the export completed successfully, the resulting file is incomplete.
mbp:~ csosborn$ bzr fast-export-from-p4 //depot/web/main main.fi
Export to main.fi completed successfully.
bzr: ERROR: exceptions.IndexError: list index out of range
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 911, in exception_to_return_code
return the_callable(*args, **kwargs)
File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1111, in run_bzr
ret = run(*run_argv)
File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 689, in run_argv_aliases
return self.run(**all_cmd_args)
File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 704, in run
return self._operation.run_simple(*args, **kwargs)
File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 135, in run_simple
self.cleanups, self.func, *args, **kwargs)
File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
result = func(*args, **kwargs)
File "/Library/Python/2.6/site-packages/bzrlib/plugins/fastimport/__init__.py", line 903, in run
fast_export_from(source, destination, 'p4', verbose, custom)
File "/Library/Python/2.6/site-packages/bzrlib/plugins/fastimport/exporters/__init__.py", line 328, in fast_export_from
custom=custom)
File "/Library/Python/2.6/site-packages/bzrlib/plugins/fastimport/exporters/__init__.py", line 281, in generate
retcode = p4_fast_export.main([source])
File "/Library/Python/2.6/site-packages/bzrlib/plugins/bzrp4/p4_fast_export.py", line 10, in main
return git_p4.main(['export'] + args)
File "/Library/Python/2.6/site-packages/bzrlib/plugins/bzrp4/git_p4.py", line 1899, in main
if not cmd.run(args):
File "/Library/Python/2.6/site-packages/bzrlib/plugins/bzrp4/git_p4.py", line 1740, in run
if not P4Sync.run(self, depotPaths):
File "/Library/Python/2.6/site-packages/bzrlib/plugins/bzrp4/git_p4.py", line 1534, in run
self.importHeadRevision(revision)
File "/Library/Python/2.6/site-packages/bzrlib/plugins/bzrp4/git_p4.py", line 1334, in importHeadRevision
self.commit(details, self.extractFilesFromCommit(details), self.branch, self.depotPaths)
File "/Library/Python/2.6/site-packages/bzrlib/plugins/bzrp4/git_p4.py", line 937, in commit
data = file.get_data(p4)
File "/Library/Python/2.6/site-packages/bzrlib/plugins/bzrp4/git_p4.py", line 1802, in get_data
stat = filedata[0]
IndexError: list index out of range
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at https://bugs.launchpad.net/bzr/+filebug
including this traceback and a description of the problem.
I looked a little closer and found that the invalid reference to "retcode" occurs in the finally portion of a try block, and that retcode is not set because an exception is thrown earlier. Initializing retcode and trying again reveals the actual error. Although the output claims that the export completed successfully, the resulting file is incomplete.
mbp:~ csosborn$ bzr fast-export-from-p4 //depot/web/main main.fi IndexError: list index out of range
Export to main.fi completed successfully.
bzr: ERROR: exceptions.
Traceback (most recent call last): Python/ 2.6/site- packages/ bzrlib/ commands. py", line 911, in exception_ to_return_ code Python/ 2.6/site- packages/ bzrlib/ commands. py", line 1111, in run_bzr Python/ 2.6/site- packages/ bzrlib/ commands. py", line 689, in run_argv_aliases **all_cmd_ args) Python/ 2.6/site- packages/ bzrlib/ commands. py", line 704, in run .run_simple( *args, **kwargs) Python/ 2.6/site- packages/ bzrlib/ cleanup. py", line 135, in run_simple Python/ 2.6/site- packages/ bzrlib/ cleanup. py", line 165, in _do_with_cleanups Python/ 2.6/site- packages/ bzrlib/ plugins/ fastimport/ __init_ _.py", line 903, in run export_ from(source, destination, 'p4', verbose, custom) Python/ 2.6/site- packages/ bzrlib/ plugins/ fastimport/ exporters/ __init_ _.py", line 328, in fast_export_from Python/ 2.6/site- packages/ bzrlib/ plugins/ fastimport/ exporters/ __init_ _.py", line 281, in generate export. main([source] ) Python/ 2.6/site- packages/ bzrlib/ plugins/ bzrp4/p4_ fast_export. py", line 10, in main main([' export' ] + args) Python/ 2.6/site- packages/ bzrlib/ plugins/ bzrp4/git_ p4.py", line 1899, in main Python/ 2.6/site- packages/ bzrlib/ plugins/ bzrp4/git_ p4.py", line 1740, in run Python/ 2.6/site- packages/ bzrlib/ plugins/ bzrp4/git_ p4.py", line 1534, in run importHeadRevis ion(revision) Python/ 2.6/site- packages/ bzrlib/ plugins/ bzrp4/git_ p4.py", line 1334, in importHeadRevision commit( details, self.extractFil esFromCommit( details) , self.branch, self.depotPaths) Python/ 2.6/site- packages/ bzrlib/ plugins/ bzrp4/git_ p4.py", line 937, in commit Python/ 2.6/site- packages/ bzrlib/ plugins/ bzrp4/git_ p4.py", line 1802, in get_data
File "/Library/
return the_callable(*args, **kwargs)
File "/Library/
ret = run(*run_argv)
File "/Library/
return self.run(
File "/Library/
return self._operation
File "/Library/
self.cleanups, self.func, *args, **kwargs)
File "/Library/
result = func(*args, **kwargs)
File "/Library/
fast_
File "/Library/
custom=custom)
File "/Library/
retcode = p4_fast_
File "/Library/
return git_p4.
File "/Library/
if not cmd.run(args):
File "/Library/
if not P4Sync.run(self, depotPaths):
File "/Library/
self.
File "/Library/
self.
File "/Library/
data = file.get_data(p4)
File "/Library/
stat = filedata[0]
IndexError: list index out of range
bzr 2.2.0 on python 2.6.1 (Darwin- 10.4.0- i386-64bit) local/bin/ bzr', 'fast-export- from-p4' , '//depot/ web/main/ sks/packages/ sitelier- sks', 'sks.fi'] Python/ 2.6/site- packages/ bzrlib/ plugins/ bash_completion [2.2.0] Python/ 2.6/site- packages/ bzrlib/ plugins/ bzrp4 [unknown] Python/ 2.6/site- packages/ bzrlib/ plugins/ bzrtools [2.2.0] Python/ 2.6/site- packages/ bzrlib/ plugins/ colo [0.1.0] Python/ 2.6/site- packages/ bzrlib/ plugins/ email [unknown] Python/ 2.6/site- packages/ bzrlib/ plugins/ explorer [1.1.0dev2] Python/ 2.6/site- packages/ bzrlib/ plugins/ extmerge [unknown] Python/ 2.6/site- packages/ bzrlib/ plugins/ fastimport [0.9.0dev] Python/ 2.6/site- packages/ bzrlib/ plugins/ keychain [0.1.0] Python/ 2.6/site- packages/ bzrlib/ plugins/ launchpad [2.2.0] Python/ 2.6/site- packages/ bzrlib/ plugins/ loom [2.2.1dev] credential_ store /Library/ Python/ 2.6/site- packages/ bzrlib/ plugins/ netrc_credentia l_store [2.2.0] Python/ 2.6/site- packages/ bzrlib/ plugins/ news_merge [2.2.0] Python/ 2.6/site- packages/ bzrlib/ plugins/ pipeline [unknown] Python/ 2.6/site- packages/ bzrlib/ plugins/ qbzr [0.20.0dev1] Python/ 2.6/site- packages/ bzrlib/ plugins/ rewrite [0.6.0] Python/ 2.6/site- packages/ bzrlib/ plugins/ svn [1.0.4dev] Python/ 2.6/site- packages/ bzrlib/ plugins/ upload [1.0.0dev] Python/ 2.6/site- packages/ bzrlib/ plugins/ xmloutput [0.8.6]
arguments: ['/usr/
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
plugins:
bash_completion /Library/
bzrp4 /Library/
bzrtools /Library/
colo /Library/
email /Library/
explorer /Library/
extmerge /Library/
fastimport /Library/
keychain /Library/
launchpad /Library/
loom /Library/
netrc_
news_merge /Library/
pipeline /Library/
qbzr /Library/
rewrite /Library/
svn /Library/
upload /Library/
xmloutput /Library/
*** Bazaar has encountered an internal error. This probably indicates a /bugs.launchpad .net/bzr/ +filebug
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.