bzr commit from checkout fails with Revision not present message

Asked by Gord Tomlin

I created a fairly simple environment with branches below a shared repository. When I made the first change in a checkout and then attempted to commit it, the bzr commit failed with message:

bzr: ERROR: Revision {[email removed]-20131203150215-ml3odr2r43yjw0zt} not present in "Graph(StackedParentsProvider(bzrlib.repository._LazyListJoin(([CachingParentsProvider(CallableToParentsProviderAdapter(<bound method CHKInventoryRepository._get_parent_map_no_fallbacks of CHKInventoryRepository('file:///O:/projects/bzrtest/.bzr/repository/')>))], []))))".

I recreated the problem from scratch as follows (commands generated using Tortoise Bazaar where possible):

Create directory structure:

O:\projects\bzrtest
O:\projects\bzrtest\prod
O:\projects\bzrtest\prod\src
O:\projects\bzrtest\dev
O:\projects\bzrtest\dev\src

Create shared repository:

bzr init-repo --format=default O:\projects\bzrtest

Create prod (trunk) branch:

bzr init --append-revisions-only --format=default O:\projects\bzrtest\prod\src

Add a file (Makefile) to O:\projects\bzrtest\prod\src

Add the file to Bazaar:

bzr add --no-recurse Makefile

Commit the initial code:

bzr commit -m "Initial commit" Makefile

Tag as initial release:

bzr tag --directory O:/projects/bzrtest/prod/src/ --revision -1 v001

Checkout to dev/src:

bzr checkout O:/projects/bzrtest/prod/src/ O:\projects\bzrtest\dev\src

Change file in dev/src.

Commit change:

Run command: bzr commit -m "Minor tweaks just to make file different." Makefile
Committing to: O:/projects/bzrtest/prod/src/
modified Makefile
bzr: ERROR: Revision {[email removed]-20131203150215-ml3odr2r43yjw0zt} not present in "Graph(StackedParentsProvider(bzrlib.repository._LazyListJoin(([CachingParentsProvider(CallableToParentsProviderAdapter(<bound method CHKInventoryRepository._get_parent_map_no_fallbacks of CHKInventoryRepository('file:///O:/projects/bzrtest/.bzr/repository/')>))], []))))".

If I do bzr update followed by bzr commit, the same error still occurs.

If I do a local commit, that works, but a subsequent non-local commit still fails.

In the above scenario, I am running on a Windows XP machine and the O: drive is on another Windows machine.
Tortoise Bazaar 0.6.6
Bazaar (bzr) 2.5.1
  Python interpreter: F:\Program Files\Bazaar\python26.dll 2.6.6
  Python standard library: F:\Program Files\Bazaar\lib\library.zip
  Platform: Windows-XP-5.1.2600-SP3
  bzrlib: F:\Program Files\Bazaar\lib\library.zip\bzrlib

I have found similar error messages mentioned in association with bzr branch, but not in association with bzr checkout. I don't know whether this error is occurring because of something wrong with my procedure above, or because of a bug.

Question information

Language:
English Edit question
Status:
Expired
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gord Tomlin (gord-tomlin-w) said :
#1

Recreated on Win 7 on a local drive.

Revision history for this message
Gord Tomlin (gord-tomlin-w) said :
#2

I tried a slightly different setup, following closely what is suggested in
http://doc.bazaar.canonical.com/bzr.2.6/en/tutorials/centralized_workflow.html
except that I used a shared repository that contained both the prod (trunk) branch and the checkout. The same problem occurred on the second commit.

I then rearranged the setup so that the checkout is in a separate repository from the trunk and everything works. So it looks like the root cause of the problem is that commits for a checkout fail when the checkout is in the same repository as the branch from which it was checked out.

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.