/srv/irclogs.ubuntu.com/2008/04/28/#bzr.txt

JeejHello00:07
JeejI have a question about Bazaar00:08
mwhudsonhi jearl00:08
mwhudsonJeej, even00:08
Jeejhi mwhudson00:09
mwhudsonJeej: just ask your question00:10
Jeejah, well, i have just setup bazaar. I thoughed, i don't have to work in the bazaar dir, so i try it in the dir i want to use00:11
Jeejoh, and i use windows00:11
mwhudsonthere is a windows installer for bazaar i think00:12
mwhudson(i do not use windows, however)00:12
Jeeji found the Bazaar in five minuets document, but, now am i here: http://doc.bazaar-vcs.org/latest/en/mini-tutorial/index.html#making-changes-to-your-files when i do bzr diff, it doesn't so anything00:13
Jeejyep, windows installer :-)00:13
JeejSo, i did bzr diff file.ex, but it gives an error: bzr: ERROR: Path(s) are not versioned: file.ex00:14
Jeejbut i have made some changes00:14
Odd_BlokeJeej: You need to have used 'bzr add' on the files, so that Bazaar knows that it should be versioning those files.00:15
JeejI have done that00:15
beunoJeej, how about bzr commit?00:15
Jeejalso done00:15
Odd_BlokeJeej: What does 'bzr ls --versioned' in that directory show?00:16
JeejNothing :-/00:17
Odd_BlokeWhat about 'bzr status'?00:17
Jeejunknown: all the files in the dir00:17
Odd_BlokeJeej: And what does 'bzr log' show?00:18
thumperOdd_Bloke: morning00:18
Odd_Blokethumper: o/00:18
Jeejcan i paste it here?00:18
Odd_BlokeJeej: A pastebin would be better.00:19
Jeejhttp://pastebin.com/d4d71374100:19
Jeej:-)00:19
Odd_Bloke:D00:19
Odd_BlokeOK, the evidence suggests that you didn't do a 'bzr add' before your first 'bzr commit'.00:19
JeejI have done that, it gave me a list of all the files in the dir00:20
Odd_BlokeWell, bzr clearly doesn't know anything about them any more. :/00:20
JeejWould it perhapse help when i do it now?00:21
Odd_BlokeWell, try it and paste the output somewhere.,00:21
Jeejhttp://pastebin.com/dc6c1d8500:23
Odd_BlokeJeej: And what does 'bzr status' show now?00:24
Jeejstill nothing00:24
beunoJeej, well, are you trying to use file.ex00:24
beunoinstead of an actual file name?00:24
beunofile.ex is an example name  :)00:24
JeejNope, i didn't want to give you the name00:24
beunoJeej, ah, right00:25
beunowell00:25
beunotry changing a file now00:25
JeejBut, later i though, it doesn't matter :-P00:25
beunoand running bzr diff00:25
* Odd_Bloke is heading to bed.00:25
Odd_BlokeNight all!00:25
Jeejoh, bye00:25
beunonight Odd_Bloke00:25
JeejWoei (hehe, Dutch), it works00:26
beunoJeej, :)00:26
Jeejwell, thank you :-D00:27
=== AnMaster_ is now known as AnMaster
Jeeji am also going to sleep00:30
Jeejbyebye00:30
igcabout to review abentley's PreviewTree patch now00:47
abentleyigc: cool00:48
igcabentley: I'm doing that first because it's the oldest00:48
igcis there something higher priority of yours you want done today?00:49
igceither before or after that one?00:49
abentleyWell, for that one, spiv reviewed it, but didn't actually vote.00:50
abentleyHe had some objections to the testing which I said I'd fix.00:50
igcjust noticed that00:50
igcabentley: should I wait and do the fetch ones instead then?00:51
abentleyThat would be good.00:51
igcnp00:51
=== RAOF_ is now known as RAOF
abentleylifeless: ping01:32
lifelesspong01:36
abentleyI had to tweak Repository.add_revision to munge sha1s all the time.  It was only doing it when an inventory was supplied.01:38
abentleyWhen I did that, I broke bundle tests.01:38
abentleyon "/home/abentley/bzr/fetch1to2/bzrlib/bundle/bundle_data.py", line 27401:39
lifelessI think that makes the api border stronger and is likely to prevent accidents; otoh perhaps asserting that the sha1 is correct when an inventory is not supplied would alter to current uses that interact badly01:39
abentleyShould I just remove this verification?01:39
lifelesss/alter/alert01:39
lifelessI think the verification is bogus, because its asserting that the storage in the target repository format is identical to the storage in the source, but thats only the case when the model&serialisers match01:41
abentleyWell, I think if we're going to alter sha1s in add_revision, we should expect it to happen whether or not an inventory is supplied.01:41
abentleyBut I have no way of knowing what the source serializer was for formats 0.8 and 0.901:42
abentleySo I can't make that test conditional on the serializer.01:42
lifelessabentley: I'm completely cool with your change to add_revision; I was just making an observation that we'd catch current 'culprits' by erroring rather than just altering, when the sha1's are different01:42
lifeless.01:43
* igc dentist01:45
abentleyHmm.01:45
igc(I'll finish reviewing poolie's and jml's LockTimeout patch when I get back)01:45
lifelessabentley: I have no recommendation about whether altering or alerting is better.01:46
abentleyI think I'll take altering.01:46
lifelessk01:46
lifelessso, in the bundle_data.py test, I think that has to go.01:46
lifelessbecause we don't know enough data about the origin, we can't determine what it should look like01:47
abentleyCool.  It's only validating one field of the stored revision, which is a bit whack anyhow.01:47
lifelessyeah, as the comment said01:47
pooliehersonls: hi01:48
abentleySo if we were to stop exposing Revision.inventory_sha1, what would we replace it with?01:48
hersonlspoolie: hi01:48
pooliehello lifeless, abentley01:48
abentleypoolie: hi01:49
hersonlswas planning on doing slackbuild for bazaar 1.4rc, which feel about that?01:49
hersonlsfor users-tests01:50
pooliewhat do you mean by "for users-tests"01:50
lifelessabentley: revision.validate() or repository.validate_revision(revid)01:50
pooliedo you mean so that users can test it?01:50
abentleylifeless: Would we store new data in the repo?01:50
lifelessabentley: I think we could in future but we could investigate whether the api would work now01:51
hersonlspoolie: yeah01:51
pooliesure, that sounds good01:52
hersonls:)01:52
abentleylifeless: So we could actually stop exposing the attribute now, and just always ensure it matched its source repo.01:52
abentleyIt would be easier doing it on Repository, because it wouldn't require the revision to know its source repository.  (and it may not have one)01:53
lifelessabentley: exactly01:55
abentleypoolie: Sorry BB refused your vote.  Not sure why yet.01:59
poolieabentley: i'm not sure precisely which email address i am registered with02:10
pooliecould you tell it to accept both @sourcefrog.net and @canonical?02:10
abentleyYou've got a bunch: Submitter(id=u'Martin Pool <mbp@canonical.com>'), Submitter(id=u'Martin Pool <mbp@sourcefrog.net>'), Submitter(id=u'"Martin Pool" <mbp@sourcefrog.net>')02:11
abentleyBut it looks like you don't have "Martin Pool" in quotation marks yet.02:11
abentleyFixing that now.02:11
poolieheh02:11
jameshabentley: perhaps you should extract the email address and match that?02:20
abentleyMaybe, but email addresses aren't always unique.02:21
abentleypoolie: I've just re-enqueued your vote.02:25
abentleypoolie: Well, it failed, but for a legitimate reason now.02:28
poolieheh, what was that?02:28
abentleyYou didn't reply to the original request.02:29
poolieoh, replying to a reply won't do?02:29
abentleyNot at present.02:29
abentleyI'm trying to decide whether to use the References header, or actually record all the mail threads.02:29
lifelessso02:30
lifelessI like the current behaviour02:30
lifelessbecause I can reply to a thread with a new patch02:30
lifelessand there is no ambiguity02:30
pooliesure, that's an important case, but i think in this case there is no ambiguity about what i was reviewing either02:30
poolieabentley: well, at least now i know.02:31
spivIt's not very elegant, but maybe a "bb:review-of:<msgid>" command for a down-thread review?02:31
pooliespiv, at that point i think i'd just use the web ui...02:31
abentleypoolie: There would be ambiguity if it was a long thread and I used only the references header.02:31
spivYeah, that's true.02:31
abentleyBecause the thread could have two different merge requests.02:32
poolieabentley: i guess i'd try using References and objecting if it's ambiguous02:32
pooliei suppose if you record all the messages you would be able to determine which is the closest one02:32
abentleyRight.02:32
abentleyUnless someone actually managed to reply to two different messages at once, which RFC2822 permits :-)02:33
abentleylifeless: I02:37
abentleyI'm not sure how changing the behavior would interfere with your use case.02:37
abentleyPerhaps you think the supersed marker is based on mail headers?  It's actually based on graph ancestry.02:38
pooliei think an actual ambiguity of that type would be rare, to put it mildly02:38
pooliewere you asking me? i didn't think that.02:38
abentleyNo, I was asking lifeless.02:39
pooliejamesh: thanks for diagnosing the bzrtools ppa problem, i'll look at it now02:49
=== mwhudson_ is now known as mwhudson
lifelessabentley: well I was saying that without having the full graph it would be ambiguous; anyhow, you've done nice things with bb to date; I trust that any change you make will still be nice03:13
abentleylifeless: I agree that voting would be ambiguous if I used the References header.  But creating new merge requests is never ambiguous.03:17
lifelessabentley: right, thats what I meant :P03:18
lifelessI wasn't meaning that new requests would be ambigous03:18
lifelessbut that they could cause voting ambiguity03:18
abentleyAh, I misunderstood.03:30
marnanelThis is probably a pretty stupid question, but if I want to peruse a file's version history from my own (Python) program, there are public APIs for that, right?03:47
mwhudsonyes03:49
marnaneloh, good-- thank you. are they supplied with bzr, or do I have to install them specially?04:03
jameshmarnanel: the public API is provided by the bzrlib Python package, which the bzr command line executable is built on top of04:04
jameshso if you have bzr installed, you have bzrlib04:04
marnaneljamesh: awesome! thank you04:20
marnaneljamesh: I figured it was something like that, but I thought it couldn't hurt to ask04:21
igcOh BundleBuggy, where art thou dear BundleBuggy?04:43
igcabentley: bb seems hung again :-(05:01
abentleyigc: Just seems slow to me.05:04
igcabentley: ok - thanks for checking05:04
AfCOne of the things that we've been doing to improve the perceived responsiveness of Bazaar is to improve the feedback in progress bars.05:26
AfCOne place that I've noted that bzr still seems a bit wedged is when downloading monster larger packs.05:26
AfCI can tell from the system monitor that the network connection is maxed out, and looking at the file size one can see the file growing, so I knew full well it was doing something, but > 5 minutes with no change in the feedback given to the user seems a bit long.05:27
AfCWould it be wrong to give a wget style indication of the amount of data to be transferred and/or percent done (in bytes, rather than "0/2") ?05:28
AfCand is such a thing even possible?05:28
AfC(presumably if http:// as the transport it would be, I would have thought it would be with bzr:// too, but I'm not sure on which internals are relevant)05:29
mwhudsoni'm sure i've seen such things talked about05:31
AfCmwhudson: yeah. I wasn't sure if anything specifically on that had been done during the 1.4 cycle.05:33
mwhudsoni don't think so05:33
AfCif so, then I wouldn't have worried further about it, otherwise, when I start telling people about this repository I'll have to warn them in big letters not to freak out that it's taking so long with apparently no feedback.05:33
lifelessAfC: I believe it is specifically a defect in the smart server stream handling07:12
lifelessAfC: pack downloads do show a progress bar07:12
lifelessAfC: I'm not aware of anyone actively working on the bug, but I pretty sure there is a bug open.07:12
AfClifeless: ... "pack downloads"; it did have a progress bar; it's just that "0/2" for ~ 300 seconds isn't terribly illuminating, that's all07:13
lifelessAfC: what url07:14
AfClifeless: http://www.gnome.org/~afcowie/bzr/gtk+/trunk/07:16
lifelessspiv: ^ can you tell if there is a smart server at that url ?07:22
lifelessspiv: (I can, but it should be easier)07:22
AfClifeless: (I certainly didn't put one there, but I can ask Olav if necessary; I don't think he did anything fancy)07:23
AfC(and, netstat on that server doesn't report anything on 4155)07:24
lifelessAfC: we tunnel over http07:24
spivlifeless: judging from -Dhpss logging, no.07:25
AfClifeless: only if someone has configured mod_python etc to do so, right?07:25
spivOr mod_wsgi or whatever, yeah.07:25
lifelessspiv: 'it should be easier' :P07:25
AfCspiv: yeah07:25
spivlifeless: agreed. :)07:25
AfClifeless: anyway, there's no getting around the fact that that pack is ~180 MB (at least, not until shallow branches); I'm just angling at the first impression factor, that's all.07:26
lifelessAfC: oh yeah07:27
lifelessAfC: I think I know the problem;07:27
spivHuh, I just got a bzr: ERROR: Pack '346df6b9e93adebf6a24a2231b3eda8d' already exists in <bzrlib.repofmt.pack_repo.RepositoryPackCollection object at 0x87b96cc> when pushing07:27
spivWith current bzr.dev -- which apparently has the "Avoid pack name collisions when fetching all revisions" fix.07:28
lifelessAfC: vila has the details, but I'm pretty sure there is a issue where http doesn't stream data to python07:28
lifelessspiv: that fix is not needed for push/pull code paths; only for library api user.07:28
lifelessAfC: so you end up with the 180 MB downloading between two lines of python code07:29
AfClifeless: yippee!07:29
AfCThat calls for a chocolate biscuit.07:30
vilalifeless, AfC: I''ll have to check, but from memory, if you're using pycurl you get a bit less feedback (which, I realize, in your context, could mean *far* less feedback ;-)07:30
AfClifeless: one thing I was going to ask you about | suggest was that it's pretty common for people to deliberately or accidentally interrupt such a large transfer07:30
AfCvila: I'm using... um, you mean, one isn't supposed to "use" curl?07:31
vilaand anyway, poolie filled a bug about using a progress bar at transport level and fixing *that* should give better feedback (with the some caveat for pycurl)07:31
vilaAfC: We have two http implementations: one based on pycurl, the other based on the python urllib2 module07:32
vilapycurl is the default if installed07:32
AfClifeless: so while ordinarily reducing round trips, etc is a goal we strive for, resumeability & robustness are also important07:32
lifelessAfC: well, its robust today while not being resumable07:33
AfClifeless: maybe an upper limit on pack size would be a good idea, ie, if I had to do 180 1 MB transfers, and am interrupted half way thought, resuming from there is a bit more palatable than re-transferring 100MB07:33
AfC(or, of course, resuing partial downloads)07:34
lifelessAfC: the size of source pack doesn't influce resumability07:34
AfC / "continuing" / whaver07:34
lifelessAfC: its all about data insertion07:34
lifelessa single insertion is atomic07:34
AfCwell, right now it's about downloading a 180MB file07:34
lifelessa single insertion must meet topological ordering across the entire set being downloaded07:34
vilapoolie: ping, can *you* access to lp bug #183705 ?07:35
ubotuBug 183705 on http://launchpad.net/bugs/183705 is private07:35
AfC(and all the usual patterns of download management that go with it, yeay `wget -c`)07:36
vilapoolie: and tell me if there is something I can do about it ?07:36
AfCvila: ah, ok, so using pycurl is the preference. Good, that's the way things land here.07:37
vilaAfC: hehe, *my* preference is to use urllib2 :) But that doesn't verify ssl certificates otherwise that will be the default :)07:38
AfCvila: [ah, I was wondering what the difference was]07:38
lifelessvila: fixed07:39
lifelessAfC: uhm, packs are not downloaded as a binary blob, desired hunks from it are grabbed with a readv07:40
vilalifeless: thanks, I'd be interested in the explanation of why I couldn't access it and why I could *now* access it though :)07:43
lifelessAfC: I appreciate the point that resuming is nice; but its simply not up there compared to the current performance issues we have.07:44
lifelessAfC: and as its not dealing with static content, wget -c and other download managers like torrents are not good examples to draw from07:44
AfClifeless: interesting07:44
AfClifeless: so, speculating, if you know you need the entire content of pack, wouldn't it be cheaper to just fire off a thread and bring that back in, lock stock and barrel?07:45
AfCbut other than that, very interesting indeed.07:46
lifelessAfC: we don't know if we need the entire content of a given pack a priori - ever07:46
AfCreally?07:46
AfCweird.07:46
lifelesswe have to read the inventories from a revision X to know the text keys we want07:46
lifelessnot weird; its a DAG of data07:46
AfClifeless: yeah yeah, but I thought you had an index of inventory  to which pack contained the text you needed07:47
AfCand vice versa07:47
lifelesswe have indices for accessing named data keys07:47
AfC(the reverse indicating "yes, we need all of it")07:47
lifelessand the file and revision graphs are cached in the index07:48
ubotuNew bug: #183705 in bzr "authentication.conf doesnt provide sftp login password" [Undecided,New] https://launchpad.net/bugs/18370507:50
lifelessvila: it was embargoed07:51
lifelessvila: so that only subscribers could look at it, and had only the security contact and filer as subscribers able to access it07:51
lifelessAfC: over the smart protocol we can order data so that we can perform multiple small insertions if we want to07:54
vilalifeless: So I'd say there is a workflow bug there since no-one answered it for 4 months :-/ I better understand codeslinger angryness (I'd call that mitigating circumstance :)07:54
lifelessAfC: but over http doing that will give us many roundtrips07:55
lifelessAfC: (more than just whatever fraction of 180MB we decide to split the download size into)07:55
lifelessbecause of the need to maintain the local consistency at any insertion point07:56
jameshvila/lifeless: perhaps the security team should be a team, so that such bugs can be looked at by more than just poolie (the bzr security contact)08:06
jameshyou'd want a restricted or moderated team, of course08:06
lifelessmakes sense to me08:09
lifelessI'd use the bzr team myself08:09
jameshfor real security vulnerabilities, does it make sense to expose them to that many people by default?08:09
jameshyou can always expand the subscriber list of a bug, but it is harder to put secrets back in the box08:10
lifelessjamesh: I have a simple view on trust.08:13
jameshlifeless: it isn't just you that matters though.08:15
jameshIf I find a serious security bug in Bazaar, I might be a bit hesitant to use Launchpad and disclose it to that many people.08:16
lifelessjamesh: well, make it a private team with hidden membership08:18
lifelessjamesh: then you can't tell08:18
jameshexcept that we don't allow that ...08:18
lifelessjamesh: just saying08:18
lifelessbah08:25
lifelessbzr: ERROR: Connection error: Couldn't resolve host 'bazaar-vcs.org' (-2, 'Name or service not known')08:25
lifelesstransient error08:25
lifelessnothing else barfs on it :(08:25
lifelessnight all08:34
mr-rus1Hi, I'm attempting to convert an svn repository with multiple branches to bazaar. and I have a few questions.08:44
=== mr-rus1 is now known as mr-russ
mr-russdoes each branch become a separate bzr branch?08:44
mr-russhow to svn tags fit into bzr and the possible branches?  eg branch 1.1 with tag 1.1.208:45
bob21) yes08:49
mr-russexcellent, I'm beginning to understand this stuff.08:50
* igc dinner09:20
jameshmr-russ: I recently did a conversion using svn2bzr quite successfully09:30
jameshmr-russ: it creates branches for trunk, stuff in branches/ and tags/09:30
jamesh(with appropriate relationships when copies occur)09:30
jameshI used a simple post-processing script to covert the branches in tags/ to bzr tags09:31
Odd_BlokeMorning.09:35
pooliehello09:37
mr-russjamesh: where would I get a post processing script that does svn tags -> bzr tags09:59
jameshmr-russ: http://people.ubuntu.com/~jamesh/add-tags.py10:01
jameshmr-russ: the first argument is the branch you want to apply tags to, and the second is the directory containing the tag branches10:02
mr-russI"ve tried to get a copy of svn2bzr, but I'm confused about how to get a working one.10:06
mr-russI downloaded your branch, but it doesn't seem to be working.10:06
jameshin what way?10:07
mr-russtrunk/svn2bzr file:///home/mr-russ/dev/home/svn/civian/ civian-bzr-all10:09
mr-russwhat paste do we use?10:09
jameshmr-russ: svn2bzr tags a Subversion dump file as input10:09
mr-russsvn2bzr [options] <dump file|svn-url> <output dir>10:09
mr-russusage says svn-url10:09
jameshhmm.  I'd recommend using svn2bzr from lp:~niemeyer/svn2bzr/trunk10:10
jameshit only works from dump files10:11
mr-russhow does one know which branch to choose?10:11
jameshmr-russ: you need to use the --scheme option to tell it how your repo is laid out10:12
jameshyou probably want --scheme=trunk or --scheme=project10:12
jameshthe first is for use if you have a single-project repo with toplevel /trunk, /branches and /tags directories10:12
jameshthe second is for use if you have a multi-project repo with project1/trunk, projcect1/branches, project1/tags, project2/trunk, project2/branches, project2/tags, etc10:13
jameshit will then have enough information to tell if a tree copy is creating a new branch/tag10:14
mr-russjamesh: I meant when downloading bzr branches from launchpad.  svn2bzr didn't have an obvious download to run the conversion.10:14
jameshmr-russ: ah. niemeyer hasn't set his branch as the default one10:14
jameshif he had, then it'd be marked as the development focus and you could just do "bzr branch lp:svn2bzr"10:14
jameshI'll remind him to fix it :)10:15
mr-russyeah, the trunk like is broken and very confusing when you link from the bazaar website.10:15
mr-russthanks.  it will help others I'm sure.10:15
asabilanyone knows if bzr-git usable ?10:36
jelmerasabil: not really10:37
jelmerasabil: it allows you to use bzr viz / bzr log on git repositories10:37
asabilI see10:37
jelmerasabil: but that's it afaik10:37
asabilthanks for the information10:38
devilsadvocatehi. does bazaar leave a lot or randomly named files  in ~ ?11:09
james_wit shouldn't do11:10
james_wwhat names are you seeing?11:10
devilsadvocatehm,. i see a lot of them, which started showing up areound the time i started using bazaar. wanted to make sure they werent related11:10
devilsadvocateall have 6 characters, seem random, like a hash of some form11:11
devilsadvocatelike QIu2Xk11:12
james_wI doubt they are from bzr, I've not seen them.11:12
spivYeah, that doesn't sound like bzr.11:13
devilsadvocatek, thanks11:13
spivI'd guess that something is using $HOME for $TMP11:13
james_wlsof might tell you what owns them if they are still open.11:13
jelmerjml: hi! Does tribunal support subunit yet?11:41
jmljelmer: soon!11:41
ubotuNew bug: #223585 in bzr "Bzr crashes with MemoryError during branch on OS X" [Undecided,New] https://launchpad.net/bugs/22358511:42
semslieI've just started trying out bzr-svn and made my first commit back to the svn repository. I've noticed that a number of properties (bzr:revision-info, etc.) are set on the parent branch directory in subversion. Are these required? I'm asking because the other developers on this project might not like loads of properties being set around the place. If that is the only property that will be set then it might not be such a problem.11:42
jelmersemslie: yes, they're required - without them bzr wouldn't be able to do the right thing when you branch from svn11:45
semsliejelmer: At first I thought they were on all committed files, but it looks like they are only set on the branch directory, so it might not be such a problem11:46
semsliehopefully the extreme productivity boost from bzr will justify the extra info in trac :)11:47
jelmerthere is a trac option to hide certain properties11:49
=== mrevell is now known as mrevell-lunch
asabildevilsadvocate: using gedit ?11:56
devilsadvocateasabil, no. kde / kate11:56
asabildevilsadvocate: check the settings for kate then11:56
asabilyou will also get backup files if you use bzr revert11:57
ubotuNew bug: #223597 in bzr-loom ""record" is underdocumented" [Undecided,New] https://launchpad.net/bugs/22359712:01
semsliejelmer: thanks. That might help12:09
ubotuNew bug: #223601 in bzr-loom "up-thread: ERROR: Revision {('',)} not present" [Undecided,New] https://launchpad.net/bugs/22360112:16
Odd_Blokeabentley: BB seems to be having issues (specifically with looking at a merge request, but the problem may be more general).12:52
Odd_Blokeabentley: The problem is more general (I know that now the front page has loaded :p).12:53
=== mrevell-lunch is now known as mrevell
visit0rhi, what's the current recommended way to send commit emails?13:03
visit0rthe server-side crontab script is buggy as hell13:03
onnoBazaar refuses to take a folder in "bzr add foo" it says foo is ignored... yet its not in my .bzrignore list13:34
=== mw|out is now known as mw
Odd_Blokeonno: Using 'bzr ignored' will give you a list of files and the patterns that they match to be ignored.13:44
onnoyeah but its not in there. I found out it is in the repo but won't put it in my project when I do bzr update13:45
onnoI updated my system from 7.10  to 8.04 ubuntu yesterday... Could this be the cause?13:45
Odd_Blokeonno: Could you paste the command you're using and the output you get somewhere?13:46
Stavroshello13:46
onnobzr update13:46
Stavroshow can i have bzr automatically replace version/revision tags in a file?13:46
onnoproject/nieuwsbrief/templatetags/13:47
onnoI don't got any error messages13:47
onnoit simple not ther13:47
onnoI just did a new checkout all seems fine now13:49
Odd_Blokeonno: OK, good.13:50
Odd_BlokeStavros: Do you mean in the same way CVS does with things in betweens $s?13:51
onnostill strange that I need to do this13:51
StavrosOdd_Bloke: hmm, probably, i'm not sure about that13:51
Odd_BlokeStavros: Well, if so, it can't currently.13:51
Stavroshmm13:51
Stavrosany idea why it's telling me that bzrlib doesn't match the bzr program? i'm on a mac13:53
Stavrosdoes anyone know where i can see my repo code on launchpad?  i can't find it :/13:55
Stavrosoh nm, browse code :/13:56
Stavroshmm, how come pushing to launchpad doesn't ask me for a password?13:58
spivStavros: SSH keys13:59
bimberiStavros: because you're using the ssh key you've specified to launchpad13:59
Stavrosah, i didn't know it used the keys for login, thanks14:00
semslieanother beginner bzr-svn question: I'm wanting to start using bazaar as transparently as possible with the other developers on my project. Right now I have a mirror checkout and a local branch of that which I've worked on. My changes are ready, so I've merged back to the mirror checkout and then I want to commit that back to the svn repo. Unfortunately this means that I think I will end up with the commit messages that were part of the fix in my local b14:01
Odd_Blokesemslie: You got cut off after 'of the fix in my local'.14:04
semslielong question :) here's the rest:14:05
semslie"... fix in my local branch, and an extra message along the lines of 'merged changes', which isn't as transparent as I would like at the moment. Is there a way for my to just have just those commit messages involved in the fix committed?"14:05
Odd_Blokesemslie: Well, if you merge into the integration branch, you will only get a single commit in the mainline.14:07
Odd_BlokeIf you only want commits related to the fix you've made, then that should really have been done in its own integration branch.14:08
Odd_BlokeAck, it's own _feature_ branch.14:09
semslieOdd_Bloke: So is it best to leave out the 'mirror checkout' in this case altogether?14:11
Stavrosisn't the bzr installer supposed to add a script to /usr/bin/bzr?14:13
Odd_Blokesemslie: Well, the mirror checkout could double as your integration branch (i.e. you merge into that from your feature branch and then commit to SVN from there).14:14
Odd_BlokeStavros: Which bzr installer?14:14
Stavros1.4rc214:14
Stavrosthe .tar one14:14
Stavroshmm, actually it copies it to /usr/local/bin/bzr14:15
Stavroswhich is not in my path, for some reason14:15
Stavrosthis is odd14:15
semslieOdd_Bloke: cool, thats what I was going for. When I commit from the integration branch will it commit any merged changes as a single subversion commit?14:15
Stavrosnm, it works now that i restarted the shell14:15
Odd_Blokesemslie: Yes, Subversion only sees the mainline commits.14:21
semslieOdd_Bloke: that makes total sense now. Thanks!14:22
Odd_Blokesemslie: No worries. :)14:25
Stavrosthis is out of topic, but does anyone know how i can strip all html from a document with beautifulsoup?14:31
jammorning14:33
Odd_Blokejam: Morning.14:35
Kbytehi!14:41
pekujaKbyte, are you a 1000 bytes or a 1024 bytes?14:42
Kbytepekuja: I'm a 1024 bytes. :)14:44
KbyteDamn, my boss want to buy ms team because bzr doesn't have a good frontend for windows. I'm so sad :(14:46
jelmerKbyte: Mark Hammond is working hard on getting that fixed (tortoisebzr)14:47
jelmerKbyte: Probably too late for you though14:47
pekujaMS Team? that can't be a better option14:49
KbyteIt isn't never too late :) tortoisebzr have the same features of olive-gtk? I looking for a tool that make easier to add files to repository, make commit, merge, ecc ecc...14:51
pekujaEclipseBzr? :-P14:51
Odd_BlokeHas anyone on the list seen my review of thumper's aliases stuff?  I can't see it yet, and am beginning to worry that my messages aren't getting through.14:51
pekujaprobably not if you don't use Eclipse14:51
KbyteThey don't use eclipse. Only visual studio.14:52
abentleyOdd_Bloke: I see it.15:00
* korpios thinks the rest of the world also needs to move to OSX/Linux environments ^_^15:00
Odd_Blokeabentley: Thanks. :)15:15
ubotuNew bug: #223666 in bzr "bzr: ERROR: exceptions.MemoryError after commit" [Undecided,New] https://launchpad.net/bugs/22366615:17
=== niemeyer_ is now known as niemeyer
epsyhi15:47
epsyhow does behave a central working copy?15:47
epsy(the working copy of a centralized repo)15:47
epsycan i set it so it only gets updated when i tell it to?15:48
=== pmezard_ is now known as pmezard
jelmerOdd_Bloke: yep, I saw your reply to his email16:16
Odd_BlokeOK, good.16:17
Odd_Blokejelmer: Thanks. :)16:17
=== mtaylor is now known as mtaylor|away
=== beuno_ is now known as beuno
=== abentle1 is now known as abentley
ubotuNew bug: #223720 in bzr "bzr switch prompts to decrypt ssh-key 4 times" [Undecided,New] https://launchpad.net/bugs/22372017:06
lamontam I correct in understanding that bzr very strongly believes in the one-directory-per-branch model?17:29
lamontthat is, that it's painfully difficult to impossible to have multiple branches in one directory and bzr checkout to get between them?17:30
beunolamont, until we get nested branches, I think so, yes17:30
datolamont: I'd say "mildly" difficult17:30
* beuno stares at LarstiQ17:30
korpiosi.e., "git-style" branches17:31
datolamont: I pasted a mini-howto the other day to madduck, if you want I could dig it up, or you could read on `bzr switch`17:31
korpiosI did rather enjoy that part of git.17:31
lamontkorpios: exactly17:31
lamontdato: I'll just stick with my current pain for now, instead of new and different pain17:32
datolamont: well, your choice. I'm just surprised you come looking for something, and say "I don't want to try it" when pointed at it :)17:33
datothough maybe you have already, hm17:33
lamontdato: it was more that you pointed at it as "mildly difficult" and sent me to read stuff... ETOOMUCHPAIN17:34
korpios'twould be nice to have a sort of init-repo that worked like that (a single WC, with "bzr switch") rather than the current style of init-repo and multiple branch-dirs17:34
lamonton the bright side, I'm actually creating something in a bzr repo instead of just smashing it into git.  So I guess I'm embracing a certain amount of pain today already...17:34
lamontbut then, I do need to learn bzr more, so it's a good pain17:34
datolamont: k. feel free to come back when you feel adventureus again17:35
Odd_Blokethumper: So I'm having difficulty finding a landline you could call me on ATM.  My home phone has died, so I only have my mobile. :(17:37
korpiosMaybe a plugin that created a shared repo without trees, but kept it all stuffed in the root .bzr, and swapped out a single working copy there.  Hmm.17:37
Odd_BlokeI'm going to attempt to borrow an office from someone, but it may be too late for me to catch anyone who can let me in...17:37
abentleyOdd_Bloke: "$ TZ=NZ date"17:40
Odd_Blokeabentley: We've arranged to talk this evening, so I'm hoping he'll read scrollback including his name.17:41
abentleylamont: A branch is always a directory.  But you can organize your branches however you like, and switch your checkout between them.17:42
takedownhello, can anyone help with bzr and launchpad?18:30
beunotakedown, sure, what's the problem?18:31
takedowni try to upload some shell scripts to lp, everything seems works, revision history apply etc. but i dont see files on launchpad18:31
beunotakedown, what do you mean you don't see the files on LP?  where are you looking?18:32
takedownbeuno: i click browse code on my branch18:32
beunotakedown, link?18:32
takedownbeuno: http://bazaar.launchpad.net/~takedownz/+junk/virtualsheriff/files18:33
beunotakedown, and did you add the files locally to the bzr repo  (ie, bzr add)18:33
takedownbeuno: sure18:34
takedowni do step by step with guide18:34
beunotakedown, I just branched it18:35
beunoand it seems like you didn't18:35
beunoit's empty18:35
beunotry running:  bzr add18:35
beunoand: bzr commit -m'Message'18:35
beunoand pushing18:36
takedownbeuno: ok, here what i do: bzr init in directory with project, then bzr add, and then commit and push to lp18:36
beunotakedown, that's correct18:36
beunoand the scripts where in the folder?18:36
beunorun:  bzr status18:37
takedownbeuno: in the same where i did bzr commands18:37
beunoand see if it says if there are any unknown files18:37
takedownbeuno: before i try it and it says unknown files here, but now nothing18:38
beunotakedown, what does: bzr revno18:39
beunosay?18:39
takedownbeuno: two, i just wait when it apply on lp18:40
beunotakedown, well, LP only has one18:40
beunotry pushing again18:40
takedownbeuno: well, ip should apply immediately?18:41
takedownbecause when i first commit i wait almost 20 minutes when it apply to lp18:42
beunotakedown, it should be fairly fast, yes18:42
takedownbeuno: ok do it again18:43
takedownbeuno: alright, it works now18:47
takedownbeuno: thank you18:48
beunotakedown, you're welcome  :)18:48
VadiIs it possible to embed some bzr commands into a C program?19:23
epsy[mode=dumbHack]hmm, exec("bzr"); ?[/mode]19:24
andrea-bsVadi: you can use popen or the python C libs19:25
VadiWhich is easiest to make & cross platform?19:26
Vadiepsy: that's sounding interesting. Can I get output from that though?19:26
VadiLike to confirm it worked or no?19:26
epsynever tried that :P19:26
Odd_BlokeYou'd probably want to look into using the Python APIs from C.19:27
andrea-bsVadi: popen uses pipes so it will work only with Unix, so you should use Python libs19:28
VadiYeh unfortunately 98% of the users are on windows. I'll look into this python thing then.19:29
andrea-bsVadi: this doc may be useful: http://docs.python.org/api/api.html19:30
=== mw is now known as mw|gfood
VadiThank you very much, was about to ask.19:30
=== mw|gfood is now known as mw|food
ubotuNew bug: #223814 in bzr "bzr push always fails the first time and succeeds the second time" [Undecided,New] https://launchpad.net/bugs/22381419:46
=== mw|food is now known as mw
VadiIt20:44
VadiIt's not possible to bzr push to a launchpad repository anonymously, is it?20:45
Odd_BlokeNo.20:45
VadiOh, bah.20:45
frskThat would be interesting, though. :-)20:46
sabdflhello all20:47
sabdflhow's 1.4 coming on?20:47
abentleysabdfl: Well, no one's reported any showstoppers with 1.4rc2.20:48
Vadifrsk: it's just my inability to get the curl ftp upload example to work that's causing the need for this, otherwise, not all that useful I support :)20:48
Vadi*suppose20:48
sabdflabentley: looks like folks have been busy!20:50
frskVadi: Hehe, no, it would most likely be a new place for kiddies to place their stuff20:51
abentleysabdfl: Yeah, we've got plenty of pending merges ATM.20:52
sabdflabentley: for 1.4, or 1.5?20:53
abentleyFor 1.5.  AFAIK, all that's left for 1.4 is to package and release it.20:53
thumperOdd_Bloke: yes I read the scroll-back21:02
thumperOdd_Bloke: can you skype?21:02
Odd_Blokethumper: I don't have a headset ATM, and realised that my landline was down (and that this would adversely affect your phoning me >.<) about 15 minutes after all the shops that sell them closed. :(21:04
thumperOdd_Bloke: ok, we could do IRC in about an hour if you are around21:05
thumperOdd_Bloke: gotta get the girls breakfast and myself coffee21:05
Odd_Blokethumper: Yeah, that'll suit me fine.21:05
thumperok21:06
schierbeckhey guys21:11
schierbeckany of y'all using bzr-gtk?21:11
jelmerhey Daniel21:11
schierbeck(i'm hoping yes)21:11
schierbeckoh, hi j-man!21:11
schierbeckjelmer: i'm fishing for some input on my latest iteration of the changes page. i'll never quit!21:12
Odd_Blokeschierbeck: I use it occasionally, when I need more than just a diff (for which I use 'cdiff | less -R'), a 'bzr status', or 'bzr commit'.21:13
Odd_BlokeSo mostly viz.21:13
abentleyHave you guys noticed that viz doesn't work at all on bzr.dev?21:15
schierbeckabentley: yeah, i saw it today21:15
schierbecknot sure what the issue is21:15
abentleyI suspect it's incorrect ghost handling.21:16
schierbeckabentley: if you could provide some details and possible solutions in a bug report, you'd be the man of the week :)21:21
abentleyBy the time I know that much, I might as well fix the bug, too.21:22
=== mtaylor|away is now known as mtaylor
VadiIs it possible to get a link to a file in bzr at it's latest revision? (so if the revision changes, the link is still valid at least)21:25
james_wlifeless: hi21:29
schierbeckabentley: that'd make you the man of the month! :)21:36
schierbeckjelmer: i know you're not a fan of the changes page, but i'd still really love some feedback: lp:~dasch/bzr-gtk/changes-page21:48
schierbecki've made it fit in with the bugs and signature pages21:49
schierbeckbut it's still very rough21:49
thumperOdd_Bloke: we were going to talk PQM22:20
thumperOdd_Bloke: when are you looking at starting to work on this?22:20
Odd_Blokethumper: Well, term doesn't finish until the 30th of June, with exams finishing a week or so earlier than that.22:21
thumperOdd_Bloke: so not until after that?22:21
Odd_BlokeProbably not in any depth, no.22:21
thumperOdd_Bloke: ah ok, that should be fine then22:22
thumperI'm guessing that all my major bits in PQM should be done by then22:22
Odd_BlokeWhat're you working on ATM?22:23
thumperlots of stuff22:23
thumperbut with respect to PQM, getting it to talk to Launchpad22:23
thumperso Launchpad can be the queue rather than emailing PQM22:23
Odd_BlokeOh, cool.22:24
thumperOdd_Bloke: also I heard rumours about you working on PQM accepting merge directives22:25
thumperOdd_Bloke: I know that abentley had done some work in this area a while ago22:25
thumperOdd_Bloke: but I don't know what state it is in22:25
Odd_BlokeATM it's not altogether clear what I will actually work on.22:25
Odd_BlokeXMLRPC rather than (or in addition to) email was one thing, though that may overlap with talking-to-Launchpad?22:26
Odd_BlokeCertainly accepting merge directives would be something that might happen.22:26
Odd_Blokehttp://bazaar-vcs.org/SprintLondonMarch08/Brainstorms#head-f2678f1f3acd54a5199c577538301a91be6f7915-2 was the list of pet hates we got at the sprint.22:27
Odd_BlokeReading that now, I'm reminded that removing the VCS abstraction that currently exists in there and making it a bzr-only tool (with use by other VCSes via bzr-svn/-hg/-git etc.).22:29
Odd_Bloke...was going to be a focus as well.22:29
abentleyschierbeck: http://bundlebuggy.vernstok.nl/bzr-gtk//request/%3C481641EB.4090901%40aaronbentley.com%3E22:33
schierbeckabentley: man of the month! i'll review it right away!22:39
IsoSchizSo... I've got some general questions about how bzr works in terms of handling distributed merges/patches.22:54
IsoSchizI can't seem to find any good documentation on this anywhere, but if I'm just being dumb and there is some, perhaps someone could point me in the right direction?22:55
james_whi IsoSchiz22:55
james_wcan you explain what you are looking for please?22:56
IsoSchizMy question specifically is how does bzr handle/track merges across several distributed branches? Example: Devs A and B each take a private branch of the current 'head', and develop their own features. Dev B wants to build his feature on top of dev A's feature, so he syncs his branch to Dev A's branch (is this possible? Or does he have to actually take a patch file and apply that to his branch?) Then Dev B uploads his feature (built22:57
IsoSchizAnd if that doesn't make sense, I can try to clarify some more. :-)22:58
IsoSchizMy interest really stems from the VCS we use at work, which is mostly centralised, and doesn't actually cope with this sort of thing very well at all, resulting in frequent merge conflicts and lost time.22:59
mwhudsonIsoSchiz: your first line got cut off22:59
beunoIsoSchiz, if all devs branched from the same branch, then anyone can pull in changes from the others22:59
IsoSchizOh, sorry, broken down into smaller chunks:23:00
IsoSchizMy question specifically is how does bzr handle/track merges across several distributed branches? xample: Devs A and B each take a private branch of the current 'head', and develop their own features.23:00
IsoSchizDev B wants to build his feature on top of dev A's feature, so he syncs his branch to Dev A's branch (is this possible? Or does he have to actually take a patch file and apply that to his branch?) Then Dev B uploads his feature (built on top of A's feature) back to the 'head'.23:00
IsoSchizDev A does some more work on his feature, and then uploads. How does bzr minimise conflicts in this instance (i.e. half of A's code is already in the repository)?23:00
mwhudsonIsoSchiz: how much do you know about revision control in the abstract sene?23:01
NfNitLoopyes, B can continually merge from A.23:01
mwhudsonsense?23:01
james_wIsoSchiz: just to say that that is *exactly* the sort of situation distributed revision control is designed to deal with.23:01
IsoSchizbeuno: Right, but how does bzr deal with the potential merge conflicts when teh distributed versions (which may have cross synced) remerge?23:01
NfNitLoopand when A pushes changes, bzr only pushes things that have changed sine his last push.23:01
IsoSchizmwhudson: Quite a bit.23:01
NfNitLoopIsoSchiz: it remembers all of the cros-syncs.23:01
NfNitLoopeach revision has its own unique hash ID.23:02
beunoIsoSchiz, it tells you there are conflicts, and asks you to manually resolve them23:02
NfNitLoopso every branch knows which revisions have been merged in.23:02
IsoSchizNfNitLoop: So there are per-branch versions?23:02
NfNitLoopwhat do you mean?23:03
IsoSchizWell, in my example, Devs A and B can keep committing to their private branches.23:03
NfNitLoopYes.23:03
IsoSchizThen as A pushes his changes to B, B's repo knows that it last synced from 'A version x'23:03
NfNitLoopYou should probably see:  http://bazaar-vcs.org/Workflows23:04
IsoSchizAnd also synced from 'head version y'23:04
NfNitLoopIsoSchiz: Don't think of it as version x or version y.23:04
NfNitLoopthink of it as "I have merged in changes x y and z."23:04
NfNitLoopit doesn't matter which branch they came from.23:04
IsoSchizhmmmm, and in what form does it remember the changes then? As a patchfile?23:04
NfNitLoopa bzr-specific changeset.23:05
NfNitLoopI don't know the details.23:05
NfNitLoopYou don't have to.  That's the nice bit. : )23:05
NfNitLoopbut that changeset is uniquely identifiable across all branches.23:05
NfNitLoopso any branch will know if it has merged in change X.23:06
mwhudsonconceptually a revision is a snapshot of tree state23:06
IsoSchizRight, ok, so in my example A makes 2 changesets (say X and Y), and B makes one (say Z). When B uploads his changeset (into which he has synced X from A), the main repo knows it has both Z and X, right?23:07
NfNitLoopyup.23:07
IsoSchizSo when A tries to upload X and Y, it knows it already has X and only merges in Y (and doesn't try to merge in X again)?23:07
NfNitLoopright.23:08
hmeland_The Z revision will have X and Y among its ancestors.23:09
hmeland_Sorry, only X.23:09
NfNitLoopYeah, I think that's details beyond Iso's point...23:09
NfNitLoophe mostly sounds worried about whether each tree knows what's been merged in.23:09
IsoSchizSo when you do a peer sync, you actually sync more than just the current state, you sync at least some of the history of your branch as well?23:09
IsoSchizThat is very clever. :-)23:10
NfNitLoopIsoSchiz: Yes.  If you pull or merge from a peer's branch...23:10
NfNitLoopyou get ALL of the history.23:10
NfNitLoophistory is kept across all branches.23:10
NfNitLoopwhich makes for neat graphs with bzr visualize and such. : 023:10
NfNitLoop:)23:11
IsoSchizDoes this make bzr much slower then...? :-)23:11
hmeland_It depends.23:11
IsoSchiz(for network operations)23:11
NfNitLoopdepends on how divergent your branches are.23:11
NfNitLoopSo if you have to fetch lots of changesets, it can take a bit.  BUT...23:12
NfNitLoopthen they're all loally cached.23:12
NfNitLoopand any further merges only grab what's changed.23:12
NfNitLoopand then you can unplug your laptop and go develop at a coffee shop. :p23:13
IsoSchizYes, I'd personally sacrifice performance for greater merge stability.23:13
NfNitLoopIsoSchiz: What SCM systems do you use now?23:13
NfNitLoopI came to bzr after CVS & SVN...  bzr makes it so easy to merge, it's easy to see why people so rarely bother with it in CVS & SVN. :p23:14
IsoSchizAt work we use a proprietary system based on ClearCase; and personally I've used both CVS and SVN quite a bit.23:14
IsoSchizRight, the work system is actually pretty good at simple syncs/merges between branches, but falls down if you try to do anything slightly clever like I was describing above.23:15
mwhudsonbzr _can_ get confused if you have criss-cross merges23:15
mwhudsonthough the new-ish 'lca' merge algorithm is much better at those23:16
IsoSchizIs there a description of how the algorithm works anywhere?23:16
mwhudsonfor lca, i'm not sure23:17
IsoSchizWell, anyway, thanks guys, this has been really interesting and useful!23:17
mwhudsonIsoSchiz: http://revctrl.org/ThreeWayMerge is an interesting starting point23:17
NfNitLoopI guess I haven't had merges that complex...23:20
* NfNitLoop reads up. 23:20
abentleymwhudson, IsoSchiz: LCA merge is described here: http://doc.bazaar-vcs.org/latest/developers/lca-merge.html23:26
IsoSchizabentley: Thanks. :-)23:28
igcmorning23:28
pooliehello all23:34
mwhudsonhi poolfool23:34
mwhudsonargh23:34
mwhudsonhi poolie23:35
poolie??23:35
abentleylifeless: ping23:35
pooliemwhudson: what was that?23:35
mwhudsonpoolie: errant tab completion23:35
jammorning poolie23:35
Odd_Bloke'Morning' all.23:37
Odd_BlokeWell, igc and poolie. :p23:37
igchi Odd_Bloke - how's things?23:37
poolieoh i see23:38
pooliehello23:38
Odd_BlokeNot bad, not really doing as much revision as I should be.23:39
Odd_BlokeI've spent the majority of this evening learning Elvish, rather than actually doing something useful. >.<23:39
poolfoolmwhudson: hello23:42
NfNitLoopOdd_Bloke: Learn Esperanto instead!  :D23:45
LeoNerdEO is lovely23:45
LeoNerdMakes you realise how odd and annoying English is23:45
* NfNitLoop akordas. ;) 23:45
NfNitLoop#bzr & ##esperanto are why I'm on this irc server.  :p23:46
Odd_BlokeEsperanto is more useless than geeky... :p23:47
NfNitLoopSuit yourself.  :)23:48
* mbt actually wants to learn Esperanto, but hasn't had the time.23:48
radixesperanto? come on, that's not nearly useless enough. Now *Lojban*.23:48
NfNitLoopI actually looked into Lojban.23:49
NfNitLoopI had a friend who was very into it and talked about it all the time...23:49
NfNitLoopbut when asked, couldn't actually *say* anything in it.  :p23:49
radixheh23:49
Odd_BlokeTo be fair, all I'm learning is how to write English using the Elvish Tengwa, not a whole new language.23:49
NfNitLoopOdd_Bloke: aah, that's always fun.23:50
NfNitLoopI've done the same w/ esperanto and hiragana. :p23:50
jamradix: you beat me to bringing up Lojban23:59
jamnot that I know it :)23:59
radix:-)23:59

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