Rethinking last-revision
Olaf Conradi
oohlaf at gmail.com
Thu Mar 30 23:58:36 BST 2006
On 31/03/06, Aaron Bentley <aaron.bentley at utoronto.ca> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Olaf Conradi wrote:
> > Can there be a way to query the format of a metadir?
> > Might be useful in bzr info along with the other formats.
>
> That's certainly a reasonable request, if that's not already supplied by
> BzrDir.
Cool.
> > And would simplify the check on standalone branches vs metadir
> > branches (I currently check if working_format == branch_format ==
> > repo_format).
>
> That's not the right dichotomy. A metadir branch may be standalone.
>
> A standalone branch is one whose repository, branch and working tree are
> all stored in the same .bzr. A metadir is a .bzr format that may or may
> not contain a standalone branch. Earlier formats could only contain
> standalone branches.
The format check was half of what I do.
I first check the bzrdir locations, then check formats. When locations
are the same and formats, then standalone. If flocations are the same
and formats differ, bound branch. Code is in my bzr.olaf.info branch.
-Olaf
More information about the bazaar
mailing list