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

bloom should not do a full checkout when creating tags #42

Closed
vrabaud opened this issue Oct 18, 2012 · 8 comments
Closed

bloom should not do a full checkout when creating tags #42

vrabaud opened this issue Oct 18, 2012 · 8 comments

Comments

@vrabaud
Copy link
Contributor

vrabaud commented Oct 18, 2012

Some repos have heavy history and some users have low bandwidth.

use of --depth 1 in git would be nice. Maybe that should be a feature in vcstools ?

@tfoote
Copy link
Member

tfoote commented Oct 18, 2012

vcstools already has it. On checkout use shallow=True.

@wjwwood
Copy link
Contributor

wjwwood commented Oct 18, 2012

Neat, I'll add that and run it against a few repositories to see how well it works.

@tfoote
Copy link
Member

tfoote commented Oct 18, 2012

I don't think it will work in this case:

From here: http://www.kernel.org/pub/software/scm/git/docs/git-clone.html

A shallow repository has a number of limitations (you cannot clone or

fetch from it, nor push from nor into it), but is adequate if you are only
interested in the recent history of a large project with a long history,
and would want to send in fixes as patches

On Thu, Oct 18, 2012 at 10:49 AM, William Woodall
notifications@github.comwrote:

Neat, I'll add that and run it against a few repositories to see how well
it works.


Reply to this email directly or view it on GitHubhttps://github.com/ros/bloom/issues/42#issuecomment-9573919.

Tully Foote
tfoote@willowgarage.com
(650) 475-2827

@wjwwood
Copy link
Contributor

wjwwood commented Oct 18, 2012

That should be fine (for the upstream), I clone it with shallow, then query a file in a branch and then call git archive on a tag. We'll see if that works.

@wjwwood
Copy link
Contributor

wjwwood commented Oct 18, 2012

It seems to run fine (re)importing ros_comm, but it is hard for me to tell if I saved much time, I'll look into a larger checkout.

@tfoote
Copy link
Member

tfoote commented Oct 18, 2012

It does not necessarily save a lot of data:
http://blogs.gnome.org/simos/2009/04/18/git-clones-vs-shallow-git-clones/

On Thu, Oct 18, 2012 at 11:36 AM, William Woodall
notifications@github.comwrote:

It seems to run fine (re)importing ros_comm, but it is hard for me to tell
if I saved much time, I'll look into a larger checkout.


Reply to this email directly or view it on GitHubhttps://github.com/ros/bloom/issues/42#issuecomment-9576612.

Tully Foote
tfoote@willowgarage.com
(650) 475-2827

@vrabaud
Copy link
Contributor Author

vrabaud commented Oct 19, 2012

well, this comparison is about GNOME modules that have evolved over time and they probably just got bigger and bigger.

If you look at vision_opencv, it's 876K. The .git folder is 18 M .... (long history, parts of OpenCV were in there and so on)

@wjwwood
Copy link
Contributor

wjwwood commented Oct 22, 2012

The shallow_checkout option is passed to vcstools as of 0.2.

@wjwwood wjwwood closed this as completed Oct 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants