/srv/irclogs.ubuntu.com/2008/11/29/#bzr.txt

spivabentley: it looks like bundlebuggy's mail queue is growing without any new mail getting processed?  http://bundlebuggy.aaronbentley.com/mail01:58
=== Spaz is now known as IchangedMyNickKi
=== IchangedMyNickKi is now known as Spaz
abentleyspiv: fixed.03:55
=== RAOF_ is now known as RAOF
ToyKeeperHmm...   I could have sworn there was a "--date" option for commit.07:24
ToyKeeperLooks like this will be as fun as setting the mtime on a symlink.07:34
=== jszakmeister|awa is now known as jszakmeister
=== jszakmeister is now known as jszakmeister|awa
Enisseohello everyone!12:37
EnisseoI have a problem Google could not solve12:40
Enisseodoes anyone ever tried to post/publish a bzr directory (sub directory of a branch) to a ftp server?12:41
Enisseodid* try*12:41
CaMasonI was wondering.. say somebody committed a huge file, would it be possible to remove that file from the repo?12:41
CaMasonI know that's near impossible with svn12:41
Enisseomaybe using bzr remove YOUR_FILE --force12:42
EnisseoCaMason: (never done that, but I would say it is technically possible, so maybe this "--force" option would do the trick, or a plugin)12:43
CaMasonEnisseo: ok. I work with large flash / photoshop files quite often, and sometimes my designers can input a 400MB FLV file by accident. It would be great to be able to remove that to keep the repo size to a minimum12:45
EnisseoCaMason: if you do not want any .flv (or .psd) file to be committed, you can use the bzr ignore command12:46
EnisseoCaMason: but if you only need to limit the size of committed files, I don't know (plugin? configuration file?)12:47
CaMasonEnisseo: It's not an exact science, as we DO need to add certain FLVs and PSDs of varying sized. It's things like placeholder/test items that were accidently placed in, that are of the wrong size12:48
CaMasonusually the FLVs are embedded within the .fla files when testing, and these are sometimes accidently added12:48
EnisseoCaMason: if you can't find a "pattern" (subdirectory, extension, file size...) the files you do not want to add (or want to add) follow, the filter can not be made12:52
EnisseoCaMason: anyway, the bzr ignore command prevent - I think - adding files accidentally, but you still can add them if you do it explicitly12:53
EnisseoCaMason: for example, to prevent committing files with huge size (psd, flv), you set a ignore rule on .flv and .psd files12:54
EnisseoCaMason: but if you need to add some .psd or .flv files, you can still commit them12:55
EnisseoCaMason: this will work fine if you don't often need to commit PSD and FLV12:56
Enisseo(I'm not sure you can add files that match an ignore rule, but tests will tell you)12:58
CaMasonEnisseo: sure, I understand you. But that wont help for my current workflow :)12:59
CaMasonIt's not a problem for me atm.. I'll read up about it another time. Thank you12:59
EnisseoCaMason: sorry I could not help you... maybe someone will, another day ;)13:00
hmeland"bzr add foo" will add foo, regardless of whether it matches an ignore rule or not.  "bzr commit" will commit all added files, regardless of ignore rules.13:01
Enisseothank you :)13:01
EnisseoMy problem: I want to publish files of my branch to a ftp directory13:02
hmelandTo remove files from history, you'd have to "rebuild" that history, while omitting the parts that you don't want.  Bazaar doesn't have any built-in support for such operations.13:02
hmelandThe "rebase" plugin is somewhat handy, though.13:02
CaMasonhmeland: ok, nice :) I'll read up about it later on13:02
EnisseoThe files are mostly PHP files, so I want bzr to act like a "website publisher"13:03
EnisseoIs this possible?13:03
CaMasonEnisseo: http://bazaar-vcs.org/BazaarForWebDevs13:03
hmelandEnisseo: AFAIK, bzr works on the full tree; if you want to publish just a subtree, you're free to do so using other mirroring tools.13:03
hmelandDepending on what you mean by "publish", I guess...13:03
EnisseoI mean "copy files", not publishing a branch13:04
EnisseoIn fact, I could do so "manually" by uploading an exported directory (export) of my branch13:04
hmelandOk, then what I said above stands -- I'm not aware of anything in bzr that will help you with that publishing operation.13:05
Enisseobut I thought bzr would do that, only committing changed files13:05
hmelandUhm, are you saying that you want to _automate_ publishing of that subtree whenever you commit?13:06
Enisseono13:06
EnisseoWell, my workflow would be:13:06
hmelandThen you've lost me. :-)13:06
Enisseo1. I commit files locally13:07
Enisseo2. I finish adding features and fixing bugs so I could release a new version of my project13:07
Enisseo3. => I "push/publish" the project into a prototype directory on my ftp server13:08
Enisseo4. I fix last bugs that appear while testing the prototype13:08
Enisseo5. => I "push/publish" the project into the production directory on the ftp server13:09
Enisseo6. I tag the branch13:09
Enisseothe push/publish operation is manually "launched", but yes, indeed, I want bzr to automatically copy files that have changed between two publishing operations13:10
bob2bzr-upload plugin13:11
Enisseobob2: the name sounds nice :)13:11
AfCYeah, you want the upload plugin13:16
AfC(orthogonally, do you *really* need to tag every time you publish?)13:17
EnisseoAfC: Hmmm... no13:18
EnisseoAfC: But what do you think is wrong with that13:18
Enisseo?13:18
AfCManageability13:18
AfCEnisseo: if you have several thousand tags it gets out of control13:19
EnisseoAfC: I do not want to tag every commit I made, only when I publish what I think is a new version13:19
Enisseo0.1, 0.2, 1.1, 1.2...13:19
bob2why bother?13:19
AfCEnisseo: and there may be scaling problems with hundreds of thousands of tags, I can't remember if that was addressed; it strikes me as the sort of thing that isn't really wise because it's going to be high O()13:20
bob2just have a branch where each commit is a "publish" state13:20
bob2all done13:20
AfCEnisseo: if you're just doing "versions" then that's fine, of course13:20
AfCEnisseo: I've seen people do an automated tag with a date string or some other nonsense, and then complain that the 14,000 tags they have are in the way.13:20
AfCbob2: well, if the history is linear that won't quite cut it13:21
AfCa merge isn't necessarily a prerequisite to Enisseo publishing.13:21
AfCbut that saidm13:21
AfCsaid,13:21
AfCfor people that really are desperate to have huge numbers of "tags", an alternative is13:22
AfCto just make an empty (no changes) commit with a commit message indicating $whatever.13:22
AfCTHAT will scale just fine, of course.13:22
Enisseowhat's the difference between tagging and branching with bazaar?13:23
AfCer13:24
bob2mostly unrelated13:24
bob2branch is a, well, branch, tag is just a label pointing at a particular commit on a branch13:24
EnisseoI thought a tag in bazaar was just a branch13:24
bob2no13:25
Enisseowell, a named branch13:25
AfCno13:25
Enisseook13:25
bob2svn is the only system like that, afaik13:25
AfC{sigh}, Subversion screwing up the name space strikes again13:25
AfCEnisseo: you can take a branch from any revision13:25
EnisseoI must have read that from svn, indeed13:25
AfCEnisseo: there are many ways to _identify_ revisions13:26
AfCEnisseo: tags are one of them.13:26
AfC(dates are another, etc)13:26
AfCI commonly do stuff like13:26
AfC$ bzr diff -r tag:v4.0.913:27
Enisseoso, if a tag is a label of a commit, many tags are just hard to manage, but it does not affect performances, does it?13:27
AfCto find out what I've changed from the last release13:27
AfCanother *really* useful one is13:27
AfC$ bzr diff -r ancestor:../mainline13:27
AfCto see what is different about this branch (from a contributor, say) without worrying about what has moved on in 'mainline' in the mean time.13:28
Enisseothe "bzr diff -r tag:v4.0.9" command is what I have in mind13:29
AfCEnisseo: sure... but if you're only doing one or two revisions per release, and *frequent* releases, then I imagine you can see the utility dropping.13:31
AfCon the other hand if you don't do that many "releases" then you're all fine.13:31
AfCEnisseo: hard to manage (lots of tags), definitely (where lots >>> 100)13:32
AfCEnisseo: I can't say off hand what the performance impact is13:32
Enisseook, thanks for the advice ;)13:32
AfCI have a nagging feeling that someone was complaining about it, but I also recall they had like 100,000 tags13:32
AfCand were upset that bzr log was slow :)13:33
AfCif you're not already at hundreds of thousands of revisions, and gigabytes of repository, and tens of thousands of tags, I doubt you'll notice any performance problem.13:34
mathrickjelmer: hmm, why does bzr init in a directory below an svn checkout (but not versioned itself) invoke bzr-svn?15:17
jelmermathrick, what version of bzr/bzr-svn ?15:17
mathrickjelmer: how do I check bzr-svn version?15:19
mathrick(it's not my copy y'see)15:19
jelmermathrick, if you know the bzr version, that should be sufficient15:19
mathrickok, it's 1.915:19
mathrickjelmer: btw, it seems to segfault on bzr init after upgrading to (python-)subversion 1.5.1 (from 1.4.6)15:21
jelmermathrick, so you have a svn-versioned directory and one of the children paths has a .bzr directory?15:22
mathrickjelmer: no, I have a svn-versioned directory, and it has a non-versioned subdir that I (or my friend, actually) wants to init as a bzr repo15:23
jelmermathrick, in that case, this is expected behaviour15:23
mathrickhe doesn't care about the svn-versionedness of the parent15:23
mathrickjelmer: what purpose does it serve?15:24
mathrickand, how can I disable it?15:24
jelmermathrick, sorry, forget that15:25
jelmermathrick, I can't reproduce this15:25
mathrickjelmer: hmm15:25
mathrickjelmer: I'll try to get a reproducible example for you, sec15:27
mathrickjelmer: okay, I have a minimal dir structure that segfaults for me as well15:35
mathrick(bzr 1.6.1 / svn 1.5.1)15:35
jelmermathrick, Have you tried 1.9 ? Several things have changed since then15:35
mathrickjelmer: yes, said friend runs 1.915:35
mathrickjelmer: http://sei.meidokon.net/files/foo.tar.gz15:37
mathrickunpack it, go to foo/bar/, try to bzr init there15:37
mathrickit segfaults15:38
jelmermathrick, works fine here15:38
mathrickin earlier svn (1.4.6), it'd say the subversion client is too old15:38
mathrickhumm15:38
mathrickare you running ubuntu?15:38
jelmerno, debian15:38
mathrickthen it seems like something is broken in ubuntu packages15:39
mathrickjelmer: is it invoking bzr-svn at all for you?15:39
marcus-bHi, I upgraded from bzr 1.3 in Ubuntu 8.04 to bzr 1.6.1 in Ubuntu 8.10, and now I get weird upgrade notices and errors on upgrade: http://pastebin.com/m15418d7  What should I do?15:41
jelmermathrick, no, it doesn't touch bzr-svn15:42
jelmerI'm running bzr 1.10 though, not 1.915:42
beunomarcus-b, try:  bzr upgrade --rich-root-pack15:42
marcus-bthanks, that seems to work.  was it a mistake to use rich-root?  what's the recommended format for new repositories?15:44
beunomarcus-b, also remember to upgrade both your branches and your shared repository15:44
beunowhy did you choose rich-root?15:45
marcus-bI don't remember.  I think I just chose the latest/greatest at the time15:45
marcus-bI want to go with the masses, no special requirements15:45
beunojelmer, there's no way to go rich-root -> packs, is there?15:46
jelmerbeuno: rich-root-pack15:46
jelmerbeuno: there's no particular reason to go back from rich-root though15:46
james_wjelmer: you patch allows you to upgrade an svn checkout to be a bzr branch?15:46
beunowell, PITA, but yes  :)15:46
marcus-bso the new cool kid on the block is packs? :)15:47
jelmerjames_w, It's one of the required steps - I'm not sure whether bzr-svn's implementation of Converter works well enough yet15:47
james_wjelmer: madness :-)15:47
beunomarcus-b, actually, it's "1.9" format, but I'd say you take it a step at a time  ;)15:48
marcus-byeah, thanks ;)15:49
marcus-bso how about I go to 1.6.1-rich-root ?15:52
jelmermarcus-b, any reason for going with 1.6.1-rich-root rather than 1.9-rich-root?15:53
marcus-bwell, ubuntu 8.10 ships with 1.6.115:53
marcus-bso, if there isn't a strong reason for a manual update or override...15:54
marcus-bok, I am taking the ppa ubuntu repository, that's convenient enough for me16:15
beunothat's what I do  :)16:16
marcus-bcan I move away from rich-root?16:21
=== fta_ is now known as fta
bpierrehi17:36
gerelhey all, short question, if I have changes in one file in this order, rev1 => rev2 => rev3, when I try to see changes between rev1 and rev3, all is fine, now when I try to see, whether the changes were made between rev1 and rev2 or rev2 and rev3, bzr outputs nothing!, does that make sense?18:19
gerel shouldn't there be a transitive property ?18:19
gerelwell, solved, the thing is that "-rREV1 -rREV2" isn't the same as "-rREV1..REV2", I thought it was18:31
FlimmHow can I tag a commit with a launchpad bug?20:16
beunoFlimm, maybe what you're looking for is: bzr ci --fixes=lp:111120:17
beunoor maybe it's  --fixes lp:111120:18
FlimmThanks bueno, you're always here when I need help!20:33
CaMason_if I need to move my central branch to a different server, can I just copy/paste it?23:46
bpierreif it's a standalone branch, yes, it should work23:47
CaMason_time to try, then :)23:48

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