/srv/irclogs.ubuntu.com/2009/03/14/#bzr.txt

rockstarWow.  Just, wow.  http://github.com/guides/completely-remove-a-file-from-all-revisions00:18
Pieterool huh00:19
Pieter*cool huh00:19
rockstarPieter, I hope you just forgot your sarcasm tags.00:19
Pieterno00:19
Pieterwhy?00:19
rockstarPieter, you should never be changing revision data.  Revisions should be immutable.00:20
Pieterrevisions are also immutable in git00:20
Pieterthere are valid use cases, like having a plaintext password as the guide says... that's very difficult to do in bzr00:20
rockstarPieter, if you commit a plaintext password, you change your password.00:21
Pieteror you just edit it out like in the guide, that's a lot easier :)00:21
Pieterthere are other use cases, like going public with some code but having to remove some company-sensitive information before publishing it00:22
rockstarPieter, do what launchpad is doing and create a fresh branch.00:22
Pieterand then how are you going to remove that info?00:23
thecookieI wont have any local history with --no-tree?00:23
rockstarThere is no info to remove.  It's bzr init.00:23
Pieterand loose all your history just because there's some sensitive information in it?00:23
Pieterthat's kinda lame00:23
rockstarPieter, so you're going through all 100,000+ revisions making sure that EVERY bit of data is clean for the general public?00:24
Pieteryou don't have to have 100,000 commits ;)00:24
Pieterbut if you have, say 100, but there are a few files in it you rather wouldn't have public00:24
Pietersure, you do stuff like this00:24
Pieterwhy not? it's easy00:24
rockstarPieter, okay.  You change your revision data.00:25
Pietereverybody will thank you for publishing the full history :)00:25
sohailone time some people on my team said the team lead was hairy and wrestled bears on his free time00:37
sohailthe checked that into svn00:37
sohailI thought it was pretty funny but when I left the company, removed it :-)00:38
Pieterwhy?00:38
Pieter(At first I thought that with 'team' you meant 'baseball team' or something, and then started to wonder why they'd use svn)00:39
sohaillol00:41
sohailwhy remove it?00:41
Pieteryes00:42
Pieterand why remove it when you left?00:42
sohailI was still involved but in a more authoritative capacity00:42
sohailwanted to make sure that I didn't encourage that type of thing against others00:43
sohailI left the company but was consulting sorry if that wasn't clear :-)00:43
Pieterah, right, I was thinking "why would you care?"00:43
sohailit's a tricky thing00:44
sohailit was actually quite clever00:44
sohailthe person responsible checked it in as a Python pickled. should have saved it.00:45
jkakarIs there an equivalent of 'bzr cp SRC DEST'?  I want to copy a file and make changes to it with its own history, after the copy, but if possible, to capture that a fork occurred.01:41
Peng_jkakar: No.02:09
jkakarPeng_: Thanks.02:10
Peng_Sorry. :\02:11
glyphjkakar: wow02:27
glyphjkakar: what an odd omission!  I must be really good about not duplicating code, since I've never needed that :)02:27
Peng_glyph: Heh. One use is when splitting a file into two. OTOH, I suppose if you organize your code well enough from the beginning, you won't need to..02:30
glyphPeng_: I can definitely see uses for it02:38
=== udk is now known as UdontKnow
jkakarglyph: Heh.  I'm implementing a new skin and want to use the CSS file from an existing skin as the base for the new one.03:47
BasicPROAnyone know what's going on with launchpad? After gw0-0-gr.canonical.com latency skyrockets for me04:11
=== BasicPRO is now known as BasicOSX
Peng_BasicOSX: WFM. Is it still happening to you?04:23
Peng_(Just trying launchpad.net.)04:23
BasicOSXPeng:  yes, semi-intelligent discussion about it on #launchpad04:23
Peng_BasicOSX: Oh, right.04:23
AfCHooray for distributed revision control systems and not depending on a single point of failure like that.04:25
wgrantI'm not sure that bazaar.launchpad.net is actually broken.04:25
BasicOSX$  bzr branch lp:bzr04:28
BasicOSXbzr: ERROR: xmlrpc protocol error connecting to https://xmlrpc.edge.launchpad.net/bazaar/: 503 Service Temporarily Unavailable04:28
wgrantAh, forgot about the XML-RPC server.04:29
Peng_Heh.04:29
wgrantBut using bzr+ssh directly might well work.04:29
BasicOSXI'd prefer not to step out of the documented and trusted release procedure :-)04:29
Peng_Eh, nothing will go wrong if you do. Probably. :-D04:31
LKRaiderquestion: can I branch a launchpad project to my local machine, and bind that branch to a hosted launchpad project on my account, so that when I bzr update, it retrieves from the original trunk and bzr commit sends to my hosted project?04:56
LKRaiderI was trying it like this:04:58
LKRaiderbzr init04:58
LKRaiderbzr branch lp:project04:58
LKRaiderbzr branch project mybranch04:58
LKRaidercd mybranch04:58
LKRaiderbzr push lp:~(account)/project/mybranch04:59
LKRaiderbzr bind lp:~(account)/project/mybranch04:59
BasicOSXI think you just want to do a bzr push --remember your-repo04:59
LKRaiderwithout the bind command?05:01
RexEastHi! I'm new to Bazaar (and version control in general), and am looking to find whether this tool is suited to my project. I'm working on a Django project solo. I would like to run the public version of my web app on mysite.com, and meanwhile be working on new features on mysite.com/test. Once I've tested a new version, I want to be able to update the main version with my development branch. What would be the simplest way to d05:02
RexEastBy the way, for more context, the precursor to this question is here: http://stackoverflow.com/questions/625256/how-do-i-run-one-version-of-a-web-app-while-developing-the-next-version05:02
LKRaiderbtw, uncommit rocks :)05:04
BasicOSXLKRaider:  sorry only 20% here, monitoring the outage on launchpad05:07
LKRaideroh, yeah, launchpad comes first :)05:09
LKRaiderI believe the --remember flag is what I want. testing right now05:10
RexEast(...alternately, let me know if another tool like SVN would be better suited for this task. Someone originally recommended SVN to me but I figured bzr could do it as well.)05:12
BasicOSXRexEast:  I use bzr under turbogears and works very well, use a similar strategy, except I have a production server and development server05:16
LKRaiderBasicOSX: doesnt seem to work as I want it. if I do bzr update, it returns as up-to-date, even tho I have branched from a middle revision from the original trunk05:17
BasicOSXLKRaider:  after you branch don't do update to merge05:18
BasicOSXbzr merge --remember upstream05:18
BasicOSXmake changes05:18
BasicOSXbzr push --remember your-repo05:18
RexEast@BasicOSX: neat! How would I get started with something that works like yours? Note: I don't need separate servers; this is a very small-time operation for now. The dev version can be on the same server as the production version.05:18
BasicOSXRexEast:  create your dev repo, then bzr push it to a central area05:20
BasicOSXThen bzr branch from the central area into your production05:20
BasicOSXwork all you want in your dev repo. bzr committing as you wish05:21
BasicOSXwhen happy with the work, bzr push dev to central area05:21
BasicOSXthen bzr merge in your production05:21
BasicOSXIf you have to tweak things in product, just bzr commit and push to a different report if need be, at least that is how I do it05:22
BasicOSXThere is probably some way if doing series and whatnot, but what I do is pretty simple05:22
RexEastThanks! I'm going to read over that for a minute and try to figure out which commands I'd use to set that up on my Linux box.05:24
LKRaiderBasicOSX: thanks, your idea seem to work fine for me now :)05:28
LKRaidercan I use bzr bind, after the push, so that commits go to the hosted branch automatically? or would that break something?05:30
RexEast@BasicOSX: why do I need to have the central area? Couldn't I just push my changes directly from my dev repo to the production server? (Sorry, I'm new to all this :)05:36
BasicOSXgenerally there's a few difference between production and development, like what database or tables you use, debug, logging, etc. The split allows for both code bases to live in the central area but branches to live in production and development05:39
BasicOSXMy reasons for it are more simple, I was my repository on a different box so have code in multiple places incase hardware crashes and burns05:40
BasicOSXalso production has live access to the Internet, development restricted access, still to the Internet, I put my repo that is not on the box incase there is a compromise05:40
adelie421Anyone free to help a noob? Do I need to register a branch before I use bzr send -o foo.patch?05:50
adelie421I am feeling a bit overwhelmed here trying to properly submit a patch. I have been following http://doc.bazaar-vcs.org/latest/en/mini-tutorial/index.html05:50
LKRaiderI think this will create a patch file that you'll have to email to the upstream project somehow05:52
LKRaiderif you are using launchpad, there is a merge button that you can use to request your branch to be merged on the parent trunk05:53
LKRaiderbut I am a noob too :P05:53
Peng_adelie421: If your branch is public, it would be easier to say "hey, merge my branch at http://whatever"..06:01
Peng_adelie421: But no, you don't need a public location when using "bzr send".06:01
Peng_adelie421: You should make sure the public_branch is set properly on your copy of the target branch, though.06:01
adelie421Peng_: sorry, was afk. So wanted to fix some bugs in example-content. I used bzr branch (site), bzr merge, added my pieces, then bzr add, bzr commit -m "details", bzr send -o details.patch. it uploaded and said successful. Thats it, right?06:29
BasicOSXlifeless:  ping? Did you PQM 1.13-cherrypicks?06:30
Peng_adelie421: ...More or less, probably.06:38
Peng_adelie421: It's good to have the proper public_branch value set, to make it easier for people merging it.06:38
Peng_adelie421: I'm not sure if that would happen automatically or not.06:39
adelie421I got an email from the maintainer seperately, so hopefully they will let me know if I did id right. I figure given the time I should just take a break for now and follow up on that tomorrow06:40
savvashello, does anyone know how to set a server-side variable in bzr branches?10:46
savvasspecifically: cia_project = timekpr10:47
savvas( in .bzr/branch/branch.conf )10:47
=== pigmej1 is now known as pigmej
LarstiQmtaylor_: r4142 of bzr.dev looks like it might adress our push problem11:52
=== AfC1 is now known as AfC
SamBman, I wish there was a MIME registration for diff-style patches :-(14:41
jelmerSamB: bzr-gtk registers bzr-handle-patch for one of the mime types I think14:57
SamBhmm, three different types15:01
SamBmime_types=text/x-diff,text/x-patch,application/x-bazaar-merge-directive15:02
LarstiQSpaz: saw http://bazaar-vcs.org/BzrFileCopieshttp://bazaar-vcs.org/BzrFileCopies ?15:19
LarstiQSpaz: the last one being what `bzr send` produces15:20
pigmejhmm17:48
pigmejhow to get touching revisions for file17:49
pigmejnot a file_id ?17:49
pigmejfor file_id there is method17:49
pigmejlog.find_touching_revisions(branch, file_id)17:49
pigmejhow to do the same but without file_id ?17:50
pigmejor how to generate file_id ?17:50
pigmejI know only revtree.inventory.revision.path2id(file_path)17:51
jelmerpigmej, in order to find the file id for a particular path, you need to retrieve the inventory first17:52
pigmejjelmer: right, but I'm looking for touching revisions...17:52
pigmejso I don't know with inventory is correct...17:53
pigmejI need to make "list of revisions for file"17:53
jelmerpigmej, that sounds like a chicken-egg problem17:53
jelmerpigmej, in order to refer to a particular file you need to find its file id17:53
jelmerpigmej, since there may be different files with the same name in different revisions17:54
pigmejjelmer: but not the same file path17:54
jelmerpigmej, yes, with the same file path17:54
jelmerpigmej, e.g. if you have a revision in which path "foo" exists17:55
pigmejjelmer: right... delefe, add and that's it...17:55
jelmerthen the next revision could rename "foo" to "bar" and add a new file "foo"17:55
pigmejYes you're right jelmer..17:55
jelmerthe fileid of "foo" would stay with the original file17:55
jelmerand the new "foo" that is added would have a new file id17:55
pigmejSo, I need to rewrite one class... :)17:57
pigmejTo avoid problems with renamed files ;)17:57
pigmejjelmer: thanks I forgot about that possibility :d17:57
=== serg_ is now known as serg
=== mtaylor_ is now known as mtaylor
Spaz<LarstiQ> Spaz: saw http://bazaar-vcs.org/BzrFileCopieshttp://bazaar-vcs.org/BzrFileCopies ?21:52
Spaz<LarstiQ> Spaz: the last one being what `bzr send` produces21:52
SpazLarstiQ, hadn't heard of it21:52
Spazhm.21:52
LarstiQSpaz: oh bah, I tab-completed wrongly on that second line21:55
LarstiQSpaz: the first was for you though :)21:55
Spazhm ok21:55
LarstiQSamB: in case you didn't get it at the time, the `bzr send` comment was supposed to be direct at you ;)21:56
LarstiQSpaz: anyway, it seems Ian is looking at it recently21:56
Spazhmm21:56
LarstiQSpaz: so providing feedback/coordinating with him seems like the thing to do21:57
Spazi could do that21:57
Spazunfortunately, i'm moving atm. will be semi-difficult for a week or so.21:57
LarstiQSpaz: that's fine, I'll bother you again in a weeks time :)21:59
Spazi'll find time still22:01
Spaz:p22:01
cody-somervilleI've tried to make my repository smaller by using bzr pack and bzr reconcile but instead it made it over three times bigger (its now at 3.2GB).22:50
Peng_cody-somerville: Right. "bzr pack" doesn't make it much smaller. However, it *does* create a complete backup of the entire repo. :D22:56
cody-somervillejoy22:57
cody-somervillehow do I delete that?22:57
cody-somervilleis there a bzr clean ? :P22:57
Peng_cody-somerville: Well, the backup is created for a reason: so if you lose power before the new pack hits the disk, you won't lose your repo.22:57
* cody-somerville nods.22:58
Peng_cody-somerville: rm .bzr/repository/obsolete_packs/* (but *don't* delete the directory itself!)22:58
cody-somervillePeng_, okay, so that brings it down to 1.6GB22:58
cody-somervillewhat is launchpad/.bzr/repository/upload ?22:59
Peng_cody-somerville: Temporary storage while creating new packs (e.g. when running "bzr pull" or even "bzr pack").23:01
cody-somervilleIt is 647M and I'm not doing either.23:01
Peng_cody-somerville: If there are any six-month old files in it, bzr probably crashed during the middle of a pull and didn't clean up for some reason.23:02
Peng_cody-somerville: I'm sure it's safe to clean it out, but I've never done it, so don't sue me if something goes wrong... :P23:02
cody-somervilleThere seems to be a lock file in there so I'll leave it be for now23:03
LarstiQBasicOSX: http://pqm.bazaar-vcs.org/ for the current queue23:44
* LarstiQ falls asleep23:47

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