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 · 3 comments
Open

Exporting remote Bazaar branch creates unnecessary clone #5443

jelmer opened this issue May 26, 2018 · 3 comments

Comments

@jelmer
Copy link
Contributor

@jelmer jelmer 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.

@matador86
Copy link

@matador86 matador86 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
Copy link
Contributor Author

@jelmer jelmer 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).

@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
* Use lightweight checkouts rather than a full branch clone
* Export directly from the remote branch

Fixes pypa#5444, pypa#5443
@zouhc
Copy link

@zouhc zouhc commented Feb 26, 2021

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. 9Apps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

5 participants
@jelmer @pradyunsg @zouhc @matador86 and others