Comment 0 for bug 697828

Revision history for this message
Guillermo Gonzalez (verterok) wrote : parse_timezone fails with: ValueError: invalid literal for int() with base 10: '--700'

A code import failed with this traceback, but it also fails with tip of dulwich and bzr-git locally:

2011-01-05 19:14:09 INFO Starting job.
2011-01-05 19:14:09 INFO Getting exising bzr branch from central store.
2011-01-05 19:14:09 INFO [chan bzr SocketAsChannelAdapter] Opened sftp connection (server version 3)
2011-01-05 19:14:10 INFO [chan bzr SocketAsChannelAdapter] Opened sftp connection (server version 3)
2011-01-05 19:14:10 INFO 51 bytes transferred
2011-01-05 19:14:10 INFO Importing foreign branch.
2011-01-05 19:14:11 INFO Counting objects: 9947, done. 0
2011-01-05 19:14:12 INFO finding revisions to fetch:generating index 0/9947
2011-01-05 19:14:13 INFO finding revisions to fetch 1/2689
2011-01-05 19:14:13 INFO
Traceback (most recent call last):
  File "/srv/importd.launchpad.net/production/launchpad-rev-12138/scripts/code-import-worker.py", line 82, in <module>
    sys.exit(script.main())
  File "/srv/importd.launchpad.net/production/launchpad-rev-12138/scripts/code-import-worker.py", line 77, in main
    return import_worker.run()
  File "/srv/importd.launchpad.net/production/launchpad-rev-12138/lib/lp/codehosting/codeimport/worker.py", line 452, in run
    return self._doImport()
  File "/srv/importd.launchpad.net/production/launchpad-rev-12138/lib/lp/codehosting/codeimport/worker.py", line 590, in _doImport
    overwrite=True, **self.getExtraPullArgs())
  File "/srv/importd.launchpad.net/production/launchpad-rev-12138/optionalbzrplugins/git/branch.py", line 514, in pull
    stop_revision, overwrite=overwrite, graph=graph, limit=limit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12138/optionalbzrplugins/git/branch.py", line 463, in _update_revisions
    determine_wants, self.source.mapping, limit=limit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12138/optionalbzrplugins/git/fetch.py", line 571, in fetch_objects
    objects_iter, store, wants_recorder.wants, pb, limit)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12138/optionalbzrplugins/git/fetch.py", line 413, in import_git_objects
    o = lookup_object(head)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12138/optionalbzrplugins/git/fetch.py", line 399, in lookup_object
    return object_iter[sha]
  File "/srv/importd.launchpad.net/production/launchpad-rev-12138/lib/dulwich/pack.py", line 1488, in __getitem__
    return ShaFile.from_raw_string(type, uncomp)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12138/lib/dulwich/objects.py", line 370, in from_raw_string
    obj.set_raw_string(string)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12138/lib/dulwich/objects.py", line 257, in set_raw_string
    self.set_raw_chunks([text])
  File "/srv/importd.launchpad.net/production/launchpad-rev-12138/lib/dulwich/objects.py", line 261, in set_raw_chunks
    self._deserialize(chunks)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12138/lib/dulwich/objects.py", line 958, in _deserialize
    parse_timezone(timezonetext)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12138/lib/dulwich/objects.py", line 888, in parse_timezone
    offset = int(text)
ValueError: invalid literal for int() with base 10: '--700'
Import failed:
Traceback (most recent call last):
Failure: twisted.internet.error.ProcessTerminated: A process has ended with a probable error condition: process ended with exit code 1.