tag:blogger.com,1999:blog-7854892290437883216.post3104169053028840962..comments2023-04-07T23:51:07.346+12:00Comments on How Bazaar: Shallow branches or history horizonsTim Penhey (thumper)http://www.blogger.com/profile/09872376538882273724noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-7854892290437883216.post-13287253019001363472011-02-02T07:16:15.650+13:002011-02-02T07:16:15.650+13:00I guess I should have tried googling before asking...I guess I should have tried googling <i>before</i> asking the question; it was not hard to find first <a href="https://blueprints.launchpad.net/bzr/+spec/shallow-checkouts/" rel="nofollow">https://blueprints.launchpad.net/bzr/+spec/shallow-checkouts/</a>, and from there the associated bug <a href="https://bugs.launchpad.net/bzr/+bug/46561" rel="nofollow">https://bugs.launchpad.net/bzr/+bug/46561</a>.SamBhttps://www.blogger.com/profile/06560268240719951351noreply@blogger.comtag:blogger.com,1999:blog-7854892290437883216.post-61443399101912403792011-02-02T07:13:49.491+13:002011-02-02T07:13:49.491+13:00This comment has been removed by the author.SamBhttps://www.blogger.com/profile/06560268240719951351noreply@blogger.comtag:blogger.com,1999:blog-7854892290437883216.post-14881929440567318142011-02-02T07:01:33.354+13:002011-02-02T07:01:33.354+13:00I want this, too. Is there a launchpad bug or some...I want this, too. Is there a launchpad bug or something that I can lean on?SamBhttps://www.blogger.com/profile/06560268240719951351noreply@blogger.comtag:blogger.com,1999:blog-7854892290437883216.post-65602695226156971972009-01-23T17:19:00.000+13:002009-01-23T17:19:00.000+13:00@ChrisW - with bzr there is a full text copy of a ...@ChrisW - with bzr there is a full text copy of a file saved every now and then, so even though a particular line hasn't been modified since the dawn of time, you don't need to go back to revision 1 to get it.<BR/><BR/>@David - a hard limit means that all history operations will still work even though earlier revisions may not be there. If a lazy load was <B>required</B> then you'd need to be connected to another repository whenever you tried to do a history operation that would need older revisions. A hard limit with a way to get more history is one solution.Tim Penhey (thumper)https://www.blogger.com/profile/09872376538882273724noreply@blogger.comtag:blogger.com,1999:blog-7854892290437883216.post-3464046929183207572009-01-23T05:58:00.000+13:002009-01-23T05:58:00.000+13:00YES!It takes so long to branch in bzr sometimes, a...YES!<BR/><BR/>It takes so long to branch in bzr sometimes, and I almost *never* want to go backward in the history (just want to be able to keep pulling so my changes are mergeable), so this would be fantastic.Mackenziehttps://www.blogger.com/profile/03695808411116664337noreply@blogger.comtag:blogger.com,1999:blog-7854892290437883216.post-74223557406491493222009-01-22T11:16:00.000+13:002009-01-22T11:16:00.000+13:00Yes Please!Would be ideal for the copying of branc...Yes Please!<BR/><BR/>Would be ideal for the copying of branches to production we do; and for the testing phase.<BR/><BR/>A history of 1-2 months at most would be more than enough for the rare occasion we need to manually back-out a change.<BR/>And not having to maintain all the excess... overhead? would be a GoodThing(tm).Steve McInerneyhttps://www.blogger.com/profile/06746275156790546021noreply@blogger.comtag:blogger.com,1999:blog-7854892290437883216.post-37458396214687055252009-01-22T08:46:00.000+13:002009-01-22T08:46:00.000+13:00yes, surelyyes, surelyJavyerhttps://www.blogger.com/profile/00141507954902517965noreply@blogger.comtag:blogger.com,1999:blog-7854892290437883216.post-40169999374950108292009-01-22T08:07:00.000+13:002009-01-22T08:07:00.000+13:00I strongly prefer a horizon with lazy loading. I s...I strongly prefer a horizon with lazy loading. I see no advantage to a hard limit.Unknownhttps://www.blogger.com/profile/04615074012837414038noreply@blogger.comtag:blogger.com,1999:blog-7854892290437883216.post-24911895390312681532009-01-22T05:01:00.000+13:002009-01-22T05:01:00.000+13:00I would love this. I often bzr branch lp:$project...I would love this. I often bzr branch lp:$project when I'm curious about $project. I really don't care about the history at this point; I just want to look at the code.<BR/><BR/>It would be nice if there were a way to make shallow branches the default. I guess you could alias 'bzr branch' to 'bzr branch --horizon-revision -2' or something. It would be cool if the horizon revision could be specified absolutely, as in --h-r 12, or relatively as in --h-r -3.<BR/><BR/>It would be important for a branch with a horizon to be a first class citizen, like any other. It's fine to ask me to download remote revisions, if that's what's needed to perform an operation, but please don't disable operations like push, pull, etc.Jamu Kakarhttps://www.blogger.com/profile/09712033840561157324noreply@blogger.comtag:blogger.com,1999:blog-7854892290437883216.post-85038913421996104662009-01-22T03:04:00.000+13:002009-01-22T03:04:00.000+13:00Yes, would love it.My primary use of bzr at the mo...Yes, would love it.<BR/><BR/>My primary use of bzr at the moment is as a front end for svn. It's does a cracking job. Grabbing the initial checkout can take an age though. If you're on an unreliable network (like a crappy VPN say) you can be in for a load of frustration. <BR/><BR/>Being able to grab the last X revisions, or Y months, or whatever, would be fantastic. If there was a mechanism to reach back further on-demand that would be even better, but I'd view that as a bonus.Jez Higginshttps://www.blogger.com/profile/10428967224463668255noreply@blogger.comtag:blogger.com,1999:blog-7854892290437883216.post-33970016208422692222009-01-22T00:37:00.000+13:002009-01-22T00:37:00.000+13:00I now am waiting some time for this to be implemen...I now am waiting some time for this to be implemented. Most of the time I don't need the whole history if I want to hack on a project. So if I don't use it why should I download it? It only takes me time to do so!<BR/><BR/>But I think it is important that a branch with truncated history can be either promoted to a full branch or does have some sort of lazy loading in cases where more history is needed to perform a task.<BR/><BR/>In an ideal case you should be able to do anything you can with a normal branch with your shallow branch too.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7854892290437883216.post-82360445255815283852009-01-21T22:57:00.000+13:002009-01-21T22:57:00.000+13:00Git has something similar, whereby you can clone a...Git has something similar, whereby you can clone a branch at a specified depth of revisions:<BR/><BR/>"Create a shallow clone with a history truncated to the specified number of revisions. 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."<BR/><BR/>The limitations there are annoying in that you can't publish your repository, you can only use it to generate patches. Still it's proven useful to me when I don't want to pull the entire codebase down just to do a single patch to be reviewed.<BR/><BR/>Darcs has 'partial branches' which are also similar. You can clone a repository pulling only patches up to the last snapshot (a tag usually). It also has limitations on what you can do with the resulting partial repository. With Darcs 1.0 I always had problems with partial repositories getting corrupted but I'd hope Darcs 2 has solved those.<BR/><BR/>Even with the limitations in the functionality in these tools I've found it useful so think it would be a useful feature.Chris Doublehttps://www.blogger.com/profile/08200507509210615780noreply@blogger.comtag:blogger.com,1999:blog-7854892290437883216.post-88150427485096545112009-01-21T22:03:00.000+13:002009-01-21T22:03:00.000+13:00Fuck yes! History horizons are worthwile.As ChrisW...Fuck yes! History horizons are worthwile.<BR/><BR/>As ChrisW noted, it would be *great* to have the ability to download incomplete past history. For example, if I want to do "bzr blame Extensions/README.txt", I just need a bunch of old revisions, inventories, but not all their file texts: I just need file texts for README.txt.<BR/><BR/>I am sure there are a lot of ways like that where history downloading can be made "lazy". But plain simple history horizons with shallow branches would already be killer.ddaahttps://www.blogger.com/profile/05937623368605761118noreply@blogger.comtag:blogger.com,1999:blog-7854892290437883216.post-90846551958034977902009-01-21T21:25:00.000+13:002009-01-21T21:25:00.000+13:00Yes, worth it, but I can see problems.Take this:ht...Yes, worth it, but I can see problems.<BR/><BR/>Take this:<BR/><BR/>http://svn.zope.org/Zope/trunk/Extensions/README.txt?rev=24563&view=markup<BR/><BR/>...it hasn't changed in eons of revisions. What would you do in this case?<BR/><BR/>Also, what would you do in the case where some lines in a file (and they're usually whitespace or boilerplate!) haven't changed since revision 1?<BR/><BR/>Surely, in these circumstances, your method ends up dragging down a whole heap of revisions again?ChrisWhttps://www.blogger.com/profile/16233666825312252602noreply@blogger.com