'bzr log -p file' fails: The file id "..." is not present in the tree

Bug #1828705 reported by Matthew Glazar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

Notice: I am completely new to Bazaar. I'm willing to admit that I did something wrong and that this is not a bug in Bazaar.

I made a local copy of a public repository on Launchpad. I somehow made 'bzr log -p' fail in my local copy. For example 'bzr log -p requirements.txt' fails with the following message:

> bzr: ERROR: The file id "requirements.txt-20160829145821-m7u2jnokhhokivqp-1" is not present in the tree <bzrlib.inventory.CHKInventory object at 0x10af60850>.

It appears that 'bzr update' in a *different copy* broke 'bzr log -p' for the *original copy*. (As a total newbie, I don't know what 'bzr bind' or 'bzr update' do exactly, so maybe this is my fault.)

---

Steps to reproduce:

$ # Copy the public repository into duplicity-tmp:
$ bzr branch lp:duplicity duplicity-tmp
Not checking SSL certificate for xmlrpc.launchpad.net.
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
Branched 1359 revisions.
$ # 'bzr log -p' works now:
$ cd duplicity-tmp/
$ bzr log -p requirements.txt | head
------------------------------------------------------------
revno: 1297
committer: <email address hidden>
branch nick: duplicity-src8
timestamp: Sun 2017-12-24 06:24:27 -0600
message:
  * Reduce dependencies on backend libraries
    - Moved backend imports into backend class __init__ method
    - Surrounded imports with try/except to allow better errors
    - Put all library dependencies in requirements.txt

$ # Attempt to copy a different branch of the public repository into duplicity-tmp2, reusing already-downloaded data:
$ cd ../
$ bzr checkout --lightweight duplicity-tmp duplicity-tmp2
$ cd duplicity-tmp2/
$ bzr bind lp:duplicity/0.7-series
Not checking SSL certificate for xmlrpc.launchpad.net.
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
$ bzr update
bzr: ERROR: [Errno 2] No such file or directory
$ echo $?
3
$ # Something failed. Oh well; I don't care about duplicity-tmp2 right now.

$ # Use the original copy (duplicity-tmp):
$ cd ../duplicity-tmp/
$ bzr log -p requirements.txt
bzr: ERROR: The file id "requirements.txt-20160829145821-m7u2jnokhhokivqp-1" is not present in the tree <bzrlib.inventory.CHKInventory object at 0x10851d850>.
$ echo $?
3

---

Other information:

~/.bzr.log is attached.

$ bzr --version
Bazaar (bzr) 2.7.0
  Python interpreter: /nix/store/z7hvi1gby1b16adalh8cf3ci465rvifm-python-2.7.16/bin/python2.7 2.7.16
  Python standard library: /nix/store/z7hvi1gby1b16adalh8cf3ci465rvifm-python-2.7.16/lib/python2.7
  Platform: Darwin-16.7.0-x86_64-i386-64bit
  bzrlib: /nix/store/9c0n7jcm8dmdp6kyhdv4c171wjfj5ncy-bazaar-2.7.0/lib/python2.7/site-packages/bzrlib
  Bazaar configuration: /Users/strager/.bazaar
  Bazaar log file: /Users/strager/.bzr.log

Copyright 2005-2012 Canonical Ltd.
http://bazaar.canonical.com/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

Bazaar is part of the GNU Project to produce a free operating system.

Revision history for this message
Matthew Glazar (stragerneds) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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