/srv/irclogs.ubuntu.com/2009/09/09/#bzr.txt

emmajanepoolie, ping?00:08
poolieemmajane: hi00:10
poolienice to see you00:10
emmajanepoolie, and you as well. :)00:10
poolieare you in the UK and up really late?00:10
emmajanehave you got a few minutse?00:10
pooliesure00:11
emmajaneIndeed. It's gone midnight here.00:11
pooliejust give me 2m here first though.. biab00:11
emmajanenp00:11
igcmorning00:25
KeBugCheckExI need a better progress info for bzr branch00:41
KeBugCheckExEvent if I need to develop a plugin or use the bzr API00:41
KeBugCheckExbzr checkout -v is not enough, it's sens stalled for long time00:41
KeBugCheckExAnyone knows if it's possible?00:42
pooliespiv, hi, i have a call with francis in a bit00:57
poolieKeBugCheckEx: is this as a user of the command line or from your own program (ie at the api level)00:57
KeBugCheckExpoolie: I'll do it at the api level00:59
poolieKeBugCheckEx: so there are two layers: events fired from the core code to the uifactory00:59
poolieyou can hook into that if you're eg using bzrlib in a gui or daemon00:59
=== zirpu2 is now known as zirpu
poolieand then if the core code is not sending enough progress events, i guess file a ubg01:00
poolietry using the breaking debugger (Ctrl-\ or Ctrl-Break) to see where it's spending time and not repotring it01:00
pooliefor curiousity, what is the app you're doing this from, and on what platform?01:00
KeBugCheckExpoolie: I downloaded Bzr Explorer for Windows, it shows the same progress the bzr command does01:00
KeBugCheckExlots of time in "Fetching revisions:Inserting stream"01:01
poolienice nick btw01:02
KeBugCheckExI'm testing on Windows XP and Ubuntu Server, bzr 1.1701:02
pooliethis is over the network?01:02
KeBugCheckExtesting with bzr branch -v http://bazaar-vcs.org/bzr/bzr.dev bzr.dev01:02
poolieKeBugCheckEx: on the command line you should get a network progress indicator?01:04
KeBugCheckExMaybe it's to early to ask questions since I didn't study the api enough, but I didn't find any tool with a decent progress report01:04
poolieit may be that bzr explorer doesn't expose that01:04
KeBugCheckExIt shows the progress, but looks like it doesn't know how much is left to be downloaded01:04
poolielike this: http://www.ubuntu-pics.de/bild/24166/screenshot_20090909_09_37_17_rjPOI4.png01:05
poolieblah01:05
poolienot that01:05
pooliethis: [#########|          ]      2KB     0KB/s | Fetching revisions:Inserting stream01:05
poolieshowing the network rate01:05
KeBugCheckExbzr and bzr-explorer just show the bytes dowloaded but not how much there's left01:05
KeBugCheckExthe tool I'll develop will need to show how much MBs is left01:06
poolieok01:06
pooliewhat tool is that?01:06
KeBugCheckExI'll create a tool for non technical people based on bzr01:06
KeBugCheckExopen source of course :0(01:07
KeBugCheckEx:-)01:07
KeBugCheckExbut the repositories will be big01:07
KeBugCheckExmaybe gigas01:07
poolieok01:07
KeBugCheckExit's very important to show the user how much time is left01:07
poolieour current setup is to have the server stream out data as it works through history01:08
poolieso it doesn't necessarily know up front how much data it will send01:08
pooliehowever, we could probably give at least some estimate01:08
poolieof how many more revisions need to be copied01:08
poolieif you look at eg 'bzr check' it does i think show how many objects will be checked01:08
poolieso you get proportional overall progress01:08
KeBugCheckExlet me try the checkout...01:09
poolieif you hook in at that level, when the core is updated, your ui will be told01:09
KeBugCheckExbzr checkout -v --lightweight looks better01:12
KeBugCheckExBuild phase:Adding file contents 533/110501:12
KeBugCheckExI'm assuming 1105 is the number of files to download01:13
KeBugCheckExcan I copy a branch from a machine to another? copy the files?01:13
KeBugCheckExcreating a branch in /tmp, zipping and then sending it via http is a viable alternative for me01:14
poolieKeBugCheckEx: yes, that will work01:31
poolie1105 is the number of files in the working copy01:31
poolieyou should get that output from any command that creates a tree01:31
pooliespiv, hello?01:31
KeBugCheckExSo, if I ensure nobody is changing the branch I can copy the branch files, right?01:32
poolieright01:32
KeBugCheckExEvent form Linux to Windows?01:32
poolieyes01:32
KeBugCheckEx*Even*01:32
KeBugCheckExnice!01:33
pooliemake sure it's a standalone branch, ie includes the repository data too01:33
KeBugCheckExIf someout changes the branch after this I only need to merge01:33
KeBugCheckExsomeone01:34
KeBugCheckExok, I thing I can start something with this info. Thanks!01:34
KeBugCheckExgod, I better go sleep or take some typing lessons...01:35
spivpoolie: good morning.01:52
pooliehi spiv02:04
pooliespiv, did your patch land?02:04
spivpoolie: no, a surprising number of tests try to commit invalid revisions.02:06
spivI just fixed a test in per_workingtree, for example, which I wasn't expecting to be affected.02:06
spivMainly it's been that a lot of tests that create revisions directly, without creating the texts in those revisions.02:08
spivAnd all 2a revisions have a root.02:08
spivOk, looks like per_workingtree is now passing.02:09
spivAlso, we have lots of tests that do: "start_write_group(); try: ...; except: abort_write_group(); else: commit_write_group()"02:10
poolie:/02:10
spivBut actually when commit_write_group fails we still need to do abort_write_group(), otherwise the inevitable unlock will raise an error from the cleanups and hide the real failure.02:10
pooliewhat's the problem with that one?02:10
spivSo more correct is to put the commit_write_group inside the try, I think.02:11
spivBut I wonder if commit_write_group shouldn't actually be "commit_or_else_abort_write_group".02:11
lifelessspiv: commit can lead to suspend, no?02:12
lifelessspiv: not that I'm here today.02:12
* lifeless goes :)02:12
spivBecause I don't think we ever try to recover if commit_write_group fails, so the current API is a bit suboptimal.02:13
spivlifeless: actually, no02:13
spivlifeless: we detect that case before trying commit02:13
spivBut anyway by far the most common case is "I want to either commit, or fail", but the current API makes that tedious.02:14
lifelessspiv: I'd favour a helper rather than a larger contract for commit02:15
spivSure, I agree it's useful to have the smaller operation available.02:16
spivWe're just not doing a good job of catering to the common case, atm.02:16
poolieyeah, copy & pasting this seems bad02:17
poolieon phone02:17
* igc lunch04:02
spivpoolie: my patch landed.04:35
jammwhudson: I'm sort of around, though not for long04:56
mwhudsonjam: no worries04:57
mwhudsonjam: i commented on a bzr/launchpad-code bug, it would be nice if you replied at some point04:57
jammwhudson: response sent05:02
pooliespiv, woo, way to go05:08
pooliespiv, did you get another review? it sounded like there were nontrivial changes there05:10
mwhudsonjam: thanks05:12
mwhudsonspiv: the fix for https://bugs.edge.launchpad.net/launchpad-code/+bug/424136 should be on staging by now, want to test it?05:29
ubottuUbuntu bug 424136 in launchpad-code "Cannot upgrade stacked branches from 1.9 to 2a on Launchpad" [High,Fix committed]05:29
spivmwhudson: hmm, it should be straightforward to test I guess.05:54
spivmake a 1.9 trunk branch; make a 1.9 branch stacked on trunk; upgrade trunk to 2a; upgrade stacked to 2a.05:54
poolieigc, it's sphinx 0.6 you need?06:12
spivmwhudson: hmm06:28
spivmwhudson: when I try to upgrade my test trunk on staging I get bzr: ERROR: bzrlib.errors.ErrorFromSmartServer: Error received from smart server: ('error', 'mismatched lock context and write group. None, <bzrlib.transactions.WriteTransaction object at 0x3111ed0>')06:29
spivmwhudson: oh, actually, nevermind06:29
mwhudson!06:29
spivThat's probably just because I'm trying to push from a 1.9 local branch to a 2a remote, but the server is too old to support that sanely.06:30
spivOh, hmm, 1.18rc106:30
spivOh, right, but it doesn't support the new insert_stream verb, and yeah.06:30
spivKnown issue, I think.06:31
spivmwhudson: (p.s. please upgrade lp to 2.0rc2 ;)06:32
mwhudsontests fail currently06:36
* spiv waits for https://code.staging.launchpad.net/~spiv/+junk/test-stacked to find out if 424136 is fixed.06:40
spivmwhudson: looks good, thanks!06:42
mwhudsonspiv: yay06:43
igcpoolie: yes06:46
poolieigc, that's only in karmic06:47
pooliethat kind of worries me06:47
pooliedependencies are a pain in the butt06:47
pooliedespite all the work that's gone into modularity06:47
igcpoolie: the best result comes from sphinx 0.606:48
igcpoolie: I suspect it still works on earlier versions but I'd need to test06:48
poolieoh ok06:48
igcpoolie: it shouldn't be hard for us to support earlier sphinx versions06:49
igcpoolie: but we won't get the blue theming for example pre 0.6 IIUIC06:49
pooliei'm just worried about adding it at all, given the kerfuffle with putting it on orcadas06:49
igcpoolie: well I felt our *default* docs ought to look the best they can - see http://sphinx.pocoo.org/theming.html06:50
igcpoolie: less pretty colours in the docs for a given distro concern me much less, of course06:51
igcby default, I meant our online ones06:51
poolieessentially i'm not feeling this is a good risk/reward tradeoff to land at this time06:52
igc:-(06:53
pooliewhat do you think?06:53
igcwell, I'm not objective it06:53
poolieto me the main thing is to field it on the public site, and we can do that without putting it in the 2.0 tarball06:53
pooliei don't want to frustrate you, but i also don't want packaging to be held up06:54
poolieso06:54
igcI've put a lot of energy into getting good pdf and chm docs ready for the win and os x installers06:54
pooliehm06:54
pooliethey are really popular06:54
pooliei guess if this doesn't go in, we won't get chm etc?06:54
igcright06:54
poolieor we won't get it split out by language, so it looks broken?06:55
poolieor just not at all?06:55
igcand searching in html will suck as well06:55
igcwithout this patch, we have no chm at all and no/very-little pdf at all06:56
igcpoolie: so the blocker is dependency on sphinx 0.606:56
igcif it built with sphinx 0.4 or 0.5, that would be ok?06:57
pooliehow about if i try this branch on jaunty06:57
pooliethat will give us some data06:57
igcsounds good06:57
poolieso sphinx is reasonably straightforward to install on windows?06:57
poolieand os x?06:57
igcI'm on jaunty as well but will sphinx installed via easy-install06:57
igcpoolie: easy to install on Windows - I did that to build the chm's06:58
igcpoolie: on Windows, install python, install east_install via an installer and then use easy_install to grab sphinx06:58
pooliespiv, tell me about https://code.edge.launchpad.net/~spiv/bzr/set-tags-bytes-bug-2.0/+merge/1077807:00
poolieit seems like that should land to 2.0?07:00
pooliedid it bounce?07:01
spivpoolie: hmm!07:01
pooliealso, do you have an opinion about changing to sphinx for documentation generation for 2.0?07:02
spivI'm also wary of making life harder for packagers just before 2.007:03
spivBut I don't really know how much of a problem sphinx would be for packagers.07:03
vilahi all07:06
* bialix waves at vila07:06
spivpoolie: I don't know any reason why that set-tags-bytes-bug-2.0 branch hasn't merged yet.07:07
vilahmm, regarding docs, it sounds a lot like we want to split the docs *out* of the bzr package like we do for installers,07:07
* vila waves back 07:07
spivI've just merged in latest lp:bzr/2.0 to make sure the NEWS entry is in the right spot.07:07
spivOh, perhaps that's why, the 2a transition.07:07
* spiv pushes to a new lp branch to workaround 42413607:08
vilahmm, still regarding docs, without looking at the code, ISTM that there should a basic way to produce the html docs from the source package, then, any installer branch can add its own way of generating specially targeted docs, chm, pdf, shiny web site, etc07:10
vilathat way we don't add dependencies on the source package.07:10
vilapoolie: testing on jaunty is hardly relevant, try, say, OSX, Fedora and FreeBSD. *Then* you'll get a batter taste of the dependency issue :-D07:11
spivpoolie: lp:~spiv/bzr/set-tags-bytes-bug-2.0-again is up-to-date, and not broken by the 1.9->2a transition.07:11
spivpoolie: I'm happy to fire that at PQM unless you'd rather have PQM to yourself for making a release?07:12
vilaDid I say jaunty is hardy relevant ? I should have, that's the current LTS07:12
pooliespiv, yes please, send it07:17
spivpoolie: ok07:18
poolievila, you don't need to convince me, i'm the one that has doubts about it07:26
vila:)07:26
* fullermd waits for vila to question how well the docs show up in Mosaic :p07:27
poolievila, see pm07:31
rockstareasy_install fail - error: Can't download http://launchpad.net/bzr/2.0/2.0rc1/+download/bzr-2.0rc1.tar.gz: 404 Not Found07:55
bialixrockstar: 2.0rc1 had critical bug inside and was withdrawn07:59
igcpoolie: call?08:19
vilafullermd: the interesting question, IMHO, is: can we still setup, on today's hardware, an OS where we can install Mosaic ? :-D08:20
Lo-lan-do*Still* discussing Mosaic?08:21
vilaLo-lan-do: welcome to VCS channel where you can have branched discussions that last forever !08:22
Lo-lan-do:-)08:22
poolieigc, hi08:24
pooliesure, call08:24
spivpoolie: the _set_tags_bytes fix landed, btw.08:32
poolieyay08:32
spivFirst time, unlike the last patch :)08:32
vilabug #42413608:33
ubottuLaunchpad bug 424136 in launchpad-code "Cannot upgrade stacked branches from 1.9 to 2a on Launchpad" [High,Fix committed] https://launchpad.net/bugs/42413608:33
vilahmm, spiv, can you tell me more about that bug ? I successfully upgraded a couple of branches by doing: 'bzr upgrade bzr+ssh://lpnet' ignore the error, 'bzr reconfigure --stacked-on bzr+ssh://lp,net' pesting because I couldn't use lp url in the later, but otherwise, I got usable branches... I didn't check the public ones though08:36
spivvila: it's the public ones that are the problem08:40
spivvila: also, look at the branch pages for the branches you've upgraded08:40
spivvila: oh, and beware the confounding bug that if you don't change the tip revision, lp won't try update the mirror AFAICT, even if the format has changed.08:41
vilaright, I upgraded branch to push, so there ;)08:42
spivvila: for an example of an affected branch, see https://code.edge.launchpad.net/~spiv/bzr/insert-stream-check-chk-root08:43
spivvila: https://code.edge.launchpad.net/~vila/bzr/test-isolation appears to be a victim of the same bug, for instance08:43
vilaspiv: right, I think that's where the 'bzr reconfigure --stacked-on' workaround help08:47
vilaspiv: do you mind if I try there or do you want to keep that as evidence ?08:47
spivvila: no, go ahead.08:47
spivvila: I don't care much, as mwhudson has fixed the bug anyway (although it's only rolled out on staging so far)08:48
vilaspiv: ok, thanks for the feeback !08:48
AfCWhat would I have to do to info.py in bzr-git to make it work with bzr 2.0-rc1?08:51
bialixpoolie: still here?09:23
bialixhmmm, every new repo/branch format changed the way how locking works09:24
bialixevery time we have to accommodate qbzr internals09:25
bialixdoes 2a format is radically different from 1.9 re locking?09:25
vilabialix: I don't think the design changed, but the usage may raise lock errors at different places/times...09:26
* igc dinner09:27
vila...if not used correctly (bzr itself had bugs there)09:27
bialixBug 42668809:27
ubottuLaunchpad bug 426688 in qbzr "ObjectNotLocked opening diff from annotate on 2a branch." [Critical,Confirmed] https://launchpad.net/bugs/42668809:27
bialixvila: ^09:27
vilaexactly09:27
pooliebialix: it's not very different with regard to locking09:27
bialixperhaps there should be some guidelines for bzrlib users09:28
bialixI don't understand why it worked fine before and now blow up09:28
pooliei wonder if this relates to john's fix to fix shelve or something similar09:28
vilabialix: sometimes locks were taken abusively and are not anymore, that leads to bugs like above09:28
bialixshelev fix is lifeless work09:29
pooliemy mistake09:29
vilapoolie, bialix: It may very well be related to lifeless fix09:29
bialixbzr 1.1709:29
bialixvila, poolie: ^09:29
bialixit's not related09:29
bialixto lifelees fix09:29
vilaok, still, it certainly mean you need to take a read lock where it was taken by bzrlib before (for wrong reasons AIUI)09:30
pooliei wish people would put useful reprs on09:30
pooliedoes locking a wt implicitly lock the branch and repo?09:31
bialixmy question is more generic09:32
vila'why it worked fine before and now blow up' ?09:34
pooliesorry, what's the question?09:34
vilaThat's what bugs are about generally...09:34
vilabugs that appear to make things work being the worse kind !09:34
poolievila :-) :-) nice mail09:37
vilapoolie: thanks :)09:37
bialixvila: no, why it blows up every time new format is appears09:47
vilabialix: same answer: new format, new bugs, now, giving the backtrace, it starts with a call to id2path() which is an important change in 2a (inventories), bugs there are not that surprising09:49
bialixheh09:50
* bialix not planned to switch to new format because of all this stuff09:51
vilait's a bit surprising that it ends up in a groupcompress index though09:51
pooliemm09:51
pooliei'd say this is a latent bug in either qbzr or elsewhere though09:51
* bialix thinks 1.18.1 is the right thing to have as latest stable pre-2a default format09:51
pooliethat it was getting away with it before09:51
vilabialix: that's still a bug in qbzr IMHO09:51
bialixvila: yes09:51
bialixI'm really hope 1.18 can be a long term supported pre-2a release as poolie want for post 2a development09:53
bialixthere is too much dependencies between various tools09:53
pooliebialix: how about if we add an option to 2.0 to set the default format09:53
poolieand then support 2.0?09:53
bialixmaybe other people can jump right into 2a -- I can't09:53
vilabialix: even for new projects ?09:53
bialixso when jam wrote he don't think 1.18.1 make sense -- it hurts09:54
pooliethat's probably the last thing i should do today09:54
bialixvila: I don't have completelly new projects at work09:54
vilaI don't follow your reasoning, 2a becomes the new default format, but previous formats are still supported...09:54
bialix2a is default when you start working09:54
vilanobody forces you to *upgrade*09:55
bialixbzr init-repo will create repo in 2a, right?09:55
bialixthis will be implicit upgrade09:55
bialixand then I can't push to my central repo09:55
vilayes, you do that frequently ?09:55
bialixbecause of incompatible rich-roots, pfffs!09:55
bialixyes, I'm do new local shared repos frequently09:55
bialixfor each customer we support, when new features need to be implemented09:56
vilayou can swallow the incompatible rich-root by upgrading to 1.9-rich-root or 1.14-rich-root09:56
bialix1.9-rich-root is slower than pack-0.92, you know?09:56
vilabut 1.14 should be faster no >09:57
vilabut 1.14 should be faster no ?09:57
bialix1.14 is base don 1.9, no?09:57
bialix1.14 is just new wt format?09:57
vilaAIUI it has the faster indexes09:57
poolieso09:57
poolieif we made it read /etc/bazaar.conf09:58
poolieand there had default_format = 1.909:58
pooliethen you'd get the same behaviour but from the different code base09:58
poolieor rather the same codebase09:58
bialixif you will allow 0.92 as well -- then great09:58
vila0.92 *is* still supported09:58
bialixI mean allow in bazaar.conf09:59
pooliesure09:59
vilait's called --pack-0.92, ha, right,09:59
pooliebialix: want to choose a name for this release? :)09:59
vilaNein-Nein-Nein :)10:00
bialixlol10:00
bialixlast from Mogikan?10:00
pooliethat's the name?10:02
poolieit's a place?10:02
bialixwait a sec10:02
bialixThe Last of the Mohicans10:03
bialixJames Fenimore Cooper10:03
pooliebecause it's the last post 2.0?10:03
bialixsomething like that10:04
pooliei wonder if Disney will trouble us?10:04
bialixit makes sense for those who read/saw the movie10:04
bialixI feel the joke10:04
bialixnever mind me, I'm thinking in Russian10:04
bialixit's famous quote in our culture10:05
pooliehm10:06
pooliei think there is a cultural difference10:07
pooliehow about if i use the way you originally spelled it?10:07
bialixlol10:07
bialixpoolie: I realy had to shut up10:08
poolieanyhow, i want to get it out tonight10:08
bialixvila's variant is funny10:08
poolieoh, it is too10:08
bialixI hope spiv landed that patch for tags10:08
poolieto 2.0 yes10:08
bialixI've backported it to 1.18.110:08
poolieoh, he was going to land your backport?10:09
bialixhe seems to land it10:09
bialixbut to wrong branch10:09
bialixhttps://code.launchpad.net/~bialix/bzr/bzr-1.18-set-tags-bytes-bug/+merge/1081110:10
vilapoolie: my proposal will not be fun at all if you don't release today :)10:10
poolievila: genau!10:10
bialixvila: oh10:10
bialixyou mean 9-9-910:10
vilabialix: yup, double meaning :-)10:11
bialixI've recall Hitler "nine" from recent movie10:11
vilabialix: Infurious Bestards  ?10:11
bialixyep10:11
bialixsaw the trailer10:11
bialixpoolie: is it possible to land https://code.launchpad.net/~bialix/bzr/bzr-1.18-set-tags-bytes-bug to 1.18.1?10:12
vilaWatch it undubbed (sp?), Brad Pitt accentS are hilarious !10:12
poolieyes10:12
bialixspiv has not landed it10:12
pooliei'll merge it10:12
bialixvila: ok, will wait for dvd with English sound and subtitles10:12
pooliein fact i am merging it10:12
luksvila: especially the italian one :)10:12
vilaluks: indeed !10:13
bialixhi luks10:13
lukshey10:13
luksbialix: there is more german and french than english10:14
bialixwell, in Ukraine I believe our brave translators cut out german and french and leave only ukrainian10:17
luksheh10:17
bialixso original DVD sound is cool for listen10:17
bialixyep10:17
pooliebialix, was there a bug for that change?10:19
pooliei think there was10:19
bialixyes, it was10:19
bialixBug 418931?10:20
ubottuLaunchpad bug 418931 in bzr "AssertionError: _remember_remote_is_before((1, 18)) called, but _remember_remote_is_before((1, 15)) was called previously" [High,Fix committed] https://launchpad.net/bugs/41893110:20
bialixyes, that bug10:20
bialixpoolie: ^10:21
poolielp is a bit down10:23
vilapoolie: slow, but not down10:25
poolieok, i'm sending 1.18.1 to pqm10:28
poolieok that's it for me10:32
bialixvila: do you want long answer in e-mail about setup.py?10:56
bialixI think you can look at qbzr's setup.py and its extras/10:56
bialixto get some impression10:56
vilaoooh, so you meant, 'that' already what qbzr does' not 'we don't need that stuff' ?10:58
bialixI've lost in ' signs10:59
vilasorry, reading /extras/*10:59
vilabialix: what qbzr did is exactly what bzr needs to do there, and igc should really look at build_docs for example, it sounds like a far easier way to make sphynx a soft dependency that trying to do that from the Makefile11:00
vilabialix: now, I don't really know hoe bzr setup.py and plugins setup.py can collaborate, but I'm sure we'll find :)11:01
vilas/hoe/how/11:01
vilabialix: Do we agree ?11:02
vilabialix: still there ?11:05
bialixvila: ping, I'm back11:14
vilaha ok, so ^11:14
bialix[13:00]<vila>bialix: what qbzr did is exactly what bzr needs to do there, and igc should really look at build_docs for example, it sounds like a far easier way to make sphynx a soft dependency that trying to do that from the Makefile11:15
bialixyes, I agree here11:15
bialix[13:01]<vila>bialix: now, I don't really know hoe bzr setup.py and plugins setup.py can collaborate, but I'm sure we'll find :)11:15
bialix^ I think all setup.py should be importable11:15
bialixi.e. call to setup() function should be guarded with if __name__ == '__main__' stuff11:16
vilaooooh, so we can use 'from  bzrlib.plugin.qbzr import setup as qsetup' for example and collect anything we need ?11:19
vilabialix: sounds like a very good plan11:19
vilabialix: so may be you should point to qbzr/extras stuff in that mail discussion so that we converge11:29
bialix.ьу иид11:37
* bialix bbl11:37
bialixvila: ping12:27
bialix[13:19]<vila>ooooh, so we can use 'from bzrlib.plugin.qbzr import setup as qsetup' for example and collect anything we need ?12:27
bialix^ yes12:27
=== mrevell is now known as mrevell-lunch
lvhhello13:38
lvhI'm getting AttributeError: 'module' object has no attribute 'ProgressBarStack' when inspecting a file with loggerhead13:38
lvhloggerhead 1.10-1 from debian testing, bzr1.17 from the same13:39
CameronPHi Everyone13:43
lvhjust upgraded to 1.18, problem persists13:46
=== mrevell-lunch is now known as mrevell
alex-weejsometimes i like to commit just to save a checkpoint even if i don't intend the commit to be permanent (i.e. a mess of files left over from some aborted experiment)13:54
alex-weej*e.g.!13:54
alex-weejis there a way i can re-organise such commits at a later date?13:54
alex-weejand what are the implications on the sequential revision numbers? i think git sidesteps the problem by using hashes13:55
AfCalex-weej: the revnos are just aliases (and are unique to any branch)14:00
AfCs/unique/local/14:00
AfCalex-weej: speaking personally14:01
AfCwhen I have to do what you're describing14:01
alex-weejhey AfC :)14:01
AfCI make a commit with a log message like "CHECKPOINT" and it's pretty obvious that the next morning I'll be uncommitting that.14:01
AfCalex-weej: yo14:01
alex-weejlol yeah14:01
spivlvh: hmm, sounds like your loggerhead is trying to use an old bzrlib API.14:01
AfCalex-weej: others use `bzr shelve` for this sort of thing14:01
AfCalex-weej: I use `bzr commit -m "CHECKPOINT"` ... and then switch away to another branch14:02
alex-weejok i got another question then, when i want to merge changes from a workmate's branch14:02
AfCalex-weej: that all said,14:02
AfCalex-weej: I should observe that there's a slight cultural difference 'round here14:02
AfCalex-weej: in that most people would probably encourage you just to commit with a half decent attempt at some vaguely almost useful sentence as a log message,14:03
AfCalex-weej: and then just carry on from there (ie, no uncommit later)14:03
alex-weejhm. a lot of the time i just want a kind of undo history when i am doing some dirty development. i should probably hack better, though, really.14:03
AfCalex-weej: while there is a rebase capability lying around, most of us tend not to use it. Just merge, and carry on. It's not lkml14:03
AfCalex-weej: (ie, I review patches at merge time. I really do encourage people contributing to me to write good log messages so the annotation is good,14:04
Lo-lan-doI do rebase, but not to change history.14:04
AfCalex-weej: but on the other hand, if people are doing small to micro commits then, well, the usefulness of individual log messages starts to go down)14:05
Lo-lan-doI use it to port local branches to an SVN trunk, so I need to linearise.14:05
AfCLo-lan-do: perhaps, but if *anyone* else has access to your previous branch, well, then you're recreating history.14:05
AfCif it's just you and not published, then {shrug}14:05
Lo-lan-doThey don't, that's thte point :-)14:05
AfC[I don't push to subversion any more, and I publish everything including work-in-progress, so...14:06
AfCI have to assume someone else might have a revision I've made]14:06
alex-weejwhen i want to merge changes from a workmate's branch, i look at it and see that i want to merge e.g. up to revision 17, but in the time it takes me to type bzr merge -r 17 /path/to/branch, revision 17 may have been changed! i tried to use one of the revision IDs with some kind of number and a hash, but "merge" didn't accept it.14:06
Lo-lan-doWell, technically the clients for whom I developed the stuff could see it, but in practice they don't even look.14:06
AfCalex-weej: um14:06
jelmer__moin AfC, Lo-lan-do14:06
AfCalex-weej: 17 won't have changed14:06
AfC... oh14:06
AfCalex-weej: so -r takes all kinds of things14:07
AfC-r 17 is shorthand for -r revno:1714:07
AfCfrom there we can consider14:07
spivalex-weej: "bzr merge -r revid:FOO" is how you use the long identifier for a revision.14:07
AfC-r tag:v4.0.714:07
lvhspiv: So, update loggerhead?14:07
spivalex-weej: see also "bzr help revisionspec"14:07
alex-weejahhhh14:07
spivlvh: at a guess, yeah.14:07
AfCbut what you want is what spiv just saidm14:07
alex-weejAfC, spiv, thanks :) will use revid14:07
alex-weeji love bzr!!14:07
Lo-lan-doI'd love to get away from SVN too, but I still have to contend with git users, so until bzr and git can cooperate fully we keep SVN as a pivot.14:07
AfC-r revid:andrew@operationaldynamics.com-20090909023536-f0n026ookg9j64vr14:08
Lo-lan-do(Which is why I'm a pain in jelmer's neck from time to time :-)14:08
spivlvh: https://launchpad.net/loggerhead mentions a 1.17 release, so my guess is 1.10 is pretty out of date.14:08
spivalex-weej: also,14:08
spivalex-weej: you could just do "bzr merge /path/to/branch", then review then changes with "bzr diff", and then either revert or commit.14:08
AfCalex-weej: while revnos are specific [local] to a given (and each) branch, they are somewhat usable on (say) a published 'mainline' that everyone else is merging in from14:08
AfCalex-weej: but yes, be aware that there in (say) my ~/src/java-gnome/ directory, I have many many branches14:09
alex-weejspiv: yeah good point, i forgot it wasn't an automatic commit14:09
AfCwith revno 646 in them.14:09
spivalex-weej: then if the other branch changes since you did the merge, it doesn't matter; those changes won't affect what you commit.14:09
spivalex-weej: even if it was an automatic commit, there's always uncommit ;)14:09
AfC(which could refer to different things if these various branches all forked off of mainline at, say, revno 640)14:09
AfCalex-weej: what you and I call cherry picking is [still] a bit funny around here. If you find yourself fighting it, give me a shout and I'll do my best to talk you through the possibilities. I've been fighting it for 3+ years now14:10
alex-weeji thought it was just merge -r 19..20 or something?14:11
AfCalex-weej: yes... but revisions are tree states, not diffs14:12
alex-weejhmm14:12
AfCbut in several permutations you can pull in a patch without pulling in / merging "revisions" which, as far as I'm concerned == loss of history. Which I continue to be very grumpy about14:12
alex-weejeugh14:12
AfCalex-weej: anyway, if you just merge a branch, or a branch up to a revno14:12
alex-weejwell, hopefully never have to do it14:13
AfCthen in come the revisions.14:13
AfCas you'd expect.14:13
AfC$ bzr status -v14:13
AfCafter a merge before committing it will show you all the revisions you're merging in. That's useful to keep an eye on.14:14
Takhello jelmer_*14:14
AfCalex-weej: (essentially, you will either not notice this at all, or hit it all the time. All depends on your usage habits. As a maintainer & gatekeeper trying to be selective about things, I hit it a lot, but the problem goes away the more I encourage people to submit orthogonal branches)14:15
alex-weejeveryone else here uses it as if it was cvs14:16
AfCalex-weej: at the end of the day, though, just merge branches. It'll do the right thing.14:16
alex-weejbut say i am working on my mainline, and my boss asks me to put a new feature that's in mainline into the deployed stable branch... i can't just merge all the way up!14:17
AfCalex-weej: yeah, that's when you have to start cherry picking14:17
Lo-lan-doMaybe bzr replay would work here, although it's still not recorded.14:18
AfCalex-weej: probably have a read of http://blogs.operationaldynamics.com/andrew/software/version-control/bzr-orthogonal-patches.html . That might be a bit outdated now, but it's where I was a couple years ago.14:18
AfCalex-weej: in the case you're describing, [even if you happen to use a -r range to get the delta you're looking for], you really are creating a new changeset and on committing a new revision [on your stable release branch]14:19
AfCanyway, I'm still a bit sceptical. I but heads with the bzr hackers about this all the time14:20
alex-weejso when you use -r a..b it's not really merging revisions?14:20
jelmer__alex-weej: you're merging revisions but bzr can't track cherrypick merges at the moment14:21
jelmer__so it won't remember what happened there and can't use that fact when you're doing merges in the future14:22
alex-weejoh right, so it is likely to conflict in the future if i merge the whole branch?14:22
alex-weejor is there some other issue i'm overlooking?14:23
alex-weejsorry i'm still quite new to dvcs really14:23
AfCalex-weej: it [probably] won't conflict if the lines of text are the same (which they will be).14:23
AfCalex-weej: [that's sorta the point of the essay I linked to above]14:23
AfCalex-weej: fwiw, have a read of the "Getting Started" section of http://java-gnome.sourceforge.net/4.0/HACKING.html ; it's not really that java-gnome specific14:26
AfCalex-weej: Bazaar also has a thick extensive user manual, which has the drawback of explaining that there are 6 different ways to use the thing.14:26
alex-weejAfC: ok, don't have time to read it now though as i'm on the clock. have bookmarked :)14:27
alex-weejthanks for your help, i need to write some code though now!14:27
AfCalex-weej: (admittedly that talks about the contributor side of things, not the maintainer viewpoint)14:28
phinzeis there a plugin that allows you to selectively commit a la shelve?15:11
phinzeinteractive?15:11
vilaphinze: not that I know of, but you can use shelve and *then* commit :-)15:12
phinzevila: yeah i do that a lot, looking to cut out that extra step... looks like lp:bzr-interactive might do it... checking it out15:13
phinzeyup, adds `bzr commit -i` ... with colored output and everything, nice!15:14
Lo-lan-doThat should be fasttracked to mainline, I think :-)15:15
phinzeLo-lan-do: +1 here, from inital usage15:17
Lo-lan-doAnd I said that without even initial usage :-)15:18
Lo-lan-doThat and interactive rebase with squashing, and git is dead.15:19
Lo-lan-do(maybe)15:19
Lo-lan-doOh, and cherrypicking.  And milliseconds-fast, too.15:20
jelmer__Lo-lan-do: cherrypicking is already supported15:20
Lo-lan-doShush, I'm trolling!15:20
* Lo-lan-do returns to trying to fix bzr-git15:22
jelmer__(-:15:23
Lo-lan-doHow would you debug that, by the way?  My usual technique of printf-debugging ends up on the wire so it can't be done.15:23
jelmer__Lo-lan-do: debug what specifically?15:24
Lo-lan-dobzr-upload-pack15:25
Lo-lan-doMostly dulwich's server.py it seems15:26
Lo-lan-doI'll try speaking the git protocol into stdin, the good old-fashioned way.15:28
* Lo-lan-do remembers speaking IRC into a telnet tube years ago15:28
jelmer__Lo-lan-do: pdb is your friend :-)15:30
jelmer__Lo-lan-do: and wireshark is very useful for protocol debugging15:30
jelmer__although there isn't a specific git protocol dissector yet15:31
Lo-lan-doDoesn't pdb eat my stdin?15:35
\u03b5erm, is there a doc for whatever Branch.tags is?15:36
\u03b5ah, right15:38
jelmer__\u03b5: try "pydoc bzrlib.branch.Branch.tags" :-)15:38
\u03b5bzrlib.tag.BasicTags15:38
\u03b5no Python documentation found for 'bzrlib.branch.Branch.tags'15:39
\u03b5hehe15:39
Lo-lan-dojelmer: I think I found something.  In bzr-git's server.py, line 603 indirectly calls graph_walker, but it's been called already and therefore it won't return anything since the client isn't going to send the list again.15:48
Lo-lan-doShouldn't there be a cache of some sort?15:49
Lo-lan-doOne can't reset the iterator, either, for the same reason.15:50
* jelmer__ looks15:57
jelmer__Lo-lan-do: I don't have a line 60315:57
\u03b5what should I use to find out a branch's public URL? get_public_branch, or get_push_branch, or get_parent_branch or nothing?15:58
\u03b5and get_master_branch for bound checkouts15:58
jelmer__\u03b5: for the public branch, get_public_branch()15:58
\u03b5or am I missing something that does the job already15:58
\u03b5it's empty :x15:59
jelmer__\u03b5: did you set a public branch URL explicitly?16:00
\u03b5nope, and I doubt people will do so16:00
Lo-lan-dojelmer: You have a *revno* 603, and I should look in the appropriate place, sorry.  Line 136.16:01
jelmer__\u03b5: the public URL of a branch depends on the setup16:01
\u03b5yeah, I saw16:01
jelmer__\u03b5: so it may be right it's empty16:02
\u03b5in one branch I have it as parent branch, in the other as push location16:02
jambtw \u03b5, cute name (epsilon, right?)16:03
\u03b5heh yes16:03
jdobzr: ERROR: Lock not held: LockableFiles(lock, bzr+ssh://bazaar.launchpad.net/~jdobrien/ubuntuone-servers/coucdb-web-api/.bzr/repository/)16:06
jdohow can i fix that? ^^16:06
Lo-lan-dojelmer__: Do you think adding a cache and a reset method to dulwich's UploadPackHandler.ProtocolGraphWalker would break things?  If not, I'll try implementing that.16:12
=== cprov is now known as cprov-lunch
vilahey morning jam !16:39
jammorning vila16:40
igcnight all17:09
Lo-lan-dojelmer__: I have git fetch and git pull working now!17:17
* Lo-lan-do dances the happy dance17:17
jelmer__Lo-lan-do: w00t!17:21
* jelmer__ awaits the merge requests (-:17:21
Lo-lan-doYou bet :-)17:21
weigonLo-lan-do: you work on git-bzr ?17:24
Lo-lan-doweigon: I'd love to get rid of SVN as a pivot for FusionForge, and making bzr branches accessible with the git clients would be a good way to do that.  So I'm only interested in that part.17:25
\u03b5is there a way to have bzrlib.branch.Branch.revision_history() grab merged revisions too?17:26
=== abentley1 is now known as abentley
Lo-lan-dojelmer__: Can I pastebin the bundles?  This account has no email access…17:29
luks\u03b5: you can get the ancestry from the repository, using branch.last_revision as the top revision17:31
lvhhi17:31
lvhbzr (or lp) appears to be convinced a few commits didnt come from me17:32
lvhhttps://code.launchpad.net/~lvh/twisted/positioning17:32
luksbut it's been a long time since I worked with that, I guess there are some fancier graph functions now17:32
lvhhow can I fix that17:32
lukslvh: it probably looks at the email address for account matching17:32
lvhah, right17:33
luksI wouldn't care about it, personally17:33
luksnot sure if you can convince LP that lvh@leibniz is you17:33
lvhwell, im nto worried about those 3 commits17:34
lvhbut it'd be nice if i could fix my bzr config so it sets my email address properly17:34
lukssee bzr whoami17:34
lvhLaurens Van Houtven <lvh@leibniz>17:34
lvhYup.17:34
lvhNext step: fixing it. emacs ~/.bazaar/authentication.conf?17:35
luksyou can use `bzr whoami '...'` to change that configutation17:35
luksI believe it's the first step of the bzr tutorial :)17:35
lvhhah17:35
lvhright, sorry :-)17:35
lvhthis is the second box I'm using bzr on -- new install.17:36
\u03b5hm, there is Graph.iter_ancestry()17:43
\u03b5but, if I got it right, that gives recursive tuples17:44
\u03b5would I have to count them manually?17:44
luksthe one I was thinking about is repository.get_ancestry(rev_id)17:45
\u03b5yeah17:45
lukswhich gives you a list of all revisions in the branch17:45
\u03b5wouldn't that list all revisions in the repo?17:45
luksno, only revisions below rev_id17:45
luksso if rev_id == branch.last_revision it will return all revisions in the branch17:46
\u03b5thanks17:48
jam\u03b5: dict(graph.iter_ancestry()) tends to work pretty well17:49
jambut depends what you need17:49
=== abentley1 is now known as abentley
lvhWhat's the reccomended tool to see the tree structure of a bzr branch 20 revisions back?17:52
lvhchecking out that revision?17:52
Lo-lan-dobzr ls17:52
jamlvh: you can 'bzr revert -r -20' or do "bzr co -r -20'17:53
jamor 'bzr st -r -20'17:53
jamif you just want to see the changes17:53
Lo-lan-dobzr ls -R -r -2017:53
lvhthanks everyone, worked a charm :-)18:10
luksI'd recommend 'bzr qbrowse -r -20', but not sure if that's useful to a emacs user :)18:15
=== deryck_ is now known as deryck
=== cprov-lunch is now known as cprov
=== gorozco is now known as p4tux
=== thekorn_ is now known as thekorn
CoffeeIVI am taking over a project from from another developer; I am looking in his workspace at his .bzr directory, how do I find out the URL of the repository from that directory, so I can do a fresh checkout myself ?19:19
maxbTry bzr info19:20
bacwhat is wrong with doing "bzr pull :push" (other than it looks funny)?  i get the following error:  http://pastebin.ubuntu.com/268111/  in the same branch 'bzr pull :public" works19:23
jambac: your :push is configured to an "lp:" url, and ":push" doesn't expand 2x19:25
jamnot sure if that makes sense, but it does to me...19:25
jamif :push was configured to bzr+ssh://bazaar.launchpad.net/... then it would probably work19:25
bacjam: ok.  that makes sense.19:26
bacjam:  yes, public is a bzr+ssh URL and it works.  just more typing!  :)19:26
jambac: I think it is an open bug19:27
jamand something that *I* would like to see fix19:27
jamfied19:27
jamfixed19:27
jamas I have some config that is set up for automatic 'lp:' paths19:27
bacwell, my odds are improved, then19:27
jambut just one of the things on the list... :)19:27
bacthanks for the answer...19:27
blueyedIs it possible to show last-mod-date of files using "status" and maybe even sort by them? (without much shell-foo)19:32
blueyedI think "st --verbose" should show that maybe?!19:33
Lo-lan-dojelmer: Am I confused or is the current bzr-git supposed to be able to store several git branches and not only one?19:46
Lo-lan-doThe "for oldsha, sha, ref in refs: if ref[:11] == 'refs/heads/':" loops seem to be indicating so much19:46
benchikhello19:47
benchiktoday for some reason i started to get: bzr: ERROR: These branches have diverged.  See "bzr help diverged-branches" for more information.       how do i tell bzr to override the shared version with my version?19:48
glyphbenchik: Did you read 'bzr help diverged-branches'? :)19:50
benchikglyph: didn't tell me anything useful in my situation19:50
glyphbenchik: what is your situation?  (the way you asked the question, 'override the shared version', doesn't really make sense)19:51
Lo-lan-dojelmer: So it is. Yay, yay, yay :-)19:52
Lo-lan-doI'm still struggling with the confusion over the "transport" stuff, but I feel like I'm close to getting push working, too.19:52
CoffeeIVmaxb: thanks !19:54
benchikglyph: i want to run the shared version over, with my version19:54
benchikglyph: the tips the help gave: bzr missing etc. didn't give me useful results19:55
glyphbenchik: why do you think you want to do that?  I suspect what you actually want to do is to merge your changes into the shared version19:57
glyphif you "run the shared version over" then any other people or other repositories which have changes in them that know about the current shared version will immediately make it diverge again19:58
Lo-lan-dobenchik: Maybe you're looking for bzr push --overwrite (but as glyph says, it's evil)19:58
glyphLo-lan-do: I was trying to avoid saying that until he explained that he actually wanted it ;)19:59
benchikglyph: because i think i got all the changes before. and today i updated the app, and it's the most recent update. also i think merging will be harder19:59
Lo-lan-doglyph: Evil is not patient.19:59
glyphbenchik: you're wrong, you didn't get all the changes before.  otherwise it wouldn't have diverged :)19:59
glyphbenchik: merging is easy.19:59
glyphhere's how you do it:19:59
glyphbzr merge19:59
glyphbzr ci -m "merged from shared"19:59
glyphbzr push19:59
glyphand besides, even if it's harder, it give you more pretty lines in 'bzr visualize' which is totally what you want20:00
benchikwhen i bzr merge i get: bzr: ERROR: Branches have no common ancestor, and no merge base revision was specified.20:00
Lo-lan-doTotally20:00
Lo-lan-dobzr viz is just an intricate way of designing celtic knots20:01
benchikglyph: how do i resolve this error?20:01
Lo-lan-doI think someone's been evil before you had a chance to be.20:02
benchikLo-lan-do: so what do i do now?20:02
Lo-lan-doTry to talk with your coworkers to understand where this situation comes from.20:03
benchikLo-lan-do: no way on my side to merge?20:06
Lo-lan-doI have to admit I'm not enough of a guru to answer this one, and I'll leave you in some more capable hands.20:06
benchikok20:09
Lo-lan-doUm. jelmer? Is is expected that a ./repository/git.tdb for a 80 MB repository eats more than 200 MB (and still growing)?20:59
bzr_troublingHello... How can I verify which SVN version bzr is using ?21:00
bzr_troublingI'm getting the Svndiff too-large window, and I'm trying to verify if bzr is using my 1.6.5 version of the svn client... ( I have 1.4.4 and 1.6.5)21:01
Lo-lan-doAre you using a package from a distribution?21:02
bzr_troublingNo.. I'm in MacOS X, Leopard21:02
bzr_troublingThe package from SVN I got from Collabnet21:03
Lo-lan-doI think bzr-svn doesn't use the command-line svn client.21:03
Lo-lan-doIt uses subvertpy, which, in turn, uses the SVN libraries.21:04
bzr_troublingBut the libraries it uses are built-in bzr or it looks for the libraries in my computer ?21:05
Lo-lan-doI'm not familiar enough with MacOSX to be answer that question reliably, sorry.21:06
bzr_troublingBecause the Svndiff too-large window bug was reported as a svn bug.. and I should upgrade my svn version..21:06
bzr_troublingOk, but still know a way to find out which version of the libraries ou binaries of SVN bzr uses ?21:06
Lo-lan-doNot really.  On Linux I'd use strace, but that's low-level and I doubt it works on other kernels.21:07
Lo-lan-doYou could move one version aside temporarily and see if the other still works :-)21:08
bzr_troublinghum, too bad. Is there a way to convert my bzr working copy to SVN only working copy ? That way I can check what's happening..21:08
Lo-lan-doNot as far as I know. You could do an SVN checkout.21:09
Lo-lan-doI may be wrong though, I'm just not aware of another way.21:09
bzr_troublingOk, I'm looking at the documentation.. maybe there's a tool for that.21:10
bzr_troublingThank you very much Lo-lan-do21:10
=== oubiwann_ is now known as oubiwann
MagilumI get this error trying to install bzr-svn from the ppa in Ubuntu Jaunty:   bzr-svn: Depends: bzr (< 1.18~) but 1.18-1~bazaar1~jaunty1 is to be installed22:25
pooliehullo all23:13
=== Mez__ is now known as Mez

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