'bzr log -p file' fails: The file id "..." is not present in the tree
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.
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.
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.
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.
$ echo $?
3
---
Other information:
~/.bzr.log is attached.
$ bzr --version
Bazaar (bzr) 2.7.0
Python interpreter: /nix/store/
Python standard library: /nix/store/
Platform: Darwin-
bzrlib: /nix/store/
Bazaar configuration: /Users/
Bazaar log file: /Users/
Copyright 2005-2012 Canonical Ltd.
http://
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.