bzr clone should be able to clone a repo, not just be an alias to branch

Bug #316729 reported by John Carr
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned

Bug Description

Rightly or wrongly, Git users like to be to able get the full history for their project, including all branches. While i'm not entirely in favour of it myself, it is nice to be able to get all the branches im interested in at once (and the extra ones dont cost me that much).

bzr-svn and bzr-git both have $vcs-import commands. These could possibly just happen on clone.

This might be related to the ColocatedBranches spec.

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

I agree that 'bzr clone' ought to be able to clone a repository, not just a branch. More generally, I'd like us to think hard about "branch groups" and support duplicating those via the clone command. In Bazaar, we can support layouts like:

  project/
    release-X/
      X.trunk/
      X.foo/
   release-Y/
     Y.trunk/
     Y.bar/

where project/ is a shared repository, release.*/ are plain directories and [XY].* are bzr branches. I want to be able to say stuff like:

* get me all the Python-2.6 branches
* get me all the "QA" branches

Furthermore, I think clone ought to respect the source structure, i.e. if I "bzr clone Y.bar", it ought to create a directory called project/release-Y/Y.bar and make project a shared repository. (If I just want a branch, I can use the existing branch command: clone will no longer just be an alias for branch under this proposal.) Projects frequently have groups of branches and users can benefit by following a consistent structure based on these groups.

Done right, a generalised clone command like this would make using Bazaar the "right" way easier.

Revision history for this message
methane (songofacandy) wrote :

Good point.
I think cloning repo should copy repository without rebuilding. (both standalone repo and shared repo).
This makes clone fast like hg and git.

Revision history for this message
John A Meinel (jameinel) wrote :

see the discussions about colocated branches and ui improvements

Changed in bzr:
importance: Undecided → Wishlist
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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