"bzr push" to a bound branch without a working tree

Eli Zaretskii eliz at gnu.org
Wed May 18 10:16:01 UTC 2011


> Date: Wed, 18 May 2011 11:20:33 +0200
> From: John Arbash Meinel <john at arbash-meinel.com>
> CC: bazaar at lists.canonical.com
> 
> > But quickfixes is not a lightweight checkout, at least AFAIK.  It was
> > created by a "bzr branch" command without any switches.  I see both  a
> > .bzr/branch/ directory and a .bzr/checkout/ directory there.
> 
> We always create .bzr/branch. In lightweight checkouts it is a
> BranchReference which has ".bzr/branch/location". While a regular branch
> will have .bzr/branch/last-revision and .bzr/branch/tags and probably
> .bzr/branch/branch.conf.

Here's what I have in quickfixes/.bzr:

  D:\usr\eli\bzr\emacs\trunk>ls -AxF ../quickfixes/.bzr/branch
  branch.conf  format  last-revision  lock/  tags

> >> 1) It doesn't make sense to push from a branch to itself, which is what
> >> you are doing. Since quickfixes is a lightweight checkout *of* trunk,
> >> pushing from quickfixes to trunk is pushing to itself.
> > 
> > But since it isn't a lightweight checkout, I don't think that
> > consideration applies.
> 
> I'm pretty sure it is. We don't let you chain bound branches. So commit
> in a bound branch of a bound branch would fail.

quickfixes is not a bound branch.  Its .bzr/branch/branch.conf file
doesn't have a "bound_location =" entry.  "bzr info" in it doesn't
show any evidence for being bound, either:

  Repository tree (format: 2a)
  Location:
    shared repository: D:/usr/eli/bzr/emacs
    repository branch: .

  Related branches:
      push branch: D:/usr/eli/bzr/emacs/trunk
    parent branch: D:/usr/eli/bzr/emacs/trunk

I created this branch with a simple "bzr branch" command, which I
still have in my .bzr.log:

  Mon 2009-11-30 16:40:22 +0200
  0.094  bzr arguments: [u'branch', u'trunk/', u'quickfixes/']
  0.125  looking for plugins in C:/Documents and Settings/eli/Application Data/bazaar/2.0/plugins
  0.125  looking for plugins in C:/Program Files/Bazaar/plugins
  0.374  encoding stdout as sys.stdout encoding 'cp862'
  0.795  creating branch <bzrlib.branch.BzrBranchFormat7 object at
  0x00F75250> in file:///D:/usr/eli/emacs.bzr/emacs/quickfixes/.bzr/
  1.091  created new branch
  BzrBranch7('file:///D:/usr/eli/emacs.bzr/emacs/quickfixes/')
  1.185  opening working tree 'D:/usr/eli/emacs.bzr/emacs/quickfixes'
  [  668] 2009-11-30 16:41:53.364 INFO: Branched 98852 revision(s).
  90.493  return code 0



More information about the bazaar mailing list