/srv/irclogs.ubuntu.com/2010/02/18/#bzr.txt

abentleylifeless, would you mind reviewing this? https://code.edge.launchpad.net/~abentley/bzr/unbreak-merge/+merge/1955600:00
lifelessok, when it has a diff :)00:01
lifelessabentley: perhaps it should try for the tree config and fall back to the branch config after that ?00:01
lifelessabentley: rather than not permitting tree level configs?00:01
abentleylifeless, it was never trying for the tree config.00:02
lifelessabentley: ah! then its trivially ok, JFDI00:02
lifelessabentley: you seem to have unrelated stuff in the diff00:03
abentleylifeless, yeah, weird.00:03
lifelesspages of it :). I suspect 2.0 -> trunk, or something ?00:03
lifelessanyway, the intent of the change you describe is fine.00:03
lifeless+100:04
abentleylifeless, Ah, I proposed it against 2.0 instead of 2.1 as I intended.00:04
=== maxb_ is now known as maxb
mkanatmwhudson: The format of loggerhead/1.17 needs to be updated:00:18
mkanatbzr: ERROR: RemoteRepository(bzr+ssh://bazaar.launchpad.net/~loggerhead-team/loggerhead/trunk-rich/.bzr/)00:18
mkanatis not compatible with00:18
mkanatKnitPackRepository('bzr+ssh://bazaar.launchpad.net/~loggerhead-team/loggerhead/1.17/.bzr/repository/')00:18
mkanatdifferent serializers00:18
mkanatOr Peng, if you're around and mwhudson isn't, I suppose.00:18
justdaveI got that trying to check it out over http, too, fwiw00:19
lifelessits upgrading now00:19
mkanatYeah, I think it's because one is stacked on the other.00:19
lifelesshttps://code.edge.launchpad.net/~loggerhead-team/loggerhead/1.1700:19
mkanatlifeless: Thanks. :-)00:19
lifelessthere is a clicky clicky button in the webui00:19
mkanatAhh. :-)00:20
lifelessmwhudson: is that button in the API now ?00:20
mwhudsonlifeless: no idea00:22
lifelessmkanat: is upgraded00:36
mkanatlifeless: Thanks! :-)00:36
mkanatjustdave: ^^^00:36
justdavedoes it need to mirror out or something?  still getting the error00:37
justdaveproxy cache on bazaar.launchpad.net needs flushing I suppose00:46
lifelessthere isn't one00:46
lifelessthere is however a mirrored copy00:46
lifelessI'm poking, gimme a sec00:47
lifelessupgrade didn't seem to do much00:50
poolieoh hi spiv00:51
lifelessrockstar: where do upgrades get logged ?01:12
lifelessrockstar: trying to upgrade https://code.edge.launchpad.net/~loggerhead-team/loggerhead/1.17, it doesn't seem to be actually, well, /doing/ anything.01:13
lifelessmwhudson: thumper: ^ perhaps you know01:13
mwhudsonlifeless: i don't know anything off hand01:14
thumperhmm...01:14
thumperwell01:14
thumperif we had abentley's job console, we'd be able to see something there01:14
thumperfor now we just need to do db queries01:14
lifeless!01:15
thumperas in "ask a losa"01:15
thumperwhich we can't do01:15
lifelessI would have thought it would log like imports to, to somewere about the branch01:15
thumperwe do01:15
thumperbut the logs are synced daily01:15
lifelessthat would let any user get an idea ;)01:15
thumperunless you ask a losa01:15
lifelessthat doesn't sound like the import system01:15
thumperit isn't like the import system01:15
lifelessthats ok; I'm just trying to be clearer about my comment 'I would have thought...'01:16
thumperlifeless: noted01:17
lifelessmbarnett: are you around?01:18
lifelessthumper: should I file a bug that upgrade output isn't visible on the branch01:18
thumperlifeless: yes please01:18
lifelessmbarnett: around?01:47
lifelessmbarnett: https://code.edge.launchpad.net/~loggerhead-team/loggerhead/1.17 isn't upgrading properly, we need a log looked at01:47
igcmorning all01:54
igchi poolie01:54
lifelessigc: just!01:54
igclifeless: well I did some work in the morning 11 hours ago so it's morning #2 for me :-)01:55
pooliehello igc01:56
lifelessigc: :)01:56
pooliei'm so glad parthm liked that01:56
* spiv -> lunch02:08
pooliespiv/igc/lifeless: i'd like to turn off --verbose in 'make check' so that pqm failures are not so ridiculously long02:11
pooliehttps://code.launchpad.net/~mbp/bzr/trivial/+merge/1956702:17
lifelesspoolie: it might be nicer just to turn subunit on02:20
lifelesspoolie: and let it run the entire test suite, so you get all the failures at once02:20
poolienicer, but harder :)02:20
lifelessthe bug about this has a suggested recipe02:20
pooliebet you can't do it in one character02:21
lifelessso you shouldn't need to think hard ;)02:21
lifelesspoolie: bet I can't either02:21
pooliebut aside from that, yes02:21
poolieso it would send the whole subunit output?02:21
poolieit sounds good02:21
poolieespecially with tribunal02:21
lifelessyes02:21
pooliebut it will kind of suck for people wanting to just look at the mail02:21
lifelessso do xml test reports02:24
lifelesswhich other projects do by default02:24
poolieif we could send mail with a short failure in the body and the subunit in the attachment that would be sweet02:25
lifelesspoolie: file a bug - I'm not about to do that immediately, but it certainly sounds nice.02:26
lifelessin fact, I'd want all the failures in the body02:26
pooliehm02:30
poolieactually this could be mostly in subunit generally02:30
lifelesssure.02:31
lifelessanyhow, as I say the recipe has been hammered out for you02:31
lifeless'the'-  'a' recipe that should work02:31
pooliethis is "how to run --subunit and have pqm still have teeth?"02:32
lifelessyes02:32
lifelessonce we're doing that reliably I'll happily change PQM to go 'oh look subunit, I'll have teeth no matter what'.02:32
lifelessbut its harder to deploy pqm changes, so I don't want to do that willynilly02:32
lifelesspoolie: small present for you (apt)02:56
poolie?02:57
lifelessbug 2235402:57
ubottuLaunchpad bug 22354 in apt "apt-cache doesn't differentiate sources that share protocol, host, release and archive name" [High,Confirmed] https://launchpad.net/bugs/2235402:57
poolieoh yay02:57
=== eugeneoden_ is now known as eugeneoden
abentleystraw poll: It's currently possible to commit a revision whose tree has no root, but this isn't well-supported.  Should we forbid committing rootless trees or fix the support?03:05
lifelessabentley: do you mean a root of TREE_ROOT, or actually no root ?03:06
abentleylifeless, no root, like the null: tree.03:06
lifelessabentley: I thought that no root at all wasn't support; and that TREE_ROOT was dependent on the repo03:06
lifelessabentley: and presumably no content either?03:06
abentleylifeless, no content either.03:07
abentleylifeless, it's possible to do when committing a TreeTransform or using the CommitBuilder directly.03:07
lifelessabentley: I'm surprised. I can see a theoretical argument to permit it, but I'm fairly sure it would provoke a lot of bug reports from code assuming things have /some sort/ of root.03:08
lifelessmy poll response: forbid03:08
lifelessunless you have a need for it, in which case - talk on03:08
abentleylifeless, I don't need it.03:09
abentleylifeless, the possible problems with forbid are:03:10
abentleylifeless, 1. if there are such commits in the wild already (I have no data)03:10
abentleylifeless, 2. If there's a risk that it will happen in the future, despite us forbidding it in a given codepath.03:11
abentleylifeless, end of list.03:12
lifelessso, for 1 I'd expect that from custom code, not general use - as it has to be totally empty. I think its near-zero probability.03:12
lifelessas for 2, well, we do what we can.03:12
abentleypoolie, in your review, you say "I would like to see the actual code changed to be 'propose' not 'submit'.".  This means changing class and module names, etc?03:17
poolieyes03:17
abentleypoolie, this is an underhanded scheme to make me write some tests, isn't it?03:20
poolie:)03:20
spivpoolie: regarding turning off --verbose in make check, it hasn't really bothered me greatly, so I'm pretty neutral on the idea.  I agree that it would be nice to get the failure(s?) in the body and the complete log as an attachment.04:04
=== eugeneoden__ is now known as eugeneoden
pooliespiv, ok,04:05
spivpoolie: with some test suites it can be helpful to have a "I'm running test X now" log in case one test hangs, but historically that hasn't been much of a problem for bzr.04:05
lifelessspiv: pqm does that04:05
lifelessspiv: for subunit, now.04:05
spivlifeless: right, but that's not turned on (etc etc)04:05
poolietrue04:05
lifelessGotta run; later. Ring or SMS if you want me.04:06
spiv(I see you just had this discussion, I don't mean to make you go in circles!)04:06
pooliehi igc?04:09
abentleypoolie, it would have been nice if you had raised the canonical_url thing earlier in the process.04:15
pooliesorry04:15
pooliejust because it's better to get the whole review in one go?04:16
abentleypoolie, I think that replace('api', '') is a much worse idea than replace('https://api.', 'https://code.')04:16
abentleypoolie, because "api" can easily appear anywhere in the URL, while "https://api" is really unlikely to appear anywhere other than the front.04:17
pooliei know04:17
poolieotoh this function won't work for bugs04:17
abentleypoolie, because I feel like either I do it the wrong way to get it merged, or I have to do another round.04:17
igchi poolie04:17
poolieanyhow it's gross that this is not provided by lplib04:17
pooliewell, it's negotiable04:18
poolielet's look04:18
poolieit's time to get this merged04:18
abentleypoolie, rationale for removing the https:// ?04:18
pooliei keeping wanting to use it :)04:18
poolieactually04:19
poolienever mind about the replacement04:19
pooliei would kind of like you to point to the bug, and to think about changing the name04:19
poolieeither expression is kludgy and mine isn't especially better04:19
abentleypoolie, the name in the Launchpad codebase is 'canonical_url', which is why I used that name.04:19
poolieoh ok04:19
pooliefair enough04:19
poolienote that i'm using replace(x,y,1) which is maybe more robust against the term /beta/ turning up later in the url04:20
pooliei don't know if that will actually happen04:20
abentleypoolie, canonical_url is not exposed over the API because it's a function, and functions don't exist in our REST API.04:20
poolieright04:21
pooliebut perhaps it should be in lplib?04:21
poolieor for that matter it could be an object property?04:21
poolieas it is, variations of this code are copy-and-pasted into every lp api client04:21
pooliespiv, to follow up from before04:21
abentleypoolie, this should definitely be provided elsewhere, ideally through the REST API directly.04:22
abentleypoolie, and making it an object property would be a reasonable way of doing that.04:23
pooliespiv, http://doc.bazaar.canonical.com/bzr.dev/developers/bug-handling.html#backports discusses the use of bugtasks for backports04:23
pooliepatches welcome04:23
poolieand that page is just impossible to find :/04:23
poolieigc, is anything still needed on escudero or did the cron job run ok?04:23
spivpoolie: ah right, I did find that eventually actually, but not before mailing you04:23
poolieabentley: ok so feel free to merge without changing that04:23
abentleypoolie, but that wouldn't be a 1:1 reflection of the native API.04:23
igcpoolie: the cron job kicked in thanks04:24
pooliewhat is 'that'?04:24
igcpoolie: we still need a bzr.2.2 directory as requested by jam04:24
igcand for those files you emailed me about to be deleted04:24
abentleypoolie, providing the URL as an object property on all REST API objects.04:24
igcpoolie: I don't seem to have permissions to do any of that04:24
poolieigc, ok04:26
poolieabentley: ok, well, i hope it gets solved somehow04:26
poolieigc: i want to unfold the 'enhancing bazaar' section in http://doc.bazaar.canonical.com/bzr.dev/developers/04:26
poolieit's too hard to guess where the bug guidelines would be04:27
igcpoolie: fine with me. Go for it!04:31
* igc lunch04:31
poolieigc, new page is nice, go for it04:37
igcpoolie: thanks04:37
pooliespiv, what do you think of my suggestion at the bottom of https://bugs.edge.launchpad.net/bzr/+bug/37638804:48
ubottuUbuntu bug 376388 in etckeeper "~/.bazaar created owned by root (when run under sudo)" [Medium,Confirmed]04:49
spivpoolie: hmm04:50
spivpoolie: now is the time in the 2.2 cycle to try that sort of idea out :)04:50
pooliei was going to suggest parthm try it04:51
parthmHi poolie. I just saw your comment "backport to 2.0 sent to pqm" and didn't understand it. (on https://code.edge.launchpad.net/~parthm/bzr/262450/+merge/19483)04:51
spivpoolie: I guess the most obvious failure mode is "directory writeable by me, but not owned by a user I can chown to"04:51
pooliehey04:51
pooliei mean, i cherrypicked your fixes onto a branch of 2.004:51
poolieand have sent it for automatic testing04:51
parthmpoolie: is this about porting the backup.bzr perms? I have that against 2.0. Was waiting for the final merge in trunk so that any additional changes can also be put in.04:52
parthmOh cool. Then I won't bother.04:53
poolieyeah, it's ok04:53
pooliegenerally speaking it's easier to do the review and merge against the older branch first04:53
poolieand then we can merge it forward04:53
spivpoolie: for the case of writing to a file/dir in $HOME, I think your suggestion is good... I haven't thought of any likely scenarios where it will be worse than the status quo04:54
parthmYes. I was thinking of merging 369501_2.0_ver_on_bzr_cmd forward to 2.1 and 2.2.04:54
spivWe typically tend to just merge all of 2.0 into 2.1 periodically (and 2.1 into 2.2, etc)04:55
parthmOh OK. Then should I just let that be for now?04:56
parthmThat sounds like a good idea.04:56
poolieyou can just let that be for now04:56
parthmOK. I had a question regarding fixing of bugs. Is there a policy on deciding if the bug should be fixed againt 2.0, 2.1 or trunk?04:58
igcpoolie: the site upgrade has been merged now. I'm not sure how often the cron job runs but it will hopefully be live soon05:03
igcpoolie: I'll grab some lunch, reply to some support Qs and then take a look at templating next. Getting rid of manual updates will be good I think05:05
spivparthm: there's a little bit about it at http://doc.bazaar.canonical.com/bzr.dev/developers/cycle.html#bug-work (and the "Feature and Performance Work" section too)05:07
spivparthm: we probably should have a more formal description somewhere, I think maybe poolie has sent one to the list at some point?05:08
spivparthm: roughly speaking, the safer and more valuable a bug fix is, the more likely we are to accept it into stable branches05:08
fullermdSpeaking of docs, is there some good way to make random sweeping statements about parts of them needing skilled work?05:09
parthmThanks spiv. I will go through the docs and also see if I find something on the list.05:09
spivSo a fix for a very rarely hit bug that has a significant chance of other regressions, we wouldn't accept that for 2.0.05:13
spivBut a small, obviously correct fix for something pretty visible we would.05:14
spivfullermd: "good" in what sense?  In the sense that people won't be offended, or in the sense that saying it will cause the docs to be improved? :)05:15
fullermdWell, the former is nice (though in this case, I doubt anybody who'd be offended would still be around  :p), but the latter was more what I was thinking.05:15
spiv(And they aren't necessarily mutually exclusive options, of course)05:16
spivI'd talk to igc about that, then.05:16
fullermdI could mention it here, and have it disappear.  Mail the list, probably ditto.  File a bug, it ends up being one of those overly-fuzzy "X could be improved" sorts of things...05:16
spivHe seems to be pretty good at building enthusiasm for that sort of work in a way that causes stuff to happen.05:17
fullermdAnd more importantly, why am I being disturbingly general when I have something specific in mind?05:18
fullermdThe "Performance Roadmap" needs rewriting.  Big chunks of it talk about things we'd like to evaluate based on 0.16 for use in a possible pack-ish format.  This doesn't seem important to have prominent in our docs.05:18
abentleyfullermd, I'd consider that a historical document at this point.05:19
fullermdWell, there's still some good stuff in it about minimal-work evaluation of various commands too, so it doesn't (at first glance anyway) seem like a "OK, we can just discard this now".05:19
fullermdBut making it up-to-date useful is pretty skilled labor, so it's not low-hanging stuff.05:20
spivfullermd: I'd say that's possibly a specific-enough issue for a bug report05:20
abentleyfullermd, some of that will be out of date too, as we've gained more experience and implemented different things.05:20
fullermdYah.  Hm.  I guess I'll put it on my list to try drawing up a few specific slices on it and file something.05:21
fullermdSee, this is why I avoid reading docs.  It just leads to more work  :p05:21
spivFor that matter, the "Bazaar Release Cycles" doc needs to be updated; it's still written as a proposal, when it's now fact.05:22
pooliefullermd: it's true it's out of date but05:33
poolieit's real audience know tha05:33
poolieyou can put up a patch that deletes stuff you're pretty sure is obsolete05:34
pooliea lot of it is05:34
pooliei share your doubts about the value of bug reports like that05:34
poolievague ones05:34
fullermdYeah, it's tricky.  I know enough to believe there are parts of it that are still useful going forward, but not to be sure which parts qualify (and those that do need updating too).05:36
fullermdIt probably ends up being not so much even "clean out obsolete", as "take useful bits and make a differently targetted article around them"   :|05:36
spivRight.05:37
fullermdY'know, to occupy all that spare time everybody has going to waste.05:37
spivI mean, in its current state it's barely useful at all; I know I haven't referred to that doc for ages, even though as a developer I am in the target audience for it.05:37
poolieright05:39
pooliei'd welcome someone being a bit deletionist there05:39
pooliewe can always get it back if we remember something was useful05:39
spivAgreed05:45
poolieigc, blah, the doc/www directory is root-owned05:46
igcpoolie: yep ;-(05:46
spivAnother idea: Twisted IIRC has a 'historical' directory in their docs for docs that aren't worthless but are also nowhere near current.05:47
poolieyeah05:47
pooliewe'll have them on the web in old branches though05:47
pooliefullermd: so if you're keen, delete away05:47
poolieigc i'll file an rt05:48
fullermdOh, I don't have a dog in it at all   :)05:49
fullermdJust struck me as worth mentioning while it was in my brain.05:49
poolieigc: rt sent06:06
poolieparthm: https://code.edge.launchpad.net/~parthm/bzr/262450/+merge/19483 bounced06:08
parthmpoolie: I am not quite sure what to make of the error. On my system it appears the sftp tests were skipped.06:11
parthm19 tests skipped06:11
parthmbzrlib.tests.blackbox.test_upgrade.SFTPTests.test_upgrade_url is leaking threads among 9 leaking tests.06:11
parthmIs this against 2.0?06:12
pooliewell this was actually an ftp test06:12
pooliebut they might be skipped because you need an external library to run them06:12
parthmpoolie: These tests were skipped for me (FTPServerFeature). Installing medusa right now.06:21
pooliecool06:21
poolieigc, perms are fixed06:30
poolieso i now removed the thing i asked you about06:30
igcpoolie: thanks06:30
pooliejust fixing the links to 2.0 docs06:32
parthmpoolie: Its seems the higher perm bits were causing the problem. masking with 0777 fixes this. ie. "target.mkdir('.', stat.st_mode & 0777)" in copy_tree06:39
pooliecool06:39
pooliewell spotted06:39
pooliei've got to go now but i'll have a look tomorrow06:40
parthmOK. Good day. Will push the changes.06:41
* igc diinner08:12
bialixheya!08:13
bialixhi, I have a question about teams and bugs, anybody here?08:16
PengI'm here, but I doubt I know the answer.08:17
bialixnp, poolie helped me already on #launchpad08:19
Peng:D08:19
PengI was right, I didn't know the answer to that question. :D08:19
bialixbut you know answers on many others, I'm sure08:24
Peng:)08:24
mvohm, bzr merge gives me a pretty confusing error message: http://paste.ubuntu.com/378919/ - am I doing something wrong or is bzr in lucid just not handling this correctly?08:54
PengEven "bzr log -r 98 lp:~lifeless/ubuntu/lucid/apt/bug-22354" fails. Perhaps the branch is screwed up?08:58
mvothanks peng, I guess lifeless needs to check, I imported the patch via a download now09:16
spivmvo: I would suspect a damaged branch09:35
spivmvo: perhaps try branching it locally, and using that copy09:36
spivmvo: and if the local copy fails, try 'bzr reconcile' on it09:36
spivmvo: (and please do file a bug)09:36
mvospiv: thanks, reported as #52370309:39
mvospiv: branching locally makes it all work it seems09:40
=== Wellark1 is now known as Wellark
=== bigjools is now known as bigjools-lunch
slestakgood morning.  Can I discuss a use case with someone before I set this repo up.  We have a src license for our ERP system, so we do our own enhancements and modifications.  This code is not repackaged.  The code is in 3 main dirs, one of which is a vendor branch.13:27
slestakthe number packages to trac are 1121, 278, and 5359.  The dir with 1121 is the most active13:28
slestakfor the 1121 and 278 dirs, we have a prod bracnh and test branch13:29
slestaki am trying to decide between one repo with 5 dirs or 5 repos13:30
slestakany advice is appreaciated13:30
=== mrevell is now known as mrevell-lunch
=== mrevell-lunch is now known as mrevell
=== bigjools-lunch is now known as bigjools
=== salgado is now known as salgado-lunch
=== beuno is now known as beuno-lunch
=== salgado-lunch is now known as salgado
=== froosch_ is now known as froosch
=== beuno-lunch is now known as beuno
=== deryck is now known as deryck[lunch]
davidstraussHow does the Bazaar project itself merge changes into multiple stable branches?17:42
rubbsslestak: I know this is a little late, but if you still need help I might be able to give you some advice to your question17:43
rubbsdavidstrauss: I'm not sure what you're asking. Are you asking how they merge branches into multiple "versions" of bzr? Like if a fix affects 2.0 and 2.1, how do they get the fix into both?17:44
davidstraussrubbs: exactly17:44
davidstraussrubbs: You know, without pulling other 2.0 or 2.1 changes into either.17:45
rubbsI'm not a dev with commit access, so I don't know for sure, but my guess is that they keep the originating branch open and merge it in multiple branches. For example: fix_branch is merged into 2.0 and that fix_branch is kept around and then merged into 2.1. When you merge a branch in, you don't automatically lose that branch.17:47
rubbsbut I'm not sure if that's exactly how they do it, since I don't do it myself ;)17:47
davidstraussrubbs: but if someone branches from 2.1 and writes a fix on it, merging that branch into 2.0 will pull all the missing 2.1 changes, too17:49
rubbsah, good point.17:50
rubbsunless they export the changes as patches and apply those patches in manually.17:50
rubbshonestly I don't know17:50
davidstraussrubbs: but that's not a merge :-/17:51
Takdavidstrauss: you can merge specific revision ranges17:51
davidstraussTak: I'm trying to avoid cherry picking, which isn't tracked.17:51
fullermdNo, bzr just always completely merges branches upward.17:56
luksdavidstrauss: the usual approach is to do it the other way around18:11
luksdo fixes based on older revisions and merge them to all the necessary branches18:11
=== deryck[lunch] is now known as deryck
luksyou've probably seen it before, but this page nicely explains an extreme variant of this - http://www.monotone.ca/wiki/DaggyFixes/18:13
smmalmansoorihi all, I just installed bazaar and would like to change the location where it looks for the configuration files (by default in /home/username/.bazaar), could anyone help me please?18:20
KinnisonWhy do you wish to change that?18:21
smmalmansooribecause i installed bazaar in a usb, so i'd prefer if the config files are in the usb too18:22
KinnisonYou can set BZR_HOME in your environment to point at the USB stick I suppose18:23
Kinnisonbut you'll have to always do that18:23
Kinnisonalternatively you try changing bzrlib/config.py on the stick (specifically config_dir())18:23
=== radoe_ is now known as radoe
smmalmansoorii see, i'll give the config.py option a try then, thanx :)18:24
smmalmansooriThanks alot Kinnison! worked like a charm :D18:38
jamjames_w: are you still around?18:40
jamI was wondering if you had a response to https://bugs.edge.launchpad.net/udd/+bug/508251/comments/318:40
ubottuUbuntu bug 508251 in udd "Failure to import when decoding changelog authors" [Medium,Confirmed]18:40
james_whi jam18:41
jamI've found the error for gnome-panel18:41
jamwhich is iso-8859-1 data in the changelog portion18:41
jamwhile we are searching for "[AUTHOR NAME]" sections.18:42
jamI posted some possible  fixes18:42
jamand wondered which you would like to see me implement18:42
james_wjam: thanks for the analysis19:02
james_wjam: I'm not sure what the best would be19:02
james_wjam: we have to decode at some point, but deferring could work.19:02
james_wjam: perhaps try: decode('utf-8') except: try: decode('iso-8859-1') except: pass19:03
jamjames_w: right, I was thinking to do the double try as well19:05
jamjames_w:  do you think it is reasonable to just do the regex match on the 8-bit string first?19:06
james_wand then deferring to after we at least find [ ] would save some effort19:06
jamright19:06
james_wI think so19:06
james_wI think there might be a reason that it is that way19:06
james_wnot necessarily a correct reason, but...19:06
jamI think the idea was to handle re.UNICODE19:08
jambut that would only matter if you were using '\w'19:08
anddamhello19:08
jamrather than [^\]]19:08
anddamregex?19:08
jamhi anddam19:08
jamjames_w: ^^19:09
anddamhi there19:09
james_wjam: sounds about right19:09
anddamI'm not used to distributed VCS, can I import from a mercurial repository using bazaar?19:09
james_wjam: I think it might have been to UnicodeDecodeError using re.match on 8-bit strings19:09
jamanddam: there is a 'bzr-hg' plugin which should let you convert19:10
anddamjam: is it a bazaar plugin?19:13
jamanddam: yes19:13
jamlp:bzr-hg19:13
jamyou'll need to have mercurial installed as wlel19:13
jamwell19:13
anddamjam: so to me it'd be transparent, wouldn't it?19:14
anddamI'm trying to pick up one in the triad and Google project hosting is something to consider19:15
jamanddam: I don't think bzr-hg makes it as transparent as we would prefer19:15
jamI don't think it yet supports 'round-tripping'19:16
anddamthanks, I'll check out19:16
jam(pull from hg, commit in a bzr branch; push back to hg; pull back to bzr)19:16
jamit probably will eventually19:16
jamjames_w: would you like to see a trace.mutter (or warning?) if we have to trigger the fallback?19:19
james_wwhy not?19:19
jamjust wondering if it is helpful or just noise19:19
jamand wondering whether mutter or warning is appropriate19:19
james_wI'd say mutter it19:24
james_wthough it probably is just noise19:24
anddambye19:36
=== salgado is now known as salgado-afk
mtaylorbzr: ERROR: Tree transform is malformed [('unversioned executability', 'new-368'), ('unversioned executability', 'new-367')]20:24
mtaylorsigh20:24
slestakrubbs: hi, ty for seeing my previous request.  I would like to discuss it if you have maybe 10 minutes.20:25
rubbssure, I'll be in and out, but I'll always respond within a few minutes at most20:26
rubbsjust a sec while I re-read what you were asking again.20:26
rubbsok, I remember my question now. Do any or all of these projects share similar code and/or history?20:27
slestakit is one project, with code divided in 3 dirs20:27
slestak2 of the dirs have a PROD and TEST label20:28
slestakthe 3rd dir is a vendor branch20:28
slestakso that can be taggeed every now and then if we ugrade20:28
rubbsah, I c. so you have the Vender, testing and production branches, but they are all based off of the same "core" code right?20:28
slestakyes20:28
slestakwhat I am afraif of if I set this repo to track too many targets, it will be slow for every operation20:29
slestakthat is why I was thinking about maybe 3 or 5 repos.20:29
rubbsthen I would suggest doing a shared repo because they are going to share most of the same history. for the most part other operations won't be affected too much.20:29
slestakthat would make sense, the code is all one erp app20:30
rubbsthe advantage of having them all under the same repo (with different branches) is saving disk space and merges etc between branches would go pretty quickly20:30
slestakyes.  now.  at the beginning, I am the only person motivated to use scm20:31
slestaki think that will be ok, I think for a time I will just have commit statements liek "Scale is workign on the website, isse 456"20:31
slestakhopefully without all the type, but not likely20:31
slestaktypos!20:31
rubbshaha20:31
rubbsI do it all the tie20:32
rubbstime*20:32
rubbshaha20:32
rubbsnot intended ^20:32
slestaki joke all the time i need a speel checker20:32
rubbsheh... me too.20:32
rubbsbut as far as your question goes, I can't really see much of a downside to setting up a shared-repo.20:33
lifelessmtaylor: file a bug20:33
mtaylorlifeless: ok.20:34
slestakis it sane or advisable to simplify the dir structure with symlinks and version the symlinks?  i.e. instead of versioning /ud/JM/USER-FORMS and /ud/TEST/USER-FORMS.  I would version /usr/local/src/ud/L-USER-FORMS  and /usr/local/src/ud/T-USER-FORMS.  ther eare more that I would add. but i think bring them together under one dir and prefix them with their role?20:36
rubbsnot sure to be honest. I havne't really used symlinks much, however I know that some do. Bzr will work with symlinks. One thing to remember though is that windows can't really handle symlinks so you won't be able to have a windows user checkout a branch.20:38
slestak oh, that could be a problem20:39
slestakthis code is edited locally.  it must be built on the aix box, so very rarely will you have it on your workstation (besides me editing with netrw, but that doesnt coaunt.)20:39
pooliehello all20:40
rubbsyeah, most people don't think about that :(. If you were in a completely UNIX environment, that wouldn't be so bad, but windows doesn't seem to like to play nice with symlinks ;)20:40
rubbshello poolie20:40
rubbsslestak: I would still advice against symlinks even if you are just editing on a windows machine.20:40
slestakok20:40
rubbsmostly because it will be hard to checkout/branch your code to your local machine.20:40
slestakso if these have a common root of /ud, the bzr repo will live in /ud/.bzr?  what if I want to pull in one dir that is outside that tree?20:41
rubbsI'm not sure I understand taht question. I'm guessing you mean what do you want to do if you want to verson a directory outside of that root?20:43
slestakyes, correct20:43
rubbsthat I'm not sure about to be honest.20:44
slestakk.  ty for you help.  like someone else told me in here, just do it.20:44
rubbshaha20:44
rubbsalways keep a backup20:44
slestakget into analysis paralysis designing scm layout20:44
slestakwhats that.20:44
slestakj/k20:44
rubbsha20:44
rubbsit took me a few tries before I got everything down right on my end too, but once I got it, it was totally worth it20:45
slestakonce you decided to reset, how did you blow out the existing repo?  that info isnt google-able20:45
slestakremoveing .bzr doesnt seem to do it20:45
=== Adys_ is now known as Adys
lifelessslestak: if you have a 'shared repo' then there will be a .bzr for the repo *and* for each branch20:46
slestakthats right.  i will read the fine manual again before proceeding20:47
rubbssorry, phone, but looks like lifeless took care of you.20:50
thrasholdCan anyone explain the difference between bzr branch and bzr checkout?20:56
luksbzr checkout == bzr branch && bzr bind (more or less)20:56
thrasholdThanks20:57
fullermdBranch gives you a new branch.  Checkout gives you a new working tree on the existing branch.20:58
rubbsbranch will give you a directory containing a clone of all the history from the parent branch. A checkout will only give you a working tree (no history) of the revision specified (defaults to the HEAD).20:59
luksrubbs: that's lightweight checkout21:00
thrasholdWhich one I want if I want to work on the said branch and push changes?21:00
fullermdIf you want to work independently of the existing branch, you need a new branch to work on, hence `branch`.21:00
luksuse bzr branch unless you know you need something else21:01
thrasholdI don't want to work independently21:01
thrasholdOK, I'll rephrase my question21:01
thrasholdIf I just pushed a branch, is the local branch binded (a checkout) or not21:02
rubbsluks: ok, thanks for clearing that up for me. so heavy weight checkouts also have history, but are just bound to the parent location?21:02
fullermdNo.21:02
sorenIf a bzr upgrade of a launchpad branch fails, how can I get access to the backup?21:05
maxbsoren: via sftp21:06
sorenmaxb: What's the trick?21:06
sorensftp://bazaar.launchpad.net/~ubuntu-virt/vmbuilder/0.11/backup.bzr/ does not work.21:06
soren(i.e. "bzr branch sftp://bazaar.launchpad.net/~ubuntu-virt/vmbuilder/0.11/backup.bzr/" doesn't work)21:07
maxbOh, no, you can't get it via bzr21:07
maxbit has to be plain sftp using a sftp client21:07
maxbHowever, for a launchpad branch, it might be easiest to just pull the public copy, which shouldn't have been replaced with a broken copy afaik21:09
maxboh, or perhaps it has, here21:09
sorenmaxb: The web ui certainly looks quite upset.21:10
sorenand bzr branch does not enjoy it either: bzr: ERROR: The branch lp:vmbuilder/0.11 has no revision None.21:10
maxbsoren: So, I'd probably use sshfs to mount the directory over sftp, and copy the backup.bzr using cp or even nautilus. That's because I don't know of any sftp clients I like21:10
rubbsfilezilla isn't too bad21:12
poolielftp is good21:12
sorenpoolie: Does it have a recursive GET?21:13
pooliesoren, all you need is21:13
pooliemv .bzr .bzr.broken21:13
pooliemv backup.bzr .bzr21:13
sorenHeh.. That's true.21:13
pooliebut actually, it does have recursive get/put, under the mirror command21:13
sorenpoolie: How do I trick launchpad into rescanning the branch?21:14
poolieanother option is hitchhiker, which uses bzr's transport layer21:14
pooliehm21:14
pooliethat i don't know21:14
sorenpoolie: Never mind. I'll be pushing to the branch in a second anyway, so that'll probably trigger something.21:14
sorenpoolie: I was just curious.21:14
maxbYou need to do any operation which locks it21:14
sorenpoolie: Access failed: Permission denied: "Cannot create '.bzr.broken'. Only Bazaar branches are allowed."21:15
maxbLP is special - use .backup.bzr instead21:15
sorenmaxb: Same. Access failed: Permission denied: "Cannot create '.backup.bzr'. Only Bazaar branches are allowed."21:15
maxboh, sorry, I mean .bzr.backup21:16
pooliewe really should make it easier to roll back21:16
pooliesoren: ok the crash is due to a known21:16
pooliebug21:16
sorenpoolie: Well, that's good.21:16
pooliefrom where did you install the version you're running?21:16
sorenlucid, I think?21:17
poolieurk21:17
pooliei'll target it to lucid21:17
sorenHm.. I /may/ have pulled it from Debian.21:18
poolieok 2.1.0-1 is now in lucid, and it has a fix for this.21:18
sorenOk, so what do I do? Mirror the backup branch to my local box, and do a bzr push --overwrite?21:19
sorenIt seems a big hammer, but not sure what else to do.21:19
poolielet's just ask an admin to fix it on lp21:20
maxbsoren: mv .bzr .bzr.backup; mv backup.bzr .bzr21:20
thrasholdIf I just branch, I can't do just 'bzr push'. What should I do to be able to do that?21:21
maxbthrashold: bzr push :parent the first time, to tell bzr that this branch should push back to where it was branched from21:21
thrasholdmaxb: Thanks, I see21:21
sorenmaxb: That's what I tried above.21:21
sorenI think.21:22
sorenmaxb: No, that's new: Access failed: No such file: u'/srv/bazaar.launchpad.net/push-branches/00/03/db/7b/.bzr.backup': [Errno 2] No such file or directory21:23
pooliesoren this is really https://bugs.edge.launchpad.net/bzr/+bug/31773221:23
ubottuUbuntu bug 317732 in bzr "hard to do anything with backup.bzr on a remote filesystem after upgrade" [High,Confirmed]21:23
sorenpoolie: What's hitchhiker?21:25
pooliehttp://packages.ubuntu.com/lucid/hitchhiker21:26
sorenOh.21:26
jelmeroh neat, I didn't know Jaari had packaged hitchhiker21:28
rubbssounds like an intersting package.21:30
rubbssomething that could come in handy...21:30
maxbftr, the most lightweight "Launchpad, please remirror my branch" incantation that I have found is:21:34
maxbpython -c 'from bzrlib.branch import Branch as B; b = B.open("bzr+ssh://bazaar.launchpad.net/~maxb/+junk/wibble"); b.lock_write(); b.unlock()'21:34
poolieit is good21:34
lifelessmaxb: there is an API call to say 'mirror now'21:39
lifelessmaxb: or so I'm told.21:39
spivI'm pretty sure there is, yeah.21:42
jelmerlp-shell should support -c21:42
jelmerbut it's basically:21:42
jelmerlp-shell21:42
spivAlthough it's possible that an SSH handshake and branch lock/unlock operation is more lightweight than the LP api ;)21:42
jelmerlp.people["jelmer"].getBranches()[0].requestMirror()21:43
* maxb is siding with spiv, unless you can write a shorter python -c '....' using launchpadlib :-)21:43
jamjames_w: If you are around: https://code.edge.launchpad.net/~jameinel/bzr-builddeb/unicode-author-508251/+merge/1966222:17
jamhi poolie and lifeless22:17
pooliehello jam22:17
poolielifeless/jam: do we have a monkeypatch-helper in selftest/22:25
lifelessyes22:25
lifelesstwo or more I think22:25
lifelessthere is or was one called 'patch' in the lp plugin tests22:25
lifelessand vila put another one together recently - check the changelog22:25
jampoolie: self.overrideAttr22:26
pooliegot it, thanks22:27
spivOh, that's right.22:27
spivThanks for the reminder, that's useful :)22:27
pooliei'll add it to the testing guide22:28
spivWhat's the purpose of overrideAttr allowing the 'new' param to be optional?22:33
poolieto set it to null?22:35
spivpoolie: apparently not!22:36
poolieoh, maybe to protect it against being modified later in the test?22:36
lifelessso, I argued for a version that can permit deletes etc22:37
lifelessjam and vila felt it was yagni; so you should consider this a useful tool but not the last word22:37
spivlifeless: I think that would be potentially nice too22:38
spivlifeless: but I also agree that it might be a yagni22:38
lifelesssure, I mean it was not needed at the time22:39
spivpoolie: if it's just to protect against later modifications (and that is all I can see it being useful for), I don't think it's terribly clear or convenient.22:39
jamspiv: there are times when you want to set up an attribute to override, say in setUp()22:39
jambut you don't know the actual value22:39
jamuntil the test itself runs22:39
jamwe had specific use cases22:40
spivjam: self.overrideAttr(obj, 'attr') isn't much easier or clearer than self.addCleanup(setattr, obj, 'attr', obj.attr)22:40
spivjam: I'll grant that it is a bit easier, but to me it's much less clear.22:40
jamspiv: you typed "attr" and "obj" twice, which gets ugly when it wraps over several lines22:40
spiv(And the docstring fails to explain this aspect clearly too)22:41
jamsince the attributes are often not "attr" but "thisIsMyAttributeWhichYouAreOverriding"22:41
spivSure.22:41
spivI'm not arguing against having a helper for this22:41
jamspiv: so once you understand what "overrideAttr" is, it turns into significantly clearer code (at least as we found when applying it to the test suite)22:42
spivI'm just arguing that overrideAttr as it is now is not clear enough to be that helper.22:42
spivI'd prefer a separate "self.preserveAttr" or something22:42
jamspiv: I think it falls into bikeshedding on name22:42
jametc22:42
spivAnd require overrideAttr to have 3 args.22:43
spivIt's definitely a bit bikesheddy :)22:43
jamspiv: I can see your point, we weren't 100% happy with the name, patches welcome :)22:43
spivBut it's not the *name* I mind, precisely.22:43
pooliei'll mention it in the guide and add a doc about that22:43
poolieit should mention monkeys so you can grep for them22:44
lifelessjelmer: please 'merge + commit', not 'push' when landing things in trunks.22:48
lifelessjelmer: or series branches.22:48
jelmerlifeless: ok22:49
jelmerlifeless, oh, you're getting spammed with mainline commits?22:49
lifelessjelmer: I love having the detail available, but each trunk commit should be tests passing, intact, correct copyright etc.22:49
lifelessjelmer: the spam I don't mind; the left-hand-ancestry having unapproved tree-states I do mind.22:49
jelmerlifeless, should I push --overwrite ?22:50
lifelessjelmer: no22:50
lifelessjelmer: I've done two merges, regrouping trunk appropriately.22:50
jelmerk22:50
lifelesslossless, you can just pull22:50
pooliejam, i'd almost say we should roll back to the last version that did work correctly22:51
lifelessjelmer: I keep a checkout of trunk, for the things I'm landing stuff in, so I can do the merge + commit very easily; I encourage you to do the same.22:52
jamwow, trying to build the package branch for gnome-panel has so far downloaded 700MB of data22:59
igcmorning23:01
BrianBatchelderI'm seeing a lot of "No handlers could be found for logger "bzr"" in my apache error log.  I'm running the smart server.  Question - where is the server log supposed to be?  In the root of the apache user?  There is a log there, and it updates fine if I run a bzr command as the apache user, but doesn't seem to update when the smart server is used.  Thanks.23:04
spivBrianBatchelder: I guess your apache<->bzr glue isn't configuring bzr's builtin logging23:06
BrianBatchelderI think I'm using the standard setup for bzr+http.23:07
mkanatspiv: Yeah, I see that error too, actually, on Mozilla's bzr server, when doing checkouts over SSH.23:07
mkanat(Actually, when doing any command over SSH.)23:07
BrianBatchelderI wonder if there is something missing from the "bzr-smart.py" script.  It's pretty basic.23:08
spivBrianBatchelder: you have a file somewhere that does "from bzrlib.transport.http import wsgi", and then something like "wsgi.make_app(..., enable_logging=True)"?23:08
spivBrianBatchelder: pastebin your bzr-smart.py script?23:09
BrianBatchelderWait, not "enable_logging=True"23:09
BrianBatchelderLet me look at bzrlib.transport.http.wsgi23:09
spivSee the examples in http://doc.bazaar.canonical.com/bzr.2.1/en/user-guide/http_smart_server.html23:09
BrianBatchelderAh, I see.  Don't have either of those last two lines.  Perhaps they came into existence in a bzr rev beyond the one we first installed.23:11
lifelessjam: vfs fetching?23:12
jamlifeless: downloading orig.tar.gz for every version that uses it23:13
jamregardless if it was downloaded before23:13
lifelesshah. oops.23:13
spivBrianBatchelder: yeah, could be23:13
jamlifeless: https://bugs.edge.launchpad.net/udd/+bug/52412323:14
ubottuUbuntu bug 524123 in udd "import_package re-downloads files multiple times" [Undecided,New]23:14
jamComments on it would be appreciated23:14
jamin case I misunderstand something23:14
jamthe full url is different23:14
jambecause it is based on a different upstream import23:14
lifelesshmm23:14
jambut the filename is the same each time23:14
jamsorry, not upstream23:14
lifelessso the orig tarball can differ between ubuntu and debian23:14
lifelessbut not within ubuntu or within debian23:15
jambut "...ubuntu1" "...ubuntu2" etc23:15
jamanyway, time for me to go23:15
lifelessa cache by hash would be safe23:15
BrianBatchelderspiv: It seems to default to "True", and yet, sill no logging.  Or, at least, VERY sparse logging.  Or I can't find the right log.23:15
BrianBatchelderI'm wondering if I need to set BZR_LOG in my apache environment.23:26
Kamping_Kaiserare subvertpy questions on or off topic in here?23:29
spivBrianBatchelder: yeah, you may need to set BZR_LOG23:32
spivKamping_Kaiser: it's probably more on-topic here than anywhere else23:32
poolieigc, how are you getting the 'latest blogs' onto the page? manually?23:32
spivBrianBatchelder: but the 'no handlers' warning suggests the log file isn't being opened successfully, IIRC23:32
spivBrianBatchelder: which bzr version?23:33
BrianBatchelder1.1723:33
igcpoolie: yes. I'm looking into generating those links as we speak23:33
spivBrianBatchelder: Ah ok.  I'd try 2.1; I think there's been some improvements to the way bzr reports problems with logging.23:33
spivBrianBatchelder: so, 2.1 probably won't fix the problem, but IIRC it will give a more informative warning23:34
BrianBatchelderI'm planning on doing the upgrade at some point, but I'll need to stage it with the users.  Thanks for the info23:35
spivBrianBatchelder: I expect bzr is trying to open ~/.bzr.log, which might not be something that works depending on how your apache runs23:35
spivBrianBatchelder: but overriding BZR_LOG in your environment should fix that23:35
Kamping_Kaiserspiv: i just noticed that despite the subvertpy packaging depending on libsvn >= 1.6, its still trying to build with 1.5, so i guess my question is a packaging bug for jelmer rather thena  real question23:35
spivBrianBatchelder: another option could be to pass enable_logging=False in your script, and then calling the logging setup stuff directly the way you need it23:36
BrianBatchelderIf I login as the apache user, bzr logs just fine to "/var/www/.bzr.log".  But logging in is certainly different than loading apache.23:36
BrianBatchelderspiv: I'll take a look at the 1.17 code and see if I can do that.23:36
spivBrianBatchelder: I'd suggest just reading the source to wsgi.make_app and bzrlib/trace.py if you do that23:36
BrianBatchelderThat's where I've been looking.23:37
spivBrianBatchelder: sorry I don't remember enough details off the top of my head to be more helpful :/23:37
BrianBatchelderThis is off the top of your head?  I'm impressed!23:37
jelmerKamping_Kaiser: ?23:41
jelmerKamping_Kaiser: subvertpy can build with svn >= 1.423:41
jelmerKamping_Kaiser, in your case it probably built against 1.623:41
jelmerbut there's no dependencies other than >= 1.4 in the packaging23:41
Kamping_Kaiserjelmer: odd. its bombing out. http://paste.debian.net/60441/ "NotImplementedError: Subversion 1.5 does not provide svn_string_from_stream().23:42
Kamping_Kaiser"23:42
Kamping_Kaiserjelmer: attempting to build the package from testing on stable23:42
spivBrianBatchelder: well, I wrote the bzr http smart server code, but it's been a while :)23:44
BrianBatchelderspiv: oh, man, glad I didn't flame the smart server code!  ;-)23:45
jelmerKamping_Kaiser, oh23:46
jelmerKamping_Kaiser, we should probably disable that test23:47
spivBrianBatchelder: :)23:48
spivBrianBatchelder: don't worry, I already know that its logging is crummy :/23:49
Kamping_Kaiserjelmer: how would i do that on the package, simply delete the test file?23:49
jelmerKamping_Kaiser: just the test itself23:50
Kamping_Kaiserjelmer: removing the test makes it build, thanks :)23:56
Kamping_Kaiserhm, python 2.423:59

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