/srv/irclogs.ubuntu.com/2008/08/03/#bzr.txt

lifelessdato: ^00:00
datoyeah, I was thinking00:00
lifeless:P00:01
lifelessjames w mentioned the index's support for review etc as being very useful00:01
datoyeah, the index is actually very useful for that00:02
datoI tend to review my stuff before committing a lot00:02
lifelessI wrote a proposal for review support in bzr00:02
datoso it's very useful to say, "ok this part is definitely ok, don't show to me in `diff` again please"00:03
lifelesshave you seen that?00:03
datono, subj?00:03
datoah00:03
datoprobably RFC: supporting code review and partial commits better00:03
lifelessyes I was just digging it up :)00:03
lifelessif you have the time I would love your feedback on that as someone that used bzr for ages, knows the feel we aim for etc, but also is fluent with sophisticated use of git's index00:04
lifelessIt is not written as a comparison to the index; we wanted to derive something useful from first principles00:05
datoright00:05
datook, I can read the thread00:05
lifelessbut git's index is clear prior art :)00:05
lifelessthat would be lovely; thanks00:06
jelmerok, bzr push --overwrite and bzr uncommit work on svn repositories now >-)00:20
lifelessholy cow00:20
lifelessthat is full of awesome00:20
jelmerSo (other than proper integration in push) that means full coverage I think00:21
lifelesswell that lhs parent bug thing00:22
jelmerI've got most of that covered, working on tests atm00:23
lifelesssweeet00:23
james_wnice work jelmer, that's pretty cool00:25
lifelessI shudder to think how it works00:37
lifelessjelmer: planning merge support for svn trees now ? :)00:37
james_wyou could just edit the files in the svnroot00:37
jelmerlifeless, probably at some point :-) There's some other things I'd like to work on first though, such as integrating the svn-push command00:49
james_wjelmer: do you have the rebase based mode for bzr-svn now?00:50
jelmerjames_w, not sure I follow - what sort of mode of mode?00:51
james_wit was discussed a little while back, more like git-svn I think00:52
james_wfor those that didn't want the properties tracking etc., and could put up with having one hand tied behind their back00:52
jelmerahh00:54
jelmeryep, that's in now, under the command dpush00:54
james_wcool00:54
james_wI'll have to play sometime in case anyone asks me about it00:54
DBOi can't seem to upgrade my bzr repo01:30
lifelessare you getting an error?01:30
DBOok so it went like this01:30
DBOmy main trunk got a bzr upgrade01:30
DBOso when i went to merge it into my branch01:31
DBOit said to upgrade, so I did and it all worked01:31
DBOI then did the merge01:31
DBOthat worked01:31
DBOthen when I do bzr push01:31
DBOit tells me to upgrade01:31
DBOwhich i already did01:31
lifelesswhat is the exact message it giveS?01:32
DBOUsing saved location: bzr+ssh://jassmith@bazaar.launchpad.net/~jassmith/do/Optimizer/01:32
DBObzr: ERROR: Tags not supported by BzrBranch5('bzr+ssh://jassmith@bazaar.launchpad.net/%7Ejassmith/do/Optimizer/'); you may be able to use bzr upgrade --dirstate-tags.01:32
DBOi ran the command it suggested and it says its already up to date01:32
Peng_bzr upgrade sftp://jassmith@bazaar.launchpad.net/~jassmith/do/Optimizer/01:32
DBOoooo01:33
jelmerwe really should stop recommending people to upgrade to --dirstate-tags..01:33
lifelessthat error is a bad one01:33
lifelessjelmer: care to submit the obvious patch?01:33
DBOwhat does it do?01:33
meteoroidis sftp faster than bzr+ssh, or just shorter to type?01:33
lifeless(just remove the --dirstate-tags)01:33
lifelessmeteoroid: sftp works ;P01:34
jelmerI thought James had one which improved some of the upgrade error messages01:34
jelmerjames_w, Whatever happened to that?01:34
lifelessjelmer: not this one01:34
Peng_meteoroid: upgrade doesn't work over bzr+ssh. (I think that might've been fixed in bzr.dev last week though.)01:34
meteoroidah ok01:34
DBOso erm, how long is this command supposed to take Peng_?01:34
james_wI thought that was Andrew that wrote that patch01:34
lifelessDBO: dirstate-tags is an older format that should be avoided generally; that error message is one we missed - it should just say 'bzr upgrade' there.01:34
Peng_DBO: Well, it has to download everything and upload it again.01:35
DBOPeng_, ok, long time, I'll go make a sammich01:35
Peng_Hm, all you'd really have to do for tag support is upgrade the branch, though.01:35
Peng_DBO: That branch isn't ver large, only ~4.5 MB. Unless you're on dial-up, it shouldn't take forever.01:35
lifelessPeng_: a branch5 branch is knit based already01:35
lifelessPeng_: so upgrading to packs is a good thing anyhow01:36
DBOPeng_, im on something that averages around 100kbps down and slightly better than dialup up =P01:36
Peng_lifeless: True.01:36
Peng_DBO: Oh.01:36
DBOanyhow, thanks for the wizardry that is bazaar, its the best tool we use =)01:36
RAOFDBO: I've filed a bug against launchpad asking for a "upgrade this branch" button, since launchpad could do it locally much, much faster.01:37
DBORAOF, sweet01:38
jelmerbzr+ssh should support upgrades properly without involving the VFS code01:38
jelmerlifeless, submitted to the list01:42
jelmerjames_w, yeah, it was spiv indeed. sorry01:42
james_whey, I don't mind being credited with more than I've done01:43
jelmer:-)01:45
* meteoroid wonder if it is always necessary to type the full upstream svn url when interacting with a bzr branch of an svn repo, and pushing / pulling changes.01:51
james_wmeteoroid: it shouldn't be01:52
james_wplain "bzr pull" should use the remembered URL01:52
meteoroidhm.01:52
meteoroidbzr: ERROR: No pull location known or specified.01:52
james_winteresting01:52
meteoroidi'm a little bit old, using ubuntu package, looks like 1.3.101:52
james_wit should remember it when that happens01:53
james_wthat shouldn't matter for this01:53
meteoroidhm.01:53
Peng_In my experience, bzr-svn has a habit of forgetitng the URL. I've never tried to track down what exactly happens.01:53
Peng_A pull --remember fixes it.01:53
jelmerIt's a known bug in older versions01:53
jelmer0.4.11 will have it fixed01:53
Peng_Oh, good.01:53
Peng_jelmer: Has it already been fixed in the 0.4 branch? What exactly happened?01:53
meteoroidnice.  are there beta debs for bzr-svn to go with the bzr beta debs?01:54
Peng_There haven't been any beta releases of the next version of bzr-svn.01:55
jelmerPeng_, yes, it's fixed in the 0.4 branch01:56
jelmerPeng_, Missing set_parent() call, as simple as that :-)01:56
Peng_jelmer: What was it missing from? Branching?01:57
jelmerPeng_, yes01:57
Peng_Oh.01:57
Peng_That's simple enough. Thanks for fixing it. :)01:58
Peng_Did it affect svn-import too?01:58
jelmerthat's also doing the set_parent() call at the moment01:59
jelmerI'm not sure when that was added though01:59
Peng_Well, I'm gonna go. Bye. :)02:00
meteoroidPeng_: --remember did the trick, thanks02:03
* meteoroid looks forward to a new release02:03
DBOwooo, phase 3 of 402:15
* DBO sighs02:15
RAOFYa.  It's not speedy.02:15
DBOthe best part of that last commit?  it will drop a whole 1, you heard that, 1, machine (as in assembly level) instruction from our code02:17
DBOyep =)02:17
DBOits an AWESOME optimization02:17
DBOit also fixes a bug...02:17
lifelessinner loop ?02:17
DBOits inside a loop that gets run upwards of 100 million times a minute if you are a heavy user02:18
DBOit can be run never also... all depends on how much you use the program =P02:18
lifelessDBO: how do you make sure someone doesn't add an instruction back to the loop ?02:37
DBOlifeless, i have ninjas02:43
lifeless:P02:44
lifelessso its GnomeDO right ?02:44
RAOFGNOME Do, yes.02:45
lifelessmeh caps schmaps02:47
lifelessanyhow02:48
lifelesswhat search engine(s) are involved there?02:48
RAOFThis depends on what you mean.  Do has its own search on its item collection.  There are plugins which use locate, google, an arbitrary Firefox search provider, xesam, and others.02:49
james_whey RAOF, are you on Intrepid yet?02:50
RAOFYup.02:50
lifelessso it calls into each per-keystroke I guess (for completion?)02:50
james_wmetacity?02:50
* RAOF moves stupidly early in the cycle.02:50
RAOFjames_w: Indeed.02:50
james_wis your do window off to one side?02:50
james_wmine's not central on the screen02:50
RAOFjames_w: Mine seems to be pretty much in the middle.02:51
james_whmm, I'll try and work out what's going on then02:51
RAOFlifeless: This is currently in a bit of flux.  Currently all items are known by Do before any searching occurs, and the keypresses search through this internal list.02:51
lifelesswheee memory use02:52
lifelessRAOF: I'm asking because I'm doing some IR stuff at the moment02:52
RAOFIR?02:52
lifelessinformation retrieval02:52
RAOFAh.  The memory use isn't bad; Do is currently at ~30MiB.02:53
lifelessRAOF: thats 50% of my free memory :)02:54
james_wRAOF: I restarted it and it it's now central, but a little high, I suspect X wackiness.02:54
RAOFjames_w: It's intended to be a little bit above the middle.02:54
RAOFlifeless: Here's 50 cents, go buy yourself another gig of ram :)02:55
james_wRAOF: ah, that will be it then :-)02:55
lifelessRAOF: laptop slots are full kthx02:55
RAOFHow much ram is _in_ that laptop?02:56
lifelesswell there is 300MB back by killing flash02:56
lifeless2G02:56
RAOFSame here.  What's eating your ram?02:57
lifelessff hs 570M res, evo is 390M res, npviewer *was* 330M or so res (but I just killed the bugger)02:57
lifelessnext is xorg at 30M and a bug around that size02:58
RAOFff at 200, evo at 156, banshee-1 at 150 resident.  Everything else is below 100.02:59
lifelessso do you ask xesam for a concordance before you do any search?03:01
lifelessI'd have thought something like that that could be indexing gb's of data would be slow used that way03:01
RAOFThe xesam plugin is sitting somewhere on launchpad; it's not a default plugin.03:04
lifelessah03:04
RAOFI'm not sure how it does its think.03:04
RAOFs/k/g/03:04
lifelessk03:04
meteoroidoh, bollocks04:12
meteoroidso, i want to use bzr and bzr-svn as a passthrough for a project where i am forking upstream code in one svn repo, and wish to provide an svn repo for the team working on the fork, merging perhaps in some cases bidirectionally through a bzr repo on my svn server.04:30
meteoroidi get an error trying to push code to my svn which is pulled from another, is this perhaps a limitation of bzr-svn?04:31
jelmermeteoroid, what error message?04:31
meteoroidone sec04:31
jelmerif this is a new branch you're pushing into subversion, use svn-push rather than push04:31
meteoroidah04:32
meteoroidhttp://paste.plone.org/22937 fyi04:32
meteoroidwill try that RW04:32
meteoroidRQ04:32
meteoroidsvn-push did the trick04:33
meteoroidawesome! full speed ahead! :)04:33
meteoroidthanks jelmer04:33
pickscrapeIs there a clever way to get a boolean value from bazaar.conf without having to parse it myself?04:51
pickscrapeget_user_option just returns a string04:52
meteoroidhm, where does bzr-smart.py come from?05:04
meteoroid(to run smart server in apache httpd mod_python)05:05
lifelessI think the content of it is just whats in teh docs05:12
meteoroidah, just wsgi config, any idea if the smart server works with mod_wsgi?05:14
lifelessI think it does05:20
meteoroidthat would be much simpler, i bet i can figure it out05:20
pickscrapeAs a general rule should plugins not be using print for output?06:02
pickscrapeI see that builtin commands tend to use self.outf.write()06:03
pickscrapeThough some do use print06:03
lifelesscommand objects should always use self.outf06:09
lifelessand mutter etc06:09
pickscrapeIs mutter for debug info rather than general user output?06:09
pickscrapeOIC, the --quiet and --verbose options work by determining what mutter levels get shown to the user...06:14
beuno[OT] http://adweek.blogs.com/adfreak/2008/07/then-well-grab.html06:15
beunoROFL06:15
=== mtaylor_ is now known as mtaylor
ToyKeeperOops.  Must remember not to bzr upgrade until at least a month after bzr starts telling me to do so.07:44
ToyKeeperLaunchpad doesn't like the new format.07:45
RAOFWhich one?  bzr is only likely to ask you to upgrade to pack-0.92, I think, and that's hardly new.07:48
ToyKeeperI was using pack-0.9207:50
ToyKeeperOddly enough, after updating bzr.dev (it was about a week old), it no longer tells me I'm using a deprecated format.07:51
ToyKeeperWhatever was broken in the old bzr.dev seems to be fixed now.07:51
ToyKeeperIt complained that pack-0.92 was deprecated, and listed a '--1.6' option for upgrade which didn't work.  Both are fixed now.  :)07:52
kiorkyuhm, i get problems configuring loggerhead, if i have /top/a/c and /top/b/c, the second "c" wont appear :(08:17
kiorky(in "auto_publish" mode)08:17
* meteoroid whistles innocently while branching around 600 revisions of a public subversion08:52
RAOFmeteoroid: How many prebuilt dlls does it contain? :)08:53
meteoroidnot a one, just python code.08:53
meteoroidi'm just worried i'll crash mod_dav_svn and wake some poor fool up ;d08:54
RAOFSoft.  I've been trying to branch google-gdata, and that contains ~15Mb worth of prebuilt code.08:55
meteoroidlots of revisions of each prebuilt file?08:58
RAOFQuite a number, yes.08:58
meteoroidfun08:58
meteoroidwhy prebuilt code in svn?08:58
RAOFI have _no_ idea.08:59
meteoroidheh08:59
RAOFThey have a Makefile and Visual Studio project which builds them.08:59
meteoroidsomeone teach them about svn:ignore ;d08:59
RAOFThey're deliberately there.  Oh, and there's an x86 and arm build of zlib in there, too.09:00
meteoroidhm.09:00
* awilkins is branching the SVN of JTidy09:06
awilkinsIt's taking a looong time09:06
awilkinsSome things are a total sod to build on windows ; maybe those pre-built files are there for that reason09:10
RAOFThese things are built from the source in this very svn repo, and have no dependencies outside of the .NET corelib stack.09:11
awilkinsOk then, they are daft09:11
RAOFWell, the zlib dlls aren't, true.09:11
awilkinsWith VB6, you at least have the excuse you need to preserve the GUIDS for binary compatibility09:12
RAOFWhat, really?09:12
RAOFA _rebuild_ breaks VB6?  That's awesome.09:12
awilkinsYeah, VB6 uses an existing compiled binary to refer to for interface IDs and type IDs09:12
awilkinsBecause of COM09:13
awilkinsAnd how it abstracts it all away from the developer09:13
awilkinsI always make a copy in a "compat" subfolder09:13
RAOFThat is made of pure win.09:13
awilkinsIt's the source of endless swearing in many codebases09:14
RAOFI can't possibly imagine why ;)09:14
awilkinsI've written build tools arranged around determining VB6 dep trees and fixing the compatibility settings09:15
meteoroidand now i will find out how long it takes to branch ~10k revisions ;d09:18
gouri just found out that one project us using git on savannah. is bzr also supported there?09:27
gour*is09:28
RAOFYes.09:29
gourreally? then i can suggest to devs to move to bzr instead of CVS09:30
RAOFgnash is hosted on savannah, and uses bzr.  I would be amazed if anyone was suggesting that something be moved _to_ cvs, though :)09:32
gourwell, they already use CVS :-)09:34
=== AnMaster_ is now known as AnMaster
kiorkypmezard: hello10:15
kiorkypmezard: do you have some kind of status for the forest extension?10:15
kiorkypmezard: oups, wrong chan :10:16
kiorky:)10:16
gourany handy url to answer question in http://article.gmane.org/gmane.comp.gnu.medical.devel/12670 ?10:40
gour(how switching from CVS to bzr might help to get more contribution to the project)10:43
awilkinsUsing Bazaar means that everyone gets the benefit of using a VCS ; using CVS limits that to a select few with commit access10:51
ToyKeepergour: No particular URL comes to mind, but it'd be easy to make an argument based on user interface and benefits of DVCS over a single central repository.10:51
ToyKeeperThe launchpad tour is full of good reasons too, though only some of that is bzr-related.  https://edge.launchpad.net/+tour/index10:52
gourToyKeeper: how about http://ianclatworthy.wordpress.com/2007/10/11/why-distributed-version-control-matters/10:53
* ToyKeeper wonders why that document is PDF instead of HTML10:55
ToyKeepergour: There's also the social aspect...  cvs these days is about as hip as having toilet paper stuck to one's shoe.  It can deter potential contributors just because it doesn't have a good "smell", so to speak.10:57
ToyKeeperEven if it's used correctly, people may assume it's a bad sign.10:58
gourrotfl10:58
* gour sent url for ian's paper11:00
ToyKeeperI'm in the middle of reading his manifesto for community-agile software guidance.  He has some good texts.11:01
gourthat's good one too11:01
=== pbor|afk is now known as pbor
LarstiQjelmer: pong12:17
gnomefreakfor some reason bzr builddeb during a build using bzr bd --merge --dont-purge --builder='dpkg-buildpackage -rfakeroot -kA5C42601 -i.bzr' .  wont allow me to sign it but with -S -sa it lets me sign it13:14
gnomefreakthis has been happening for a while maybe a month or so now13:14
gnomefreakit results in a failed build but it built fine jsut failed to sign so maybe the error message can be tweeked as well?13:15
LarstiQgnomefreak: sounds like filing a bug might be appropriate?13:18
LarstiQgnomefreak: are you sure you want -i.bzr btw?13:18
gnomefreakLarstiQ: i might have already ill check since i cant remember13:18
gnomefreakLarstiQ: yes im sure13:18
gnomefreakwe dont want .bzr being uploaded with package13:19
LarstiQgnomefreak: maybe it's specific to building bzr packages, but .bzr also ignores 'files.bzr' and such13:19
gnomefreakor built for that matter13:19
LarstiQgnomefreak: right right, but that ignore pattern is ignoring more than just /.bzr/ :)13:19
gnomefreakLarstiQ: shouldnt it only ignore .bzr since that is what i told it to ignore, with everything inside .bzr of course13:20
LarstiQgnomefreak: it's a regex pattern, not a shell glob.13:23
LarstiQgnomefreak: I guess if you don't have any files with 'bzr' in their name you are fine.13:23
gnomefreaki dont outside of .bzr13:23
LarstiQok, no problem then13:23
gnomefreakdoes bzr use LP for bug tracking?13:25
LarstiQgnomefreak: yes, but you want bzr-builddeb I think?13:27
gnomefreakyeah i just relized it is needed instead of bzr i was thinking it was a plugin but i remember installing it as a package13:28
james_wgnomefreak: you don't need -i.bzr13:29
gnomefreakjames_w: when was it changed?13:33
gnomefreakok bug is filed13:33
gnomefreakjames_w: ive been using -i.bzr for a long time since i was told to leave .bzr out of it13:34
james_wbzr-builddeb takes care of that13:35
james_wif it doesn't please file a bug explaining your setup13:35
gnomefreakit didnt used to so ive just been using same command not knowing it had changed13:38
gnomefreakwell important problem has been reported https://bugs.launchpad.net/bzr-builddeb/+bug/25440013:38
ubottuLaunchpad bug 254400 in bzr-builddeb "when building a package with bzr-builddep it fails to promt me for a password to sign package" [Undecided,New]13:38
gnomefreakthanks for the input im gone again for store13:39
LarstiQjames_w: I also needed to use -i ('^/.bzr/'?) in the past.13:39
james_winteresting13:39
james_wdo you know why?13:39
gnomefreakit was just the way it was13:40
gnomefreakafaik13:40
gnomefreakbut i dont know the code for bzr13:40
gnomefreakthanks guys ill see you later13:40
LarstiQgnomefreak: bzr-builddeb, not bzr13:42
LarstiQjames_w: iirc your initial decision was to mirror svn-buildpackage?13:42
james_wyeah13:42
LarstiQit's all a bit hazy in my mind, but I thought without it I'd end up with .bzr/ in my packages. I admit my memory is fallible.13:43
james_wit does and "export" so it shouldn't13:45
james_wmaybe there's a case that I missed though13:45
kiorkyWhat will be the good place to propose a patch for loggerhead?13:49
james_wthe bazaar mailing list, or a bug against loggerhead probably13:51
james_wyou could put a branch on launchpad and propose it for merging13:51
kiorkyok13:54
james_wlifeless: http://repo.or.cz/w/topgit.git?a=blob;f=README15:04
=== prateeksaxena is now known as prTk
james_wlifeless: the announcement: http://article.gmane.org/gmane.comp.version-control.git/9119715:06
maploinhi, i'm trying to do a merge, but i get a Content conflict in a file that i deleted, which also appears in the removed list. How do I solve this?15:19
kiorky /B 215:50
rockyjelmer: have a minute for more information about my mysterious can-keep-committing-same-revisions problem?17:24
rockyis there any way for me to tell where a branch came from? like see that it was branched from branch1 which was branched from branch2 which was branched from trunk ?17:26
jelmerrocky, hi18:11
meteoroidhey rocky, didn't know you were a bzr user :)18:11
jelmerrocky, still there?18:11
rockyjelmer: yep18:11
rockymeteoroid: yep ;)18:11
jelmerrocky, is there svn repo where you're experiencing this problem public?18:12
rockyjelmer: couple questions first... i should always be using svn-push when pushing a local branch changes back to svn right?18:12
jelmerrocky, You can, but there's no reason to18:12
rockyjelmer: i should use bzr push ?18:13
meteoroidrocky; i think only if you are creating the branch, e.g. if the parent dir doesn't exist upstream.18:13
jelmerrocky, the only situation where you have to use svn-push and nothing else is when nothing exists yet in svn18:13
jelmerrocky, in all other situations bound branches or regular push should work as well18:13
rockygotcha18:15
rockyand regular pull should work fine too right?18:15
jelmeryeah18:16
jelmerback in ~30 min18:16
meteoroidrocky: in current release, though i believe fixed in 0.4.11 or whatever the next is, there is a wierd issue where sometimes the repo is forgotten.  if 'bzr pull' doesn't work, give it a url and --remember, e.g. 'bzr pull --remember https://svn.rocky.org/svn/rocky/rockys-stuff'18:17
rockyjelmer: btw, the public svn repo for my work is at: https://dev.serverzen.com/svn/cluemapper/ClueMapper/  but i've been fiddling with this all morning so i could have everything messed up18:17
meteoroidClueMapper looks interesting..18:19
rockywww.cluemapper.org18:22
=== thekorn_ is now known as thekorn
meteoroidjelmer: does the svn cache have to be per-user, can i set it up to be owned by a group that handles merges on the svn server?18:50
meteoroidwell owned by is easy, but i mean, not in some location like ~/foozle/18:50
jelmerrocky, Thanks, I'll have a look at that in a sec18:50
jelmermeteoroid, no, the location is pretty much hardcoded atm18:51
* meteoroid nods head18:51
rockyjelmer: just an fyi, i figured out kinda what the problem was ... everytime i checked out ClueMapper/trunk with bzr it somehow got remembered (with the bzr svn props) that it was ClueMapper/branches/rocky so when i would do a commit, it committed to ClueMapper/branches/rocky instead of trunk ... after i removed all of the bzr svn props from the svn repo, things started working predictably again18:52
jelmerrocky, that doesnt sound right18:52
rockyyeah i assume i triggered a corruption bug somewhere18:52
jelmerrocky, the props don't contain information about locations18:53
rockyoh? well i tried blowing away all my local checkouts/branches then checking out trunk again, adding a change, committing, and voila, it went back to the rocky branch (incorrect) ... it was only after i deleted those bzr svn branches that it finally started working18:53
jelmerhmm, I'll see if I can find out what was going wrong then18:54
jelmercorruption is not nice :-(18:55
jelmerrocky, you're running 0.4.10?18:55
rockyyes i am18:56
rockyatm, i'm running bzr 1.5, bzr-svn 0.4.10, svn 1.518:56
rockyubuntu hardy heron18:56
rockyjelmer: fyi, i'm writing up a blog post on my experiments with bzr-svn as in how to get started ... i'd love to have you proof-read it to ensure i'm not making gross mistakes18:58
meteoroidhm, i will hang back on bzr 1.3.1, bzr-svn 0.4.9-1, and svn 1.4.6 on hardy for now.  did you build from source?  afaict these are the latest debs.18:58
jelmerrocky, sure, no problem18:59
rockymeteoroid: i used intreprid debs for all of those on hardy18:59
rockyk, i'm not done with the post yet18:59
meteoroidrocky: i wonder what sort of workflow you are describing, i also was going to write a guide on using bzr-svn to fork upstream projects while retaining the ability to push changes back into them, though i haven't quite figured out how to select only some changes for acceptance upstream.19:01
meteoroid"fork, n.: a branch with a middle finger logo." :-P19:01
rockymeteoroid: this is *very* basic19:01
meteoroidright on, perhaps i can build on yours when i write mine so i don't have to cover all that ground19:01
rockysure19:03
meteoroidhey rocky you should open up non-https svn as well read-only, will lessen the load on your server when other people follow you in svn..19:37
rockymeteoroid: http://www.cluemapper.org/svn19:39
meteoroidah ok19:39
meteoroidi just tried as same url19:39
rockyi'm still trying to figure out the whole push/pull thing ... this is supposed to work on mirrored branches right? and won't work if the branches "diverge" ? could someone explain the simplest case of the branches "diverging" ?20:06
meteoroidi have more experience with that level of usage from bk, i'm not sure how similar bzr is, but generally in DSM there is some auto-conflict-resolution, and in some cases you need to hand-merge a conflict20:07
meteoroider DSCM20:07
meteoroidother than the repo itself one of bk's strengths was, in the past, the conflict resolution code - in our team at rackspace we often had more than 20 branches a piece going between 12 or more people, the web / marketing team branched our code for the customer portal, networking had branches, etc..20:08
meteoroidit was pretty nice except the not having source code and the paying lots of money20:08
meteoroid;d20:08
meteoroidthere were only a few of us who knew how to manage merges, but we handled that by having master branches for each team, so that if two entirely unrelated projects modified the same code, they'd have to sit down at some point and talk out what each of them did, or someone who knows the code and understand both projects use a 3-way merge tool like meld20:09
meteoroidi haven't tried meld with bzr yet but it's a pretty standard tool, works with svn20:10
meteoroidi suggest doing some experiments, i have been testing a lot of stuff over the past couple days and learned a good bit..20:10
meteoroidthe simplest case, i guess, let's say you modify one file in one branch, and another file in another branch, it should be straightforward20:14
james_wrocky: divergence happens if there are commits on two branches, so if I branch from you, and then we both commit on our own branch they will have diverged.20:16
james_wthat then means we can't push/pull between us, one of us needs to merge20:16
meteoroidjames_w: with non-overlapping changes, it should be straightforward though, yes?20:18
james_wmeteoroid: yeah, it might be, but in bzr terms you *must* "bzr merge", you can't "bzr pull"20:18
rockygot it20:19
rockycommits on both branches invalidates pulling/pushing until one branch does merge from another -- that pretty much covers it right?20:19
james_wyeah, that's the essence20:19
meteoroidjames_w: ah, ok, good to know..20:22
meteoroidis there an intentional reason that bzr push / pull doesn't imply a merge if required?20:24
james_wso that it is an explicit step20:25
meteoroidokey doke. :)20:25
james_wit would be really hard to make push merge20:25
james_wyou can make pull merge, but bzr doesn't, for a few reasons20:26
meteoroidi'm sure i'll learn more over time how bzr is different from bk, the only dscm i've used.  hg seems more like bk in ways that i don't entirely appreciate.20:27
meteoroidthe svn support in hg is esp wierd and sort of analogous to just doing an svn export on top of the hg branch ;g20:27
meteoroidwell, it's a little better than that but still awkward imo.20:28
meteoroidanyway, i recall that in bk, push and pull were sort of analogous, only indicating direction, and that you could either pull changes from a developer workstation over ssh to merge them into a team branch, or push them up from the workstation, and pretty much the same stuff happened.  if the merge failed or had conflicts or whatever the terminology is, a 3-way merge tool popped up, or a message was printed saying, like, "hey, you have to20:35
meteoroidi can see advantages to making it a conscious step, but it's also something else to teach users which may just fall upon more senior members of a team, creating bottlenecks.20:36
jelmerrocky, looks like the bug you hit earlier was 25048020:37
jelmer(bug 250480)20:37
ubottuLaunchpad bug 250480 in bzr-svn "Doesn't preserve non-lhs parents for file texts" [Critical,Triaged] https://launchpad.net/bugs/25048020:37
rockyjelmer: ahh... great ;)20:37
mathrickhiya20:44
mathrickwhat's the status of cherrypicking support and how much of what it depends on is done?20:45
jelmermathrick, cherrypicking itself is supported (has been for a long time); I'm not sure what the plans are for tracking cherrypicks20:45
mathrickthat's exactly what I mean20:46
mathricknon-tracking cherrypicks are rather useless/harmful20:46
james_wwhy?20:46
mathrickbecause it causes conflicts later on20:46
mathrickand because by the time conflicts arise they will be buried deep in history, you won't even be able to uncommit them easily20:47
uwsmathrick: Applying cherrypicks twice will be a no-op20:47
uwsmathrick: uses the base revision anyway, so I don't see what conflicts it could cause20:48
mathrickuws: but if they're non-tracked, bzr won't notice and will try to apply, causing text conflicts, no?20:48
LarstiQmathrick: no20:48
uwsNO20:48
uwsit will apply to the base20:48
uwsand end up with the same results as it already had20:48
mathrickoh20:48
uwsi.e. bzr status won't notice20:48
LarstiQmathrick: what you describe is what svn does/used to do.20:48
mathrickso what exactly would tracking do that it doesn't already?20:49
uwsmathrick: overview of missing patches/revisions20:49
uwsmathrick: I have this issue with 2 diverged branches20:49
uwswhich I can not/do not want to merge20:49
uwsBut some revisions needs to be applied to both20:49
uws"bzr missing --line" helps listing them20:49
uwsbut I can't see which ones have been applied, and which ones not.20:50
uws(I had this issue this week, and discussed that here, so that's why I know)20:50
mathrickoh, I see now20:50
mathrickso they are true revisions, not just a fancy way to say patch -p0 < patch.diff?20:50
uwsso I constantly end up reapplying hand-picked revisions from the ‘other’ branch20:50
uwsonly to notice that nothing happened :s20:50
uwsmathrick: afaik (but not sure) it does just a patch20:51
uwsmathrick: but it handles conflicts better.20:51
uwssince it takes the base revision into account20:51
mathrickhmm, so are the revisions visible in the history?20:51
uwsand if you end up with the same text result it will not bail out.20:51
mathrickif so, how is it possible that bzr missing fails to notice them?20:51
uwsmathrick: no. that's what merge _tracking- would be.20:51
uws(which bzr does not)20:52
mathrickuws: no, as in no, they aren't visible in the history?20:52
uwsi'm not sure what you mean.20:52
uwslet me give an example20:52
uwsinitial branch has revisions  a1 a2 a320:53
uwsnow I branch and create b4 b520:53
uwswhile development on the original branch continues as well: a4 a520:53
uwsok so far?20:53
mathrickyeah20:53
uwsnow, let's say I'm using the second branch20:53
uwsso I have a1 a2 a3 b4 b520:53
uwsBut I want the revision "a5" as well20:53
uwsbut not a420:54
mathrickyep20:54
uwsthen I can  'cd branch2 && bzr merge -c5 ../branch1'20:54
uwsthat'll work.20:54
uwsbzr status will list the changes20:54
mathrickyep20:54
uwsso I commit them with "bzr commit -m 'cherry picked fix FOO'20:54
uwsnow I have   a1 a2 a3 b4 b5 b620:55
mathrickyep, with b6 == a520:55
uwswhere revision b6 is the same patch as a520:55
uwsbut bzr does not remember those are the same20:55
mathrickmhm, so that's why I thought it'd cause conflicts20:55
uwsso if you now do   cd branch2; bzr missing ../branch120:56
uwsit will list a4 and a5 as "missing" in branch220:56
uwsand it will list "b4 b5 b6" as missing in branch120:56
uwsmathrick: So that's annoying20:56
uwswhat happens to me in this case that I try to reapply a5 again20:57
uwsbecause I forgot I already did it20:57
uws...which will not give any conflicts, but it won't do change either.20:57
uwstracking cherry picks would help here, so that I can see I don't need to try merging a5 again.20:58
uwsmathrick: hopefully this answers your question20:58
mathrickyes, except for "why aren't there any conflicts"20:59
mathrickuws: I understood it exactly as you explained it previously, but that led me to thinking it'd cause conflicts20:59
mathricksince it'd try to apply the same changes twice, which usually doesn't work too well20:59
james_wmathrick: it does exactly what you would want it to do21:00
mathrickbut why?21:00
james_wif both end up with exactly the same text then it won't conflict21:00
james_wif one of them tweaks it slightly then it will give a conflict for that area21:00
james_wand you do want that, as the cherry pick didn't preserve the identical change, so you want to get a chance to resolve them.21:01
pickscrapeDoes the bzrlib test suite have any coverage reporting features?21:34
meteoroidhm, now i am having a wierd merge issue, but i wonder if it has more to do with bzr-svn than bzr22:02
meteoroidi created a bzr branch of one svn repo, made some modifications, in hopes of pushing them to a new branch in an entirely different svn repo.  i was able to push once, but the latest code is not in svn.22:03
meteoroidnow, when i try to push or pull from svn, it says that the branches have diverged.  bzr merge says all changes applied successfully22:04
meteoroidoh, i know what changed, i applied svn properties (svn:externals) using an svn checkout22:05
meteoroidbut, still, seems i should be able to merge to my bzr repo, then push my bzr changes up22:05
jelmerre22:06
jelmermeteoroid: You need to commit your merges in bzr22:06
meteoroidah-ho22:07
meteoroidyeouch segfault22:07
meteoroidhm 'bzr push' rememberd the url, but segfaulted.  bzr push url worked ok22:08
meteoroidwell, whatever, i'm in business :)22:10
meteoroidthanks jelmer!22:10
meteoroidhey jelmer, i was trying to branch ~10k revisions last night, and around 5500 bzr seems to have hung, and i got an email from my web host about excessive swap usage.  does bzr-svn depend on the ability to load the entire svn repo into memory the first time around?22:19
bob2if the machine ou are running it on has old subversion libs, it will leak22:20
meteoroid1.4.6 old?22:21
meteoroidon ubuntu, patched22:21
meteoroidso .. maybe? heh.22:21
meteoroiddo i still need a source compile for subversion 1.5? always seems to drain a whole weekend outta me22:21
* meteoroid tries to determine if it is actually faster to branch against local svn using http because apache gets its' own cpu core22:22
meteoroidwas seeing like 66% cpu for apache and 88% for bzr, seeing about 66-88% for bzr only using svn+file:// uri22:23
lifelessI thought the leak was in the python client libs22:25
meteoroidhm22:25
lifelessand that current bzr-svn with its own bindings shouldn't leak22:25
meteoroidmaybe i should try to pull like 1000 rev at a time manually?22:25
meteoroidi am at 0.4.9 right now, which is slightly older than the current stable..22:25
meteoroidhm, i branched a 300M svn repo and the bzr checkout is 1.4G.  is this possibly because it contains a workingcopy that i should get rid of?22:36
meteoroidstill seems a bit heavy.22:36
bob2du -s .bzr/repository/obsol*22:37
meteoroid3.1M22:38
meteoroidi have branches, tags, trunk, and .bzr, branches and tags are around 400M each, .bzr is almost 600M22:39
meteoroidso probably branches, tags, and trunk are workingcopy22:39
lifelessyou did svn-import ?22:39
meteoroidno22:39
lifelessoh, thats interesting22:39
meteoroidjust bzr branch svn+http://foozle/22:39
meteoroidshould i?22:39
bob2into a shared repository?22:40
lifelesssounds like bzr-svn failed to determine your branching structure22:40
lifelessyou should have gotten a NotBranch error trying to branch the root of the repository22:40
meteoroidwell, it's a client's repo and that is very possible.22:40
meteoroidreally?22:40
lifelessreally22:40
meteoroidwell.  i didn't.22:40
lifelessbecause teh root is a container22:40
meteoroidok22:40
meteoroidso i should use svn-import?22:40
lifelessits rarely the right thing to do to turn it into a brnach22:40
lifelesssvn-import will probably do the same thing22:41
lifelessjelmer: are there tools to diagnos the above?22:41
meteoroidwhether root of repo or no, is it possible to make a branch without a working copy? i know that some type of pushes or pulls default to this, but don't know if it can be specified.22:46
lifelessif you have a shared repo you can create it with --no-trees22:46
lifelessor you can do bzr remove-tree to remove a working copy22:47
meteoroidright on22:50
meteoroidwealp, it's still about twice the size of the server's master for svn, but at least it's not nine times ;d22:51
meteoroidspeaking of shared repo, how do i set that up?22:55
lifelessbzr init-repo --no-trees PATH22:58
lifelessoh for bzr-svn22:59
lifelessyou want init-repo --no-trees --rich-root-pack PATH22:59
meteoroidshould i use different shared repo for svn and for general bzr work?23:00
lifelessat this point yes23:01
meteoroidok23:01
meteoroidwhat's no-trees ?23:01
lifelesswe are working on unifying things23:01
meteoroidi'll read the docs ;d23:01
lifelessit means that branches made by 'branch' will not get working copies by default23:01
lifelessyou can make a copy with bzr checkout . in a branch23:01
meteoroidah ok23:02
meteoroidand rich-root-pack ?23:03
lifelessthats the format bzr-svn uses23:04
meteoroidah ok23:05
meteoroidso, if i create a new shared repo, and i have existing bzr branches of svn repo, can i branch into the shared repo without pulling from svn again?23:06
bob2yes23:06
meteoroidjust bzr branch from the existing copies into the new repo?23:06
bob2existing branches, yes23:07
* meteoroid grows increasingly impressed every day23:08
meteoroidnice, thanks guys, i've saved a few hundred meg and if i need more than one bzr branch of any of these, it should be fine.23:10
meteoroidany quick way to reparent them to their svn urls easily?23:10
lifelessbzr pull --remember23:11
meteoroidsure, that's what i figured23:11
lifelessyou could script it with a little python if you have more than a few to update23:11
meteoroidnow, for a non-svn-related shared repo, if i want my repos accessible via http, i should have a working copy?23:11
lifelessnewbranch.set_parnet_branch(oldbranch.get_parent_branch())23:12
lifelessyou don't need a working copy for bzr to access things over http23:12
meteoroidok23:12
* meteoroid still hasn't figured out http write yet23:12
lifelessyou might want one if you can't run loggerhead for people to be able to browse the source code in their browser23:12
meteoroidyah23:12
meteoroidhow's trac compare to loggerhead?23:12
lifelessif you do you may want to look into bzr-push-and-update23:13
lifelesstotally different things23:13
meteoroidwell, trac has a browser23:13
lifelessloggerhead is a history viewer; trac is a wiki/bugtracker/coffee-maker23:13
meteoroidwell, primarily it's a history browser with integrated bug tracker, designed to require and/or facilitate referencing issues on commit, and revisions in issues.23:14
meteoroidi'll just .. see .. for myself .. how they are different in the history browsing department. :)23:14
lifelesstis is loggerhead23:14
lifelesshttp://bzr-playground.gnome.org/cheese/trunk/23:15
meteoroiddoes it run in mod_wsgi or mod_py?23:16
meteoroidatom feed is a nice touch :)23:17
meteoroidif it runs in wsgi, actually, i could possibly run it in zope alongside our plone-based issue tracker...23:17
jelmerlifeless, meteoroid: If you use bzr branch on the repository root it will consider that root a branch23:25
jelmerlifeless, even if the repository contains a trunk/branches/tags structure23:26
jelmerlifeless, meteoroid: bzr svn-import will do the right thing23:26
meteoroidok23:26
jelmerand "bzr branch" on the repository root in bzr-svn 0.4.11 will warn you that you probably want svn-import23:26
NecoroI'm trying to push a branch to my usb-stick (having fat32 as a filesystem)23:27
Necorobut I always get: /usr/lib/python2.5/site-packages/bzrlib/atomicfile.py:125: UserWarning: AtomicFile(u'/mnt/usb/thesis/.bzr/README') leaked23:27
Necorogoogling showed no real results23:27
Necoroso ... what's going wrong? =)23:27
NecoroI'm using bzr1.523:28
Necoro(and running Gentoo Linux)23:28
meteoroidhm23:28
meteoroidnow it says "ERROR: not a branch: "[svn url]""23:28
meteoroidjelmer?23:29
jelmermeteoroid, when does it do that?23:29
meteoroidbzr svn-import svn+https://dev.pushtotest.com/svn/tm5 tm523:29
meteoroidoh, um, hm, maybe it just doesn't like my https..  http is at least paused23:30
jelmertm5 is probably not the repository root23:30
meteoroidit is, i run the svn server. :)23:30
meteoroidi think https fails because it has a placeholder ssl cert23:31
jelmermeteoroid: ah, that would make sense23:31
meteoroidneed to fix that with client's cacert but he's on vacation and not sweating it himself ;d23:31
jelmermeteoroid, please try running 'svn ls" against that https url23:31
meteoroidah ok just accept the cert in svn, duh23:32
* meteoroid has never had so much fun spending all day with SCM before ;d23:35
Necorohmm ... the real error seems to be: bzr: ERROR: Transport error: [Errno 1] Operation not permitted: '/mnt/usb/t/.bzr/README.31770.Zakarumiy.tmp'23:35
Necorobut it doesn't show _what_ operation fails23:36
Necoroonly THAT it fails :/23:36
meteoroidjelmer: the size of the bzr repo, sans tree, is still ~600M, same as before, and about twice the size of the fsfs svn repo on the server.23:38
LarstiQNecoro: there should be a traceback23:38
LarstiQNecoro: if not on the console, then in ~/.bzr.log. Or you could supply -Derror23:38
jelmermeteoroid: with svn-import ?23:39
meteoroidyep23:39
jelmermeteoroid, Did it recognize the branch structure correctly? I.e. did it create trunk/, branches/foo directories?23:40
meteoroidthere is basically an import of ~300, maybe 400M of stuff, and a single tag, trunk is currently empty.23:40
meteoroidwell, i imported with -no-tree (that makes it like 1.4G)23:40
meteoroider, the tree makes it like 1.4G total, not no-tree23:40
jelmer? svn-import doesn't have a --no-trees option23:40
NecoroLarstiQ: http://rafb.net/p/BCAK0b42.html23:41
meteoroidsorry, i was following someone's advice earlier to have a shared repo and did init-repo with --no-trees23:41
jelmermeteoroid: ah, ok23:41
meteoroidso, how do i check if there is trunk, branches, etc.. ?23:41
jelmermeteoroid, svn-import will create that shared repo for you as well23:41
meteoroidah ok23:42
jelmermeteoroid, The repo that was created, does it contain a trunk directory and a branches directory similar to your svn repo?23:42
meteoroidwell, there's nothing but .bzr23:42
meteoroidi can checkout . RQ23:42
jelmermeteoroid, also, (just checking) the repository you imported into was empty before you ran svn-import?23:42
meteoroidyep23:42
meteoroidbrand new fresh23:43
jelmermeteoroid, Ah, so it must not be recognizing the branching scheme correctly23:43
meteoroidokey doke23:43
jelmermeteoroid, It's using a standard scheme, e.g. the repo has a "trunk" directory and other directories under "branches" derived from that?23:43
LarstiQNecoro: that is probably the chmod failing I guess.23:43
LarstiQNecoro: might want to lookup what errno 1 is in that case.23:43
Necorooh - ok23:43
meteoroidwell, pretty close.. it was recently imported by the client and trunk is empty.  it probably shouldn't exist at all.23:43
meteoroidbut we do have tags/ and branches23:44
LarstiQNecoro: but knowing fat32 where it errors if you try to chmod, that would be my guess.23:44
NecoroLarstiQ: where is this defined? - is it the global errno?23:44
jelmermeteoroid, You probably want to use --scheme=trunk0 as option to svn-import23:44
meteoroidtags/tm52CVS, branches/tm52b6, branches/ being worked on23:44
meteoroidright on23:44
meteoroidi'll give it a shot23:44
LarstiQNecoro: it's just the system errno23:44
meteoroidshould it have to contact svn each time, or should my user's cache speed this up?23:45
LarstiQNecoro: this is reproducible for you, yes?23:45
meteoroidhm, nope, looks like apache2 is pegged again :)23:46
meteoroidat least slicehost lets me spike past 1cpu on this shared box when resources are available23:47
NecoroLarstiQ: yes - at least now23:47
NecoroI know I've done "bzr push" onto this usb stick already23:47
Necoro(though not today)23:47
LarstiQNecoro: so 1 is indeed EPERM. Could you try running this with BZR_PDB=1?23:47
jelmermeteoroid, the cache should help23:48
Necorook - now I'm inside pdb ^^23:48
meteoroidjelmer: coolio23:49
LarstiQNecoro: 'up' and 'print e'23:49
meteoroidmaybe i should dig into a branch of bzr-svn and see if i can get it to use a configurable svn cache.23:49
meteoroidcan't be too complex, just maybe need some tests and testing. :)23:49
NecoroLarstiQ: [Errno 1] Operation not permitted: '/mnt/usb/t/.bzr/README.32365.Zakarumiy.tmp' ... so nothing new23:50
meteoroidjelmer: rawk! 297M for the tm5 checkout, and it does have tags/ and trunk/ in it23:50
NecoroLarstiQ: OSError(1, 'Operation not permitted')23:50
meteoroidnow i can be like, "hey frank, yanno how we barely moved you to svn? well, EFF svn! you should use bzr!" :-P23:50
jelmermeteoroid, patches are welcome :-)23:50
LarstiQNecoro: my thinking is a bit slow at this time, sorry23:51
meteoroidthe past couple of days have been really educational, i'm starting to understand bzr a bit more and feel like i might be more comfy trying to contribute23:51
NecoroLarstiQ: no problem ;P - we're in the same timezone ;)23:51
LarstiQNecoro: how good is your pdb/python foo? What I'd basically want to do is confirm that it is the chmod that is failing.23:51
LarstiQNecoro: are we? I'm not ircing from my timezone ;)23:52
NecoroLarstiQ: my python fu should be quite to very good ... but I've never used pdb before =)23:52
Necorooh ok - it says netherlands for you ^^23:53
LarstiQNecoro: pdb needs too much thinking from me right now, so just alter bzrlib/atomicfile.py to debug printf style23:53
LarstiQNecoro: ah, but I'm in Finland this summer :)23:53
Necorohmm ... finland is even one hour later, iirc ... omg ;)23:53
meteoroidLarstiQ: just put "import pdb" and "pdb.set_trace()" lines at any given point, and you can read the values of things at that point23:54
meteoroidalso 'up' and 'down' let you check out stuff nearby23:54
meteoroideg next line up23:54
LarstiQmeteoroid: yes, I am aware of that :P23:54
lifelessNecoro: can you file a bug too ;>23:54
meteoroidpah it's so much easier than printf but whatev heh23:54
meteoroidwhatever makes ya happy23:54
LarstiQmeteoroid: pdb is nice, but it could be better23:55
meteoroidyah but it's not printf ;d23:55
LarstiQmeteoroid: right. But I don't think we need more than printf right now, if I'm wrong and the problem isn't there, then pdb would be indeed less painful.23:56
meteoroidsure, like i says, whatever makes ya happy23:57
NecoroLarstiQ: ok - chmodding is the problem23:57
meteoroid:-P23:57
LarstiQmeteoroid: maybe you know the anwser to something I've been wondering for a while. I'd like to import pdb; pdb.set_trace() with an ipy style shell, not the default pdb one.23:57
LarstiQipython that is23:58
NecoroLarstiQ: http://rafb.net/p/rkLbL327.html23:58
Necorolifeless: ok - tomorrow ;)23:58
meteoroidhm, i don't know off hand but have been meaning to learn more about ipy just for working with other folks23:58
lifelessNecoro: thanks23:58
LarstiQNecoro: thanks23:59
* LarstiQ heads to bed23:59
Necoroand I already used a repo w/o trees - so there are no filename issues ...23:59

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