bzr crashed with AttributeError in tree_unapply_patches(): '_PreviewTree' object has no attribute 'get_revision_id'

Bug #950419 reported by Gediminas Paulauskas on 2012-03-08
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-builddeb
High
Jelmer Vernooij
bzr-builddeb (Ubuntu)
Medium
Jelmer Vernooij

Bug Description

I had 2 patches in the shelf.
The tree has patches applied (ubuntu package in launchpad, e.g. lp:ubuntu/precise/zope2.12)

Introduced in bzr-builddeb 2.8.1 is

  * Automatically unapply patches before merge operations.
    LP: #815854

Now I cannot unshelve

$ bzr unshelve
Using changes with id "2".
Unapplying quilt patches to prevent spurious conflicts
bzr: ERROR: exceptions.AttributeError: '_PreviewTree' object has no attribute 'get_revision_id'

I do not want shelve/unshelve to do anything with patches automatically.
I want it to operate in current working tree state.

bzr 2.5, bzr-builddeb 2.8.3

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: bzr 2.5.0-1ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-18.28-generic-pae 3.2.9
Uname: Linux 3.2.0-18-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 1.94.1-0ubuntu1
Architecture: i386
BzrDebugFlags: set()
BzrVersion: 2.5.0
CommandLine: ['/usr/bin/bzr', 'unshelve']
CrashDb: bzr
Date: Fri Mar 9 01:45:06 2012
ExecutablePath: /usr/bin/bzr
FileSystemEncoding: UTF-8
InterpreterPath: /usr/bin/python2.7
Locale: lt_LT.UTF-8
PackageArchitecture: all
Platform: Linux-3.2.0-18-generic-pae-i686-with-Ubuntu-12.04-precise
ProcCmdline: /usr/bin/python /usr/bin/bzr unshelve
PythonVersion: 2.7.2
SourcePackage: bzr
Title: bzr crashed with AttributeError in tree_unapply_patches(): '_PreviewTree' object has no attribute 'get_revision_id'
UpgradeStatus: Upgraded to precise on 2012-03-06 (2 days ago)
UserEncoding: utf-8
UserGroups: adm admin cdrom dialout dip lpadmin plugdev sambashare

Gediminas Paulauskas (menesis) wrote :
visibility: private → public
tags: removed: need-duplicate-check
Jelmer Vernooij (jelmer) on 2012-03-13
Changed in bzr-builddeb:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Jelmer Vernooij (jelmer)
Changed in bzr-builddeb (Ubuntu):
assignee: nobody → Jelmer Vernooij (jelmer)
importance: Undecided → Medium
status: New → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bzr-builddeb - 2.8.4

---------------
bzr-builddeb (2.8.4) unstable; urgency=low

  * Add dependency on quilt. LP: #951207
  * Cope with missing tags when looking up upstream versions.
  * Skip quilt unapplying for trees that can not be copied (such as
    _PreviewTree). LP: #950419
  * Document the argument for --export-upstream. LP: #959065

 -- Jelmer Vernooij <email address hidden> Mon, 19 Mar 2012 11:10:21 +0100

Changed in bzr-builddeb (Ubuntu):
status: Fix Committed → Fix Released
Jelmer Vernooij (jelmer) on 2012-04-03
Changed in bzr-builddeb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers