code imports break when tdb is installed

Bug #599397 reported by Aaron Bentley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Hg Plugin
Fix Released
Low
Jelmer Vernooij
Launchpad itself
Fix Released
Medium
Jelmer Vernooij

Bug Description

Our code assumes that the import process emits a file named hg-v2.db, but this is only true for sqlite imports. If the python tdb package is installed, a different file is created. This breaks our code.

<abentley> jelmer, should we fix this by forcing sqlite or by installing tdb?
<jelmer> abentley: installing tdb in production is probably harder (more than a trivial code change in Launchpad), but will avoid some locking errors for bzr-svn imports and performs better

Related branches

Revision history for this message
Aaron Bentley (abentley) wrote :
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

bzr-git now stores its cache in .bzr/repository/git - that can either be a sqlite file or a tdb file or <file-in-new-cache-file-format-here> and Launchpad will happily copy the entire directory.

bzr-hg needs to be updated to use the same directory structure.

Changed in bzr-hg:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
Changed in launchpad-code:
assignee: nobody → Jelmer Vernooij (jelmer)
milestone: none → 10.09
tags: added: qa-needstesting
Changed in launchpad-code:
status: Triaged → Fix Committed
Jelmer Vernooij (jelmer)
tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in launchpad-code:
status: Fix Committed → Fix Released
Jelmer Vernooij (jelmer)
Changed in bzr-hg:
status: Triaged → Fix Committed
assignee: nobody → Jelmer Vernooij (jelmer)
Jelmer Vernooij (jelmer)
Changed in bzr-hg:
milestone: none → 0.2
Jelmer Vernooij (jelmer)
Changed in bzr-hg:
status: Fix Committed → Fix Released
milestone: 0.2 → 0.1.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.