Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting remote Bazaar branch creates unnecessary clone #5443

Open
jelmer opened this issue May 26, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@jelmer
Copy link
Contributor

commented May 26, 2018

When creating an export of a remote Bazaar branch, pip currently will create a local clone of the branch, and then create an export from there.

This is unnecessary, as Bazaar supports directly exporting from a remote branch location - and this is significantly faster than first cloning, then exporting.

@jelmer jelmer referenced a pull request that will close this issue Jun 23, 2018

Open

Improve performance of the Bazaar VCS backend #5445

jelmer added a commit to jelmer/pip that referenced this issue Jun 23, 2018

Some performance improvements for Bazaar:
* Use lightweight checkouts rather than a full branch clone
* Export directly from the remote branch

Fixes pypa#5444, pypa#5443

jelmer added a commit to jelmer/pip that referenced this issue Jun 23, 2018

Some performance improvements for Bazaar:
* Use lightweight checkouts rather than a full branch clone
* Export directly from the remote branch

Fixes pypa#5444, pypa#5443
@matador86

This comment has been minimized.

Copy link

commented Jun 24, 2018

By default, branches in Git have nothing to do with each other. However, when you tell a local branch to "track" a remote branch, you create a connection between these two branches. Your local branch now has a "counterpart" on the remote server. Tutuapp 9Apps Aptoide

@jelmer

This comment has been minimized.

Copy link
Contributor Author

commented Jun 24, 2018

@matador86 if only fetch some of the history ('git clone --depth X') then git won't automatically pull in history that's missing from remote branches. For example, 'git log' would only go X revisions back rather than to the beginning of history.

This discussion probably belongs on the pull request for git though, rather than this one (which is specific to bzr).

jelmer added a commit to jelmer/pip that referenced this issue Jul 9, 2018

Some performance improvements for Bazaar:
* Use lightweight checkouts rather than a full branch clone
* Export directly from the remote branch

Fixes pypa#5444, pypa#5443

jelmer added a commit to jelmer/pip that referenced this issue Jul 9, 2018

Some performance improvements for Bazaar:
* Use lightweight checkouts rather than a full branch clone
* Export directly from the remote branch

Fixes pypa#5444, pypa#5443

jelmer added a commit to jelmer/pip that referenced this issue Jul 9, 2018

Some performance improvements for Bazaar:
* Use lightweight checkouts rather than a full branch clone
* Export directly from the remote branch

Fixes pypa#5444, pypa#5443

jelmer added a commit to jelmer/pip that referenced this issue Jul 10, 2018

Some performance improvements for Bazaar:
* Use lightweight checkouts rather than a full branch clone
* Export directly from the remote branch

Fixes pypa#5444, pypa#5443

jelmer added a commit to jelmer/pip that referenced this issue Aug 17, 2018

Some performance improvements for Bazaar:
* Use lightweight checkouts rather than a full branch clone
* Export directly from the remote branch

Fixes pypa#5444, pypa#5443

@cjerdonek cjerdonek changed the title Creates copy of remote branch to create export Exporting remote Bazaar branch creates unnecessary clone Aug 18, 2018

jelmer added a commit to jelmer/pip that referenced this issue Sep 27, 2018

Some performance improvements for Bazaar:
* Use lightweight checkouts rather than a full branch clone
* Export directly from the remote branch

Fixes pypa#5444, pypa#5443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.