/srv/irclogs.ubuntu.com/2008/09/27/#bzr.txt

ramahi from Argentina, does anybody know how to make this post_commit hook for trac work? : https://trac.m0n5t3r.info/oss/wiki/BzrTracHook00:18
* awilkins needs sleep00:32
jammarkh: ping00:35
markhjam: hi.  Let me guess - asking about binaries? :)  Launchpad is giving me grief :(00:36
jamjust curious00:36
jamyou mentioned you built them yesterday00:36
markh"Sorry, there was a problem connecting to the Launchpad server. " - about 7 times now :(00:36
jamouch00:36
markhlast time I asked on #launchpad, the advice was basically "keep trying"!00:36
markhthis is *after* it spends 30 minutes doing the upload :(00:36
markhMapMan: I meant to say: from the cmdline, consider doing 'bzr qadd' - that way you get the same GUI as TBZR, but can avoid that bug :)00:37
MapManthanks man00:38
jammarkh: is there somewhere else you could upload them?00:40
markhyeah - lemme do that.00:40
jamI don't know what resources you have available, but I would be happy to try to upload them if I could get to them.00:40
MapManmarkh: that helps a lot00:40
markhThis is only the second time I've struck this launchpad problem00:41
markhMapMan: cool - many commands have a 'q' implementation - that is what tbzr uses under the covers.00:41
markhbzr help will list them00:41
markherr - bzr help commands00:42
MapMank00:42
MapMani figured that on my own00:42
jammarkh: I wonder if it happens because you are in AU, and something times out while uploading00:42
MapManqcommit etc.00:42
jamYou're uploading larger files than the rest of us, too00:42
MapManmarkh: ima make some bath files for my friends so they can access verything easily and quickly00:43
markhjam: likely - maybe my isp struggling.  Everything else seems fine.  Last I asked on #launchpad though, others were having identical problems at the same time.  Who knows... :)00:43
markhof course, now I have the l/p upload and the other upload competing the the bandwidth that does exist!  I'll wait though, as if I cancel the l/p upload, that then obviously would have turned out the be the one that worked :)00:47
pooliehello00:53
pooliehi markh, jam00:53
jammorning poolie00:53
markhhi poolie00:53
pooliejam, should i merge bzr.1.7 back to trunk?00:53
poolieguilhemb was just wonering why lca-shape-merge was not there yet00:53
jampoolie: if you want, I'm planning on getting to it, but had about 4 other approved things that didn't get in yet00:54
jampoolie: actually, I'm set up here, give me 2 secs and I'll submit it00:54
pooliebecause of pqm delay?00:54
poolieoh, ok, thanks,00:54
pooliei'll reply to tell him so00:54
jamI mentioned it to him on IRC. When do you want to release 1.7.1 final? Mon or Wed?00:56
pooliesomewhere in that range :)01:02
ramahi people, i need help with post_push / post_commit hooks, anyone experienced could help? thx in advance01:08
ramai'm trying this one: https://trac.m0n5t3r.info/oss/wiki/BzrTracHook but does not get run after i commit local and push to a remote ssh+bzr repo using versions 1.6 ... any clues?01:14
markhjam: http://starship.python.net/crew/mhammond/bzr-setup-1.7-1.exe and ...asc - I'll do 1.7.1rc1 now01:21
poolierama sorry i need to got in a sec, can you post to the list or a question on launchpad.net/bzr01:21
pooliemarkh, thanks!01:21
poolierama, are you sure the hook is configured to run for that push location?01:22
ramai did setting it on ~/.bazaar/location.conf01:22
markh(jam - obviously that means the launchpad upload failed yet again!  Not even bothering to try with 1.7.1)01:23
ramapoolie, i have this on my locations.conf: [/usr/local/bzr/vodo-net]01:26
ramapost_push = bzrlib.plugins.trac_hook.post_push_hook01:26
ramapost_commit = bzrlib.plugins.trac_hook.post_push_hook01:26
ramawhere bzr is setup as a repo and vodo-net a branch01:26
pooliemarkh, what happened with the launchpad upload?01:26
markhlast few days been getting an error from l/p after the upload saying there was trouble connecting.01:27
markhhappened once before and I asked in #launchpad, and they basically said "keep trying"01:27
poolie:-/01:27
markhso I did :)  last time it eventually worked after about 6 goes.01:27
pooliethat sucks, did you get an oops or something?01:27
poolieor is there a bug?01:27
poolierama, i get an error loading that trac page atm01:28
jammarkh: uploading now01:28
markhno oops - just a plain html message asking me to try again, or if it keep happening to ask on #launchpad01:28
markhI even checked the html source for clues :)01:28
markh(I've closed that tab now - jml helped me out on #launchpad last time)01:29
markhs/few days/24 hours/ :)01:30
markhand no other indications of network problems01:31
ramapoolie, strange, it opens here.. anyway, i've been fiddling with its code and found in fact it was done for bzr 0.15 and reading the doc on the site found how to adapt it01:31
ramabut it does get "registered" into bzr, despite not printing any sign of being run01:31
ramai'm doing this:         install_named_hook('post_push', post_push_hook, 'trac_hook')01:34
ramaand post_post hook is the function to be called upon a post push on the remote bzr repo pushing from my box.. if i get it right01:35
markhjam: bzr-setup-1.7.1rc1-1.exe and bzr-setup-1.7.1rc1-1.exe.asc there too.  Let me know when I can remove them01:50
alperkanathey there... i want to use bzr for my project but i already have 61 revisions in svn.... most of the migrators on bzr's site are for using svn through bzr... i just care about the history.. is there a doc for this ?01:56
james_walperkanat: you can just do a "bzr branch" from svn and throw the svn away, or you could use something like bzr-fastimport to do a conversion01:57
james_wthey're pretty much equivalent01:58
alperkanatjames_w: but i have http authentication at the svn side...?01:59
jmlmarkh: did we end up filing a bug about that?02:00
james_walperkanat: hmm, I think that may work with bzr-svn, but I can't be sure, sorry.02:01
markhjml: no - we just agreed it was transient - someone else was having the same problem at the same time too - then it worked for both of us, so we all forgot it :)02:01
jmlmarkh: :)02:02
jmlmarkh: for things like this, it's good to ask a question at https://answers.launchpad.net/launchpad/ -- it's easy enough to turn into a bug and means that people who *really* know what they're doing can answer it.02:03
jmlof course, asking on IRC is also wonderful02:03
jmlI speak mostly to remind myself :)02:03
markhthe error page specifically directs you to #launchpad :)  the error message is a very generic "sorry, something went wrong" page.02:05
* jml finds the page in the source code.02:08
jmlmarkh: actually, I'll have to follow this up later.02:10
markhjml: no probs - its only the 2nd times it happend and jam is doing the upload for me - thanks tho!02:10
jmlnp02:11
alperkanatanyone here used svn2bzr before ?02:15
fullermdI was under the impression that it was pretty much superceded by bzr-svn.02:15
alperkanatpff i just don't want to lose the history of the svn repository.... and the documentation of all plugins are bad..02:18
alperkanat:S02:18
james_walperkanat: bzr-svn won't lose any history02:21
alperkanatjames_w: i can't even make bzr-svn work02:21
alperkanatjames_w: make complains about compilation errors at the end.. and bzr co http://repo doesn't do anything :S02:21
james_wprobably because it didn't compile02:22
alperkanatjames_w: Make sure the directory name is 'svn'. => which directory does it mean for instance ?02:23
alperkanatjames_w: the directory i copy into the plugins or..?02:24
james_wyou want the bzr-svn plugin directory to be called "svn"02:26
james_we.g. ~/.bazaar/plugins/svn02:26
james_wsorry I can't help you further, I must go to sleep now.02:26
alperkanatok thanks anyway02:27
alperkanatany ideas for this error ? => bzr: ERROR: Invalid http response for http://svn.raptiye.org/raptiye/trunk/.bzr/branch-format: Unable to handle http code 500: Internal Server Error02:30
alperkanatsomeone please ?02:32
Verterokalperkanat: it seems that the server is using mod_svn or mod_dav, and can't serve the url (possibly it not exists)02:32
alperkanatbut there's no .bzr directory inside the repository ?02:33
Verterokif it's a svn repository no02:33
alperkanatVerterok: then how am i supposed the import the svn project into a bzr project ?02:34
alperkanats/the/to02:34
Verterokalperkanat:  I assume you want to use bzr-svn to do that02:35
alperkanatVerterok: yes02:35
alperkanatVerterok: i just care about the history..02:35
Verterokalperkanat: if you have bzr-svn installed, juts: bzr branch  http://svn.raptiye.org/raptiye/trunk02:36
Verterokalperkanat:  to check if bzr-svn is installed, execute: bzr plugins -v02:36
alperkanatVerterok: http://screencast.com/t/0xsL59q8a02:37
alperkanati didn't think it'd be this much painfull :(02:38
Verterokalperkanat: it shouldn't02:39
Verterokalperkanat: please try with: 'bzr -Derror branch' and pastebin the output02:39
Verterokalperkanat: do you want to keep you bzr branch in sync with the svn one?02:40
alperkanatno02:40
alperkanati'll delete the svn one02:40
alperkanati don't want any .svn or any other related thing in the project and want to use bzr as vcs02:41
alperkanatVerterok: http://dpaste.com/80835/02:41
Verterokalperkanat: you could try using svn-import (I'm not an bzr-svn expert, but it sounds reasonable)02:42
alperkanati'd just wipe out the svn repo and start over but i don't want to lose the history02:42
Verteroksure, makes sense02:42
alperkanatVerterok: svn-import ?02:43
alperkanatthere's no such command02:43
Verterokalperkanat: it seems that bzr-svn is doing absolutely nothing :(, so it's bazaar trying to find a branch02:43
Verterokit's a bzr-svn command02:44
Verterokalperkanat: try running the bzr-svn tests with: bzr selftest svn02:45
alperkanatok02:45
alperkanatVerterok: this will take up long... i'm going to sleep now.. thanks any way.. i'll try my chance tomorrow..02:51
Verteroknp02:51
ausimageHow can show a file splitting into several pieces? I wrote a module that I now want in 3 - 4 parts. I did not want the module to be just removed without expressing this change.03:54
ramaausimage, about plugins i can't setup the post_push hook to get run when pushed via ssh.. any clue?04:28
ausimagenot sure about that one :/04:30
* ausimage is only a user, and a recent one at that...04:31
* ausimage wanders off, but hopes someone could give him insight into how keep history when splitting files up. PM him with answers ;)05:34
GaryvdMHi - I'm getting the following error in one of my repositories:06:58
GaryvdMbzrlib.errors.BadIndexFormatSignature: 8b44a161cf3c0ccead798d1f111c8379.rix is not an index of type <class 'bzrlib.index.GraphIndex'>.06:58
GaryvdMHow do I fix this?06:58
GaryvdMI have no idea how it happened :-(06:59
GaryvdMI think this might have happened because this repo was on a flash drive, which I removed with out doing the safe remove thing.07:39
GaryvdMI've recreated the repo form other sources.07:40
Spazhmm08:50
Spazsay i have a bzr repo on a remote host08:51
Spazthe directories/files must always have the same owner08:51
Spazis there any method i can use to ensure the files are always owned by the same owner:group?08:52
Spazassuming i'm using bzr+ssh://08:52
doomsterhi!09:01
Spazhello09:03
doomsterI'm just running "bzr branches http://code.python.org/python" and it's been hanging for two minutes or so, is that normal?09:04
fullermdI wouldn't expect branches to be able to work over http...09:21
doomsterI'm rather new to Bazaar, can you tell me why?09:24
doomsterand, is there a different way to see what branches are present at that location?09:25
fullermdWell, it has to be able to list directories to search for branches.  You can't do that over http.09:29
fullermdMaybe it has enough smarts to process some of the forms of dir listings web servers send out, but I'd be a little surprised.09:29
fullermdYou can just pull the URL up in a browser and look; at least some presumed branches are visible there.09:30
doomsterah, I see.09:39
doomsterI'm trying to wrap my brain around the bzr workflow and need some help. When I 'bzr branch' something, does it also create a repository?10:56
doomsterI'm also not sure I understand the difference between a branch and a repository...10:57
Pieterthere is no difference10:57
LarstiQthere is a huge difference10:57
doomster:|10:57
LarstiQdoomster: branches are the entities you work with most, repositories are just a storage area for revisions10:58
doomsterhmmm...10:59
LarstiQdoomster: wether branch makes a repository or not depends on if you are branching into a shared repository, if not, you're making a standalone branch and it will store it's own revisions in a private repository for that branch10:59
LarstiQdoomster: but in your workflow, you usually don't care about repositories11:00
LarstiQdoomster: branches are where the action is11:00
LarstiQdoomster: this is in bzr terminology, in other systems branch and repository can mean slightly different things11:01
doomsteryes, I guess my SVN background is giving me troubles understanding this....11:01
LarstiQright, svn doesn't really have a branch concept, it's just convention by the users11:02
LarstiQdoomster: is there a specific piece of workflow you're confused about?11:04
doomsterI just did "bzr init-repository test" and then "bzr log test", but that complained that it is not a branch. Doesn't a repository contain changes?11:04
doomsterLarstiQ: no, I guess I'm just confused by terminology.11:04
LarstiQdoomster: not as such11:04
LarstiQdoomster: when you make branches under 'test', those branches will use 'test' as the place to store their revisions11:05
LarstiQdoomster: that is also true for unrelated branches, so the set of revisions in the repository can form multiple disjunt revision DAGs11:05
LarstiQdoomster: there isn't a sense of a 'line of development' for a repository, it's just a big bucket of revisions11:06
LarstiQdoomster: whereas a line of development is exactly what a branch is11:06
doomsterokay, so when I'm working on some project, I have two options. One is to just "bzr branch $URL", then I get a branch with an integrated repository where I can make changes.11:08
doomsterThe other option is to first create a separate repository and then create branches within.11:08
LarstiQdoomster: you can always decide to switch from the one to the other later11:09
LarstiQdoomster: what a shared repository gives you is storage advantages and faster branching within (since it doesn't need to copy revisions it already stores)11:09
fullermdThe idea is that you always "bzr branch $URL".  If you happen to be putting it inside a shared repository, it will use that.  Otherwise it'll create an internal repository.11:09
LarstiQdoomster: functionally, there is no difference11:10
LarstiQdoomster: what fullermd said11:10
doomsterokay...11:10
fullermdYou don't [superficially speaking] really care either way, because everything will act the same.11:10
doomsterOkay, let's get to a real-world example...11:10
fullermd(and it's easy to switch things from being shared to being standalone if you come to care in the future)11:10
fullermdThis is very different from SVN, where the boundaries of the repository determine what you can do between branches.11:11
doomsterI'm trying to port Python to MS Windows CE. On the way, there is quite some cleanup to do with the 'normal' win32 port.11:11
doomsterSo, I guess I will have a handful of separate branches, each for one small step. It would be useful to create a shared repository for those, right?11:12
LarstiQdoomster: correct.11:12
fullermdIt will save you space and time, yes.11:12
doomsterokay.11:12
doomsterI think I'm getting it now. ;)11:14
fullermdLarstiQ: Hi, BTW.  Good to see you alive   :)11:15
LarstiQdoomster: and if compiling your project takes a long time/has a big working tree, you might consider using lightweight checkouts and `bzr switch`11:15
LarstiQfullermd: thanks, you too :)11:15
fullermdqi11:16
* fullermd slaps his mouse.11:16
LarstiQdoomster: this will decrease the cost of the working tree, which when significant is, well, significant ;)11:16
fullermdAnd it should be a reasonably familiar workflow if you're used to svn.11:17
fullermdIt is, however, a somewhat less common workflow with bzr, so you're more likely to snag some rough edges in the implementation.  It may be better to skip that part until you get comfortable with bzr.11:18
fullermd(said with no real authority other than my offhand opinion)11:18
* LarstiQ nods11:19
doomsterwhen ~/repo is my repository, I will typically have ~/repo/branch-x and ~/repo/branch-y. Can I also create branches somewhere else and connect them to that repository?11:19
fullermdNo, they have to be inside it.11:19
fullermdNow, you can (as in the just-described workflow) have the branches there, but have the working tree elsewhere.11:19
fullermdBranches don't "point to" their repository, it's searched for.  When you need the repository (to find a revision, or save one, or something), bzr will look for it right with the branch, then in $BRANCH/.., then $BRANCH/../.., and so on.11:20
LarstiQdoomster: branches have to be within the directory hierarchy, but deeper levels are fine (repo/trunk, repo/win32/cleanup, repo/win32/CE, etc)11:20
fullermdIt'll use the first repo it finds along that walk.11:21
doomsterthe repository is just the .bzr directory?11:22
fullermdTechnically, the repository is the .bzr/repository/ directory.11:22
fullermdThe .bzr/ is...   I dunno what you'd call it.  'bzrdir' probably.11:22
LarstiQyup11:23
fullermdIt contains the internal files for the repository, and/or the branch, and/or the checkout, depending on which is at that location.11:23
LarstiQso with branches in a repository, there will be repo/.bzr/repository, and repo/branch-X/.bzr/branch/11:23
fullermdIt's sorta a combination in SVN terms of the repository and the .svn/ dirs scattered through the tree.11:23
doomsterokay, so both the repository and each branch have a .bzr dir11:24
LarstiQdoomster: yes, and each working tree11:24
fullermdRight.  It basically means "there's something bzr here, and I've got all the control files"11:25
doomsterbtw: can I move a repository around using the shell or do I have to notify bzr about it?11:25
fullermdIt depends on whether you have something external referencing it (like a checkout somewhere outside it, or other people trying to look at it)11:26
fullermdIf not, you can move it around or tar it up or whatever.11:26
doomstergood.11:26
fullermdSimilarly, you can move branches around inside it, as long as they stay in it.11:26
fullermd(or if they're standalone branches, you can move them around anywhere)11:27
LarstiQdoomster: if you move a branch outside of it's repository, it will do the walk upwards again to find it's repository. If it doesn't find one, it's unhappy, but if it finds one that doesn't contain it's revisions, it's not so happy either.11:33
LarstiQdoomster: move it back and it's fine again.11:33
doomsterpoor unhappy branch!!1! O_O11:33
LarstiQ(or provide a repository that has the same set of revisions)11:33
LarstiQ:)11:34
doomstercomparing to SVN, doing a lightweight checkout from a branch is similar to SVN's working copies, right?11:34
LarstiQdoomster: yes11:35
LarstiQdoomster: a lightweight checkout will have to contact the branch it is bound to for all operations concerning history (diff, commit, log, etc)11:35
LarstiQdoomster: but if the branch lives on the same harddisk (~/repo/branch and ~/project/checkout for example), that's ok. Whereas doing that over a 300ms latency link to the other side of the word is less snappy.11:36
fullermdIn contrast, a heavy [default] checkout will only have to contact the branch for a few operations (commit, update, etc).  The better choice if it's across a network somewhere.11:37
fullermd(You'll find discussions in the docs of more details regarding the low-level implementation of heavy checkouts.  Join with me in narrowing your eyes in mild displeasure, and ignoring them   :p)11:38
doomsterwell, sometimes understanding the internal motivations helps a lot using the tool11:43
fullermdIt doesn't in this case.11:43
doomsterbzr is now working more than five minutes on a normal checkout from a local branch...11:50
fullermdHow big is it (both checkout and history size)?11:51
doomster275MiB for the branch itself11:51
doomster40k revisions11:53
fullermdA normal [heavy] checkout makes a full copy of the history.  So if it's big, that can take a while.11:53
=== Spaz is now known as Kittens
=== Kittens is now known as jmyers
=== jmyers is now known as Spaz
=== a_c_1 is now known as a_c_m
LarstiQbeuno: there has been quite some api changes on Tree I notice.14:59
mnemowhat package do I have to install to be able to use the "bzr vis" command?17:15
fullermdbzr-gtk17:16
beunoLarstiQ, hi18:07
beunochanges since when?18:07
chandlerc[g]is it a known issue that the password prompting for bzr-svn doesn't inject the password into subversion's cache?18:46
chandlerc[g]as a side note, the password prompting did work (awesome!!) as did a branch, edit, commit, push cycle, depsite using weird and broken code.google.com svn!! rock!!18:48
abadger1999Any loggerhead devs around by chance?19:40
beunoabadger1999, sure, what's up?19:40
abadger1999I almost have loggerhead working under mod_wsgi .19:41
abadger1999I'm having one issue with the redirect from /project/ =? /project/changes19:41
abadger1999In the code that's19:42
abadger1999raise httpexceptions.HTTPMovedPermanently(19:42
abadger1999                self._url_base + '/changes')19:42
abadger1999Instead of redirecting it's giving me this exception:19:43
abadger1999[Sat Sep 27 11:04:03 2008] [error] [client 127.0.0.1] TypeError: expected string object for header value19:43
beunoabadger1999, no tracebacks?19:44
abadger1999For some reason, mod_wsgi doesn't give me a traceback there.19:45
abadger1999beuno: I found the place in the code by inserting debug statements.19:45
abadger1999It's in app/branch.py19:46
beunoso, _url_base isn't a string?19:46
beunocan you check to see what it's getting19:46
beuno?19:46
abadger1999Let me print19:46
abadger1999ugh. firefox is being a dog19:48
beunoit's barking and licking your face?19:49
abadger1999chewing on my swap and growling faintly.19:51
abadger1999beuno: url_base:/bzr//packagedb/0.3.x:19:55
abadger1999bzr is my webpath19:55
abadger1999packagedb is the project19:55
abadger19990.3.x is the branch19:55
abadger1999URL I'm hitting is http://localhost/bzr/packagedb/0.3.x19:56
abadger1999Oh... type is unicode.19:56
beunoah19:56
beunoodd19:56
abadger1999Not sure if that would make a difference19:56
beunotry and convert it19:57
abadger1999Yep, that's it.19:58
beunoso, any ideas how we ended up with unicode?19:59
abadger1999I wonder if this is something that needs fixing in paste's httpexceptions....19:59
abadger1999Nope.  There's no unicode in the URL.19:59
abadger1999Let me look at the wsgi env19:59
abadger1999'SCRIPT_NAME': u'/bzr//packagedb/fchiulli'20:00
abadger1999(different branch)20:00
* beuno pokes mwhudson_ ^20:00
beunoit's 8am-ish for him, but he'll read the scrollback  :)20:01
abadger1999So mod_wsgi is adding that as a unicode object instead of a byte string.20:01
abadger1999Cool.20:01
beunowe should probably add a check20:01
beunocould you file a bug for it?20:01
abadger1999Ah ha.20:02
abadger1999http://pythonpaste.org/news.html#id220:02
abadger1999Exceptions with unicode messages don’t cause the collector to fail.20:03
abadger1999That was added in paste 1.7 and I'm using paste 1.6 ATM20:03
abadger1999beuno: k.  I'll file a bug.20:03
beunoabadger1999, interesting20:04
beunohardy has 1.620:04
abadger1999beuno: Are you guys interested in my script to start loggerhead using mod_wsgi?20:04
beunoabadger1999, thanks for debugging it!20:04
beunoabadger1999, yes we are!20:04
abadger1999It's mostly removing things from the start-loggerhead script.20:04
abadger1999Cool :-)20:04
beunoupload the branch, file a merge request20:04
beunomake sure it doesn't break any tests20:04
abadger1999Okay.20:04
abadger1999How do I run the tests?20:06
abadger1999Ah nose20:06
abadger1999beuno: Thanks!  I'll get the bug and the branch up today.20:07
beunoabadger1999, fantastic, thank you  :)20:07
* beuno is off to catch another plane20:36
=== rocky1 is now known as rocky
astrobunny|afkhello21:26
=== astrobunny|afk is now known as astrobunny
=== astrobunny is now known as astrobunny|afk
=== astrobunny|afk is now known as astrobunny
=== astrobunny is now known as astrobunny|afk
=== astrobunny|afk is now known as astrobunny

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