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 · 1 comment
Open

Exporting remote Bazaar branch creates unnecessary clone #5443

jelmer opened this issue May 26, 2018 · 1 comment
Labels
C: vcs pip's interaction with version control systems like git, svn and bzr type: enhancement Improvements to functionality

Comments

@jelmer
Copy link
Contributor

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.

@pradyunsg pradyunsg added the S: needs triage Issues/PRs that need to be triaged label May 31, 2018
@jelmer
Copy link
Contributor Author

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

@pradyunsg pradyunsg added type: enhancement Improvements to functionality C: vcs pip's interaction with version control systems like git, svn and bzr and removed S: needs triage Issues/PRs that need to be triaged labels Aug 18, 2018
@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
@pypa pypa deleted a comment from Mrmichal211 May 14, 2022
@pypa pypa deleted a comment from mrjohn1 May 14, 2022
@pypa pypa deleted a comment Mar 30, 2023
@pypa pypa deleted a comment from zouhc Mar 30, 2023
@pypa pypa deleted a comment from matador86 Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: vcs pip's interaction with version control systems like git, svn and bzr type: enhancement Improvements to functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@jelmer @pradyunsg and others