/srv/irclogs.ubuntu.com/2011/12/30/#bzr.txt

=== sagaci_ is now known as sagaci
cheater_hi12:55
cheater_i have a slight issue understanding something. i understand there can be two types of repositories that i have on my hard drive, one is a repository from which i can create new checkouts (and could act as a central repo) and another one needs the original repository to work. is that correct?12:56
AuroraBorealisyou are probably thinking about branches vs lightweight checkouts?12:58
cheater_possibly12:58
AuroraBorealisa branch has the entire history12:58
cheater_how do i create either of them?12:58
AuroraBorealisa lightweight  checkout doesn't have history12:58
cheater_as in, the commands12:59
AuroraBorealisor it could be a checkout of a repository, which means that it needs to access the repo to pretty much do anything12:59
cheater_ah yes, i am probably thinking branch vs checkout12:59
cheater_is there a reliable way to tell those two apart?12:59
AuroraBorealishttp://doc.bazaar.canonical.com/latest/en/user-reference/init-repository-help.html12:59
cheater_let me look at that very quickly13:00
AuroraBorealishttp://doc.bazaar.canonical.com/latest/en/user-reference/checkouts-help.html13:01
AuroraBorealisthe difference between branches and a heavy checkout is the 'location' to where it commits13:01
AuroraBorealisas in if its bound or not13:01
AuroraBorealisnot sure how to tell a branch from a checkout13:02
cheater_would this not register in the branches registered somewhere in bzr metadata?13:03
AuroraBorealisim sure it is13:03
AuroraBorealisnot sure if there is any nice command to tell13:03
cheater_see i have four source trees here13:04
cheater_i did a heavyweight branch just before the central server got hit by a meteorite13:04
AuroraBorealiso.o13:04
cheater_it's one of them and i need to figure out which13:05
AuroraBorealiswell13:05
cheater_also, one of these trees which is what i have been working out of is a lightweight checkout13:05
AuroraBorealisif its a lightweight checkout13:05
AuroraBorealisthen it WONT have history13:05
AuroraBorealisthe other 3 options it should still have history.13:05
cheater_yeah13:05
AuroraBorealisand it should not matter which one it is13:05
cheater_if i go there and do cat .bzr/branch/branch.conf then it shows me bound = True and bound_location = sftp://whatever13:06
cheater_that is evident of it being a lightweight checkout right?13:06
AuroraBorealisnot necessarilly13:06
AuroraBorealisA checkout is created with the bzr checkout command (see “help checkout”). You pass it a reference to another branch, and it will create a local copy for you that still contains a reference to the branch you created the checkout from (the master branch). Then if you make any commits they will be made on the other branch first. This creates an instant mirror of your work, or facilitates lockstep development, where eac13:06
AuroraBorealish developer is working together, continuously integrating the changes of others.13:06
AuroraBorealisHowever the checkout is still a first class branch in Bazaar terms, so that you have the full history locally13:06
AuroraBorealisjust means that when you commit, its gonna commit to the remote place first13:07
AuroraBorealisand then commit locally13:07
AuroraBorealisbasically mimics svn in a way13:07
cheater_so how can i tell if a checkout is lightweight?13:07
AuroraBorealistry doing bzr log on it13:07
AuroraBorealisi guess13:07
cheater_where is the difference in meta data?13:07
AuroraBorealisi am not that exierenced in bzr's internals so im not sure13:08
cheater_what should it do? bzr log13:08
AuroraBorealiswell13:08
AuroraBorealisbzr log wont work if its lightweight13:08
AuroraBorealiscause it has no history13:08
AuroraBorealisone sec let me try a lightweight checkout13:08
cheater_thanks13:08
cheater_i currently do not have any working bzr infrastructure so can't check myself13:08
jelmerhi AuroraBorealis, cheater_13:10
cheater_hi jelmer13:11
AuroraBorealisit seems a lightweight checkout13:12
AuroraBorealisjust doesnt have a .bzr/repository folder13:12
cheater_heh13:14
cheater_all the source trees have that13:15
cheater_funny!13:15
jelmerAuroraBorealis: right, the point of a lightweight checkout is that is uses a branch/repository that is located elsehwere13:16
AuroraBorealisyeah13:16
AuroraBorealishe just lost his remote repository13:16
AuroraBorealisbut since none of his source trees are lightweight, they should still have all the history13:16
AuroraBorealisup to the point from when they were last updated / merged / whatever13:16
jelmercheater_: what's the problem you're trying to solve exactly?13:17
cheater_yeah there is actually no discrepancy in what commits they contain13:17
cheater_as in all the source trees are up to date13:17
AuroraBorealis<cheater_> i did a heavyweight branch just before the central server got hit by a meteorite13:17
AuroraBorealisthats his problem13:17
AuroraBorealis:>13:17
cheater_jelmer: i have been working on a single-person project with just one main branch, using a "centralized" workflow with a bzr repo being available via sftp off a server, and a local checkout on my home computer13:18
cheater_the server doesn't exist anymore13:18
cheater_i want to resume my work13:18
jelmercheater_: you should be able to unbind your local branch, if it was a heavyweight checkout13:18
cheater_just before the server went away i came in here anticipating it, and you guys told me to do some specific kind of checkout or branch13:18
cheater_i guess you told me to do a branch13:18
cheater_so i did13:18
cheater_ok how do i do that jelmer?13:19
AuroraBorealisbzr unbind probably13:19
cheater_let me try that then13:19
jelmercheater_: if it's a heavyweight checkout, then "bzr unbind" should work13:19
cheater_let me just make a copy of that dir13:20
cheater_nice13:21
cheater_i just added a file and committed13:21
cheater_Committed revision 42.13:21
cheater_funny thing given that i started reading the hitchhiker trilogy lately..13:22
cheater_ok, great!13:22
AuroraBorealis=P13:22
cheater_and branching works too13:23
cheater_amazing13:23
cheater_thanks a lot guys13:23
AuroraBorealis:D13:24
cheater_there might still be some life left in this project13:24
AuroraBorealisback it up again though :>13:24
cheater_yeah it's backed up13:25
cheater_raid is backup, right?13:25
sjamaanHi. I'm trying to find the bzr library API.  The link in the manual points to http://starship.python.net/crew/mwh/bzrlibapi/ but that's empty13:26
sjamaanAnywhere else I can look?13:26
AuroraBorealiswell i meant on another server =P13:26
cheater_AuroraBorealis: heheh, i was just kidding.13:26
=== cheater_ is now known as cheater2
=== yofel_ is now known as yofel
=== Noldorin_ is now known as Noldorin
gutworthis there some option I can pass to disable the progress bar?21:50
beunogutworth, I think -q may do it22:49
gutworthmm, too bad it's not global22:57
bob2isn't there an env var?23:00
gutworthBZR_PROGRESS_BAR beautiful23:05
Noldorinhey wgz23:56
Noldorinerr, mgz :-)23:56
mgzI'm... not really still awake23:59

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!