/srv/irclogs.ubuntu.com/2007/09/25/#bzr.txt

=== BasicOSX [n=BasicOSX@216.243.156.81.real-time.com] has joined #bzr
=== jelmer_ [n=jelmer@157pc196.sshunet.nl] has joined #bzr
=== jelmer_ is now known as jelmer
=== poolie [n=mbp@ppp112-44.static.internode.on.net] has joined #bzr
pooliehello12:29
=== BasicOSX [n=BasicOSX@warden.real-time.com] has joined #bzr
=== ipkiss [i=ipkiss@nat/ecp/x-de0f73d1ca537c0b] has joined #bzr
=== keir [n=keir@206-248-134-7.dsl.teksavvy.com] has joined #bzr
=== fo2 [n=fog@213-140-22-78.fastres.net] has joined #bzr
igcmorning12:59
mgedminwhen I bzr push a branch to my webserver with bzr+ssh://, how can I tell it to create an up-to-date working tree as well?01:01
=== cprov [n=cprov@canonical/launchpad/cprov] has joined #bzr
pooliemgedmin, hi,01:02
pooliei'm not 100% sure this will work, but have you tried running 'bzr checkout' on that location?01:03
=== mgedmin finds a description in 'bzr help working-trees'
mgedminyes, bzr checkout . works, but bzr's help tells me I will have to manually ssh into the server and run bzr update in that directory after every push01:03
mgedmin(or look for some plugins to automate that)01:03
=== jml [n=jml@dsl-210-15-197-192-static.TAS.netspace.net.au] has joined #bzr
=== pete__c [n=pete@032-463-246.area7.spcsdns.net] has joined #bzr
=== fo2 [n=fog@213-140-22-78.fastres.net] has left #bzr []
igcbbiab01:28
lifelessmgedmin: there is a plugin that will invoke update for you on the remote server01:44
=== cprov is now known as cprov-afk
pooliespiv, do you see the new bug about ^c in the smartserver?01:52
=== spiv looks
igclifeless: Assuming packs contain plain knits, how often are we expecting to be joining a plain knit source to an annotated knit target?02:07
=== n2diy [n=darryl@wlk-barre-208-103-148-58.dynamic-dialup.coretel.net] has joined #bzr
lifelessigc: when we export a pack branch for a knit user02:19
lifelessigc: its ok for it to be slow if thats your concern02:20
igcyes it was02:20
igcso command wise, we're talking pull or branch right?02:20
lifelesspush02:20
lifelessand pull02:20
lifelessand in rare cases upgrade02:20
igcthanks02:21
lifelessits not ideal for it to be slow, but its tolerable02:21
ubotuNew bug: #144627 in bzr "TooManyConcurrentRequests raised when bzr+ssh push is interrupted" [Undecided,New]  https://launchpad.net/bugs/14462702:21
lifelessdo you see why your logic was flawed ?02:21
igcyes02:21
lifelesscool02:21
=== AfC [i=andrew@office.syd.operationaldynamics.com] has joined #bzr
=== jml_ [n=jml@ppp108-61.static.internode.on.net] has joined #bzr
=== jml_ is now known as jml
lifelessjelmer: oh btw, did you want to use the bzr pqm? pqm is totally happy to have multiple projects...02:57
lifelesspoolie: the index change in your branch - shoot that to bzr.dev directly please02:59
poolielifeless,  the docstrings? i thought i did02:59
lifelessthe __repr__02:59
lifelessI'm just checking for performance regressions in your patch [unlikely but needs to be done] 03:00
ubotuNew bug: #144633 in bzr "KeyError for BzrCheckError.message" [Medium,In progress]  https://launchpad.net/bugs/14463303:00
poolielifeless, cherrypicking addition of a repr is not going to be very high on my list03:08
poolieunless you particularly want it in main03:09
lifelessI'll do it then03:11
lifelessI want nothing in my branch03:11
lifelessthats where I'm heading, and thats clearly 'done' as a piece of code, so no reason not to get it into bzr.dev03:11
lifelessok its on its way03:16
lifelesspoolie: your patch is about 1/2 second slower consistently03:23
lifelesspoolie: I haven't tracked it down yet03:23
pooliewhich one?03:23
=== herzel [i=herzel@gateway/tor/x-7a7ae9847258843d] has joined #bzr
lifelessI just merged from pack-repository03:24
=== jamesh [n=james@canonical/launchpad/jamesh] has joined #bzr
pooliei'm glad you checked then03:32
=== poolie reads bialix's second win32 patch
lifelesspoolie: did you find all tests passing ?03:37
=== metze_away is now known as metze
lifelesspoolie: one thing I'm having some trouble telling with your patch is if it causes more index instances to be created03:46
lifelessI think it doesn't03:47
=== jml_ [n=jml@ppp108-61.static.internode.on.net] has joined #bzr
=== NamNguyen [n=namnt@203.162.163.50] has joined #bzr
pooliewill just finish this review then look04:00
pooliespiv, rise and shine :)04:01
spivpoolie: I'm here :P04:01
poolie:)04:04
=== jml__ [n=jml@ppp108-61.static.internode.on.net] has joined #bzr
=== jml [n=jml@ppp108-61.static.internode.on.net] has joined #bzr
=== metze [n=metze@ip-217-172-181-76.mx-netz.de] has joined #bzr
=== Verterok [n=ggonzale@75-108-235-201.fibertel.com.ar] has joined #bzr
Verterokmoin04:47
poolieVerterok, hi04:49
poolielifeless, so do you know if there's a problem with that patch, or do you want me to look at it?04:49
lifelesspoolie: I've merged it04:50
pooliethere's no performance problem?04:50
lifelessits within the noise factor04:50
lifelessit looked 1/2 sec higher, but its possibly just noise04:51
lifelessthere *may* be an issue with new indices being made when we should use existing ones, but its not showing up on incremental commit, and I alread knew of latent issues there04:52
=== herzel [i=herzel@gateway/tor/x-ab92dd9f8374c7b4] has joined #bzr
=== marianom [n=marianom@ubuntu/member/marianom] has left #bzr []
abentleyI hate the way everyone just assumes everything's on Launchpad.05:01
abentleyToday I found out that people have been filing bugs on my branch of trac+bzr for months now.05:02
abentleyWith no one bothering to tell me about it.05:02
lifelessigc: ping05:03
igchi lifeless05:04
lifelessabentley: there is a flag to tell lp if it should consider itself to be the bug tracker05:04
lifelessabentley: or not. Is that set for bzr-trac ?05:04
abentleyHow was I supposed to know trac+bzr was even in Launchpad?05:04
lifelessigc: I replied to your review of moving weave code out; did you re-reply ?05:04
lifelessabentley: oh hmm, thats a tougher one to answer :)05:05
poolieabentley, that is a good question05:05
=== igc checks
pooliehowever, it's supposed to  make it hard for people to file bugs if it's not approved by the owner05:05
poolieif someone else claimed to be the owner though...05:05
lifelessigc: cause I'd like to merge it :)05:06
igcI'm yet to reply ...05:06
igcwe can cover it now if you like (i.e. here)05:07
lifelessplease05:07
igcassume the first issue isn't ...05:07
igci.e. the duplication is ok05:08
abentleyLooks like Yann Houdique registered it way back when.05:08
igcI'd like the get_revision_graph API back there with just a docstring ...05:09
igcrelying just on interface tests feels ...05:09
igca bit of a stretch :-)05:09
=== igc looks ar 2nd issue again
=== mlh_ [n=mlh@c211-30-211-232.belrs1.nsw.optusnet.com.au] has joined #bzr
igclifeless: I'm ok with the 2nd explanations as well, altohugh it might to good to put a comment in to that effect in the ...05:11
igc_get_revisions() method for weaves say.05:11
igcthat's it ...05:11
lifelessigc: there is a comment there.05:11
lifelessigc: that was my point on the second one :)05:11
igcdo you want an email summarising that?05:11
lifelessigc: AIUI its 'put a stub NotImplemented get_revision_graph method on the base class'05:12
igcyep05:12
lifelessigc: I think I can get by without a mail :)05:12
igclifeless: that comment I was asking for ...05:15
igclooking again, putting it in _get_revisions in repository.py would be good because ...05:16
igcright now, the docstring says "without sanity checks" and ...05:16
igcyou then proceed to do some I think?05:16
lifelessigc: mmm05:17
lifelessits checked for being a revision id or not05:17
lifelessbut the results are not checked for sanity05:17
=== mlh_ [n=mlh@c211-30-211-232.belrs1.nsw.optusnet.com.au] has joined #bzr
poolieabentley, i suggest what you do now, if you haven't already, is claim the project and then tell it bugs are not tracked in lp05:24
poolieunless in fact you do want to track them there05:24
abentleyYeah, I might track it there.05:24
abentleyBut in fact, I wasn't aware that anyone even cared about trac+bzr05:26
lifelessabentley: its one of the first questions people at conferences put to me05:28
lifeless'its written in python, cool. Does it integrate with trac?'05:28
abentleyWell, my answer would be "Kinda.  For it to integrate properly, either Trac or Bazaar would have to change architectures"05:29
lifelessthats true05:30
lifelessI usually just say 'there is a plugin for trac, but I don't have personal experience with it'05:31
pooliei'm going to take a lunch break05:37
pooliebiab05:37
lifelessgood idea05:37
coryI installed trac+bzr at one point out of curiosity.  What sort of differences are you saying are really irreconcilable?05:47
abentleyThey want to know what was the last-modifying revision of a directory, even for directories that aren't even branches.05:48
abentleyThat's the sort of thing.05:49
abadger1999Oh cool.  It's an abentley and he's talking trac+bzr stuff ;-)05:50
coryYeah, that sort of thing doesn't really bother me, either because I expect it could be reasonably easily made optional in trac or omitted/lied about by trac+bzr when it's difficult/impossible to get.05:51
abentleyYeah, but people bitch about the lie.05:53
cory:)05:53
jelmerlifeless: Yes, it would be very nice if we could use the bzr pqm.05:53
abentleySeriously.  Look in Launchpad, and you'll see people filing bugs about the null: and current: revisions, even though they're documented in the README.05:54
lifelessjelmer: Cool. Can you mail me a list of initial committers, and the build rule you want executed, plus where the writable location for the main trunk is (we could put that on bazaar-vcs.org if you like, I don't think poolie would object)05:55
abadger1999heh, abentley I commented on that bug and added a patch to make them slightly better.05:55
abentleyabadger1999: if you look at the scrollback, you'll see that I was not aware that any launchpad activity was taking place.05:56
abadger1999Yep.  I saw that.05:56
poolielifeless, np here05:56
abadger1999I was looking for you earlier to ping you about it.05:56
=== igc food
abentleyabadger1999: Sorry, I've been busy.05:57
jelmerlifeless: ok05:57
abadger1999No problems, I fugred you were.05:57
abentleySo what did you want me to look at?05:57
abadger1999with the current: and null: changesets, I had two issues.05:58
abadger1999the important one is that they're messing up the trac timeline RSS feed.05:58
abadger1999Since it uses time.time() as its timestamp, everytime an RSS reader looks at it, it thinks there's a new entry when it's just current: re-occurring.05:59
abadger1999I added a patch to the lp bug to have it use the same timestamp as the last revision.05:59
abentleyThat's bogus.  This is why Atom has unique identifiers for postings.06:00
abentleyWhy not go the whole way and use the last revision instead of current:?  And how much performance degradation did you see?06:01
abadger1999I'm subscrbing to the feed via mugshot.06:02
abadger1999So all the fedora developers were getting popups saying that there was new activity every time mugshot polled the RSS feed for the timeline.06:03
abentleyWell, if RSS has unique IDS, that's bogus.  If it doesn't, you should be using Atom.  But my main concern about getting rid of current is the performance cost of determining the last-modified revision.06:05
lifelesswe could build a cache06:05
abadger1999Looking at the RSS feed, I don't see any ID :-(06:06
lifelessannotate each dir by whether paths under it changed06:06
abadger1999Do you know how to get trac to serve atom?  ?format=atom doesn't do it.06:07
lifelessbuild a dict {revid:{dirid:changed_revision}}06:07
abentleySure, but then you've got to do invalidation and stuff.06:07
abentleyWhich seems just as espensive as not having a cache.06:08
lifelessabentley: no invalidation really, its static for a given revision06:08
lifelessabentley: I was not proposing this for bzr itself btw06:08
coryHmm?  I see a guid, but it looks like it has a timestamp on the end...06:08
abentleyI'm talking about running trac against a repository with hundreds of branches.06:08
lifelessabentley: long term we should make answering the question cheaper; this is a proposal for the trac plugin to work with06:08
abentleyI'm not talking about the issue of last-modified-revision for versioned directories.06:09
lifelessoh, perhaps I am confused06:09
abentleyI'm talking about last-modified-revision for unversioned directories.06:09
abadger1999cory: Right06:09
lifelessabentley: *blink*, is there such a thing?06:10
abentleyFor Trac's benefit, we pretend there is.06:10
lifelessso any dir whether it exists or not ?06:10
abentleyNot "whether it exists or not"-- whether it exists as part of a versioned tree, or is used for layout in the repository.06:11
lifelessah I get you06:13
lifelessso reporoot06:13
lifelessreporoot/project06:13
lifelessreporoot/project/branch106:13
lifelessnoth reporoot and reporoot/project are given a 'last modified'06:13
lifelesss/noth/both/06:13
abentleyGiven the path a/b/c, 'a' may be a plain directory.  Its last-revision is 'current:'  'b' is a branch directory.  Its last revision can be the branch last revision.  'c' is a versioned directory, and is not physically present in the repo, just referred to by 'b'06:13
abentleylifeless: Right.06:14
lifelessso the 'corect' last modification needs to move forward when any branch under an unversioned dir has its tip change06:14
abentleyYes, you could do it that way in theory.06:15
lifelessfraught with holes doing it on push etc06:15
=== jml_ [n=jml@ppp108-61.static.internode.on.net] has joined #bzr
lifelessjust trying to understand the 'definition'06:15
lifelessI see what you mean about the model mismatch06:16
abentleyYeah.06:16
abentleySo now we have to define 'latest'.06:16
abentleyWe can't use the ancestry, because the branches may be unrelated.  Do we use the revision timestamp?  The time the tip was modified?06:17
lifelesswhat about stat of the dir ?06:18
coryThis is vaguely relevant: http://trac.edgewall.org/wiki/VcRefactoring#SupportforMultipleRepositories06:21
coryAt least just as confirmation that they might work on refactoring things for things structured like bzr.06:23
abentleylifeless: I don't think that helps.06:23
abentleyBecause if we're trying to find the latest revision, we must examine branches, not the directories containing them.06:23
lifelessif we accept that there is no well defined value06:25
lifelessthen we can just show a fake commit, no message other than 'last modified on xxx' etc06:26
abadger1999Right.  I don't mind the lie, I just want the lie to remain the same between real commits.06:28
abentleyBecause trac does recursive comparisons, I don't know if that would work.06:28
lifelessusing the dir stat would mean that adding a new branch or removing one would change the date06:29
abentleyIt could make the directory look like its contained directories weren't changing.06:29
abentley(except when branches were added or deleted)06:29
lifelessa commit id of date:secondssinceepoch06:29
lifelessmight be a half-decent way to represent this06:29
=== BasicOSX [n=BasicOSX@warden.real-time.com] has joined #bzr
abentleyabadger1999: I think it could be harmful if the lie *didn't* change when commits happened.  Which is I believe what lifeless is proposing.06:31
abadger1999That would be more confusing than now, true.06:32
abadger1999abentley: Is the current ancestry of current: to be trusted?  ie: bzr_repo.previous_rev('current:')06:44
abentleyI believe so.06:45
abentleyBeen months since I looked at the code though.06:45
igclifeless: a question about converting deltas between annotated and plain knits ...06:46
lifelesssure06:46
abadger1999abentley: k.  My patch takes the timestamp of that rev and applies it to current:06:46
igcparse_linedelta returns something different to what ...06:46
igclower_line_delta accepts ...06:47
igcit's works within ann-to-ann or plain-to-plain but ...06:47
igcnot across the two06:47
lifelessah yes06:47
lifelessthats my fault, I specialised it somewhat06:47
igcI'm concerned about ...06:47
igcchanging that because it will impact ...06:47
igcperforamnce undoubtedly06:48
igcshould I change it?06:48
lifelessso don't change it06:48
abentleyabadger1999: So that means you potentially have multiple timestamps for current06:48
lifelesswrite a converter06:48
abentleyActually, no, I guess not.06:48
igcsure06:48
abentleyYou just don't have per-directory accuracy on that timestamp.06:49
abadger1999Yeah. It's definitely a lie.06:49
lifelessbbiab06:52
lifelessigc: ring me if you need more info/discussion - going for lunch06:52
igcok06:52
=== orospakr [n=orospakr@bas4-ottawa23-1167863943.dsl.bell.ca] has joined #bzr
abentleyabadger1999: So the problem is that bzr_repo.previous_rev('current:') can be quite expensive.06:53
abentleyTheoretically less so for branch format 6.06:53
abentley(aka dirstate-tags)06:53
abadger1999abentley: hmmm.... is bzr_repo.previous_rev() expensive in general or only when finding for 'current:'?06:57
abentleyIt's certainly more expensive for current:.  It might not be cheap normally, either.06:58
abentleyFor current, it means scanning every branch in the repository.07:00
abentleyI'm off to bed.07:00
abadger1999'night.07:01
abadger1999Interesting.  I think previous_rev() loads the history for the entire repo whenever it's called (unless history has previously been cached)07:02
lifelessabadger1999: knits have no partial index facility07:12
lifelessabadger1999: so accessing one revision loads the index of all revisions07:12
abadger1999Ah.07:13
=== sevrin [n=sevrin@ns1.clipsalportal.com] has joined #bzr
=== liw [n=liw@a91-154-119-10.elisa-laajakaista.fi] has joined #bzr
=== arjenAU [n=arjen@ppp215-29.static.internode.on.net] has joined #bzr
lifelessigc: I've reinstated the stat cache on packs07:59
lifelessigc: 4 second hit on initial commit (for now), but 10 second win on incremental commit07:59
igcawesome!07:59
igcI'll take the 10 sec win on incremental :-)07:59
lifelesspfft08:00
lifelessI figure that we don't need the stat cache when the fileid is new08:00
lifelessso I'm going to add a special case for no_parents, passed into path_content_summary08:00
igcsounds good08:00
lifelessshould take it back to 1m2008:01
lifelessand keep the 10 second win08:01
=== liw [n=liw@a91-154-119-10.elisa-laajakaista.fi] has left #bzr ["It's]
lifelessso I now have 5 patches send in today08:01
lifeless*sent*08:01
lifeless(and not reviewed)08:01
igcI'm getting there - just sending mine to the ML now08:02
igcsent08:02
vilaI intent to review the transport put related one08:02
igcI'll swap you - one review for >1 reviews :-)08:02
vilaand hi all08:02
igchi vila08:02
=== jml_ is now known as jml
vilaigc: np, if you take in your swap the project delivery I must do today ;P08:03
lifelessigc: 1:M08:03
vilaabout pycurl/urllib, what about making urllib the default for http and pycurl the default for https ?08:05
vilaI'm a bit hesitant about it for coherence reasons, but on the other hand, we had many reports recently where pycurl failed were urllib worked...08:05
vilaand I don't like dropping cretificate verification for https08:06
lifelesscretans eh?08:06
vilalol08:07
vilayeah, better than greeks :)08:07
igclifeless: I'll do the path_content_summary review now unless you want a different one done 1st08:10
lifelessany order is fine08:10
lifelessigc: reviewed08:15
igcthanks08:16
lifelessigc: basically good; but you missed a large body of duplicate code in the tests08:16
igcok08:16
lifelessif you move the assertions into your helper and rename it, you'll be good to go08:17
igcnp08:17
=== pmezard [n=pmezard@nor75-4-81-56-59-92.fbx.proxad.net] has joined #bzr
lifelessigc: I've mailed you my current uncommitted-cause-its-experimental changes08:21
lifelessif you want to see how it performs on real hardware08:21
igcgot those08:21
lifelessbbiab08:21
=== hdima [n=hdima@idealer.cust.smartspb.net] has joined #bzr
=== AfC [i=andrew@office.syd.operationaldynamics.com] has joined #bzr
=== matkor [n=matkor@EUROCZESCI.wbs.ssh.gliwice.pl] has joined #bzr
=== Lo-lan-do [n=roland@mirexpress.internal.placard.fr.eu.org] has joined #bzr
pooliethanks for the review08:58
lifelessme?09:06
vilalifeless, poolie: looks like I'm 7 hours late to review the transport.put_file patch :-)09:09
lifelessvila: is it ok?09:09
poolieis there a problem with it?09:09
lifelessvila: or would you like it changed?09:09
poolielifeless, yes, you09:09
vilalifeless: no, at first read it's ok, it will break webdav again, but it's mentionned in NEWS (for other transport implementors) and land sufficiently early to be taken into account09:10
=== Stevage [n=chatzill@mail.pfxcorp.com] has joined #bzr
Stevagehello09:14
Stevagecan anyone help me get TortoiseBZR to work?09:14
StevageIt compiles, but it doesn't seem to create any icons09:14
Stevageit does create shell extensions though - but they don't do much, and the 'diff' command seems broken09:15
matkorStevage: pls fill bug report09:21
matkorbut I have not seen much work recently in that area ...09:23
Stevagehmm09:24
Stevagepity09:24
StevageI'd love to have tortoisebzr going09:24
=== pmezard [n=pmezard@dhcp26-226.enst.fr] has joined #bzr
matkorso fill bugreport and keep presure on developers ;)09:26
poolieStevage, alexander haro is the developer09:27
igclifeless: ping09:27
Stevageyeah just reading the README09:27
StevageI don't see that I installed it wrong, so I don't get it09:27
pooliesuggest you cc him on your mail to get his attention09:28
Stevagealso I think most of the shell extensions didn't appear09:28
Stevagewhat's his email?09:28
poolieamduser29 at gmail09:30
Stevageta09:31
Stevagehmm09:44
Stevageit seems to be trying to find some method called CommitCommand09:44
=== alla [n=alla@soy.cyber.com.au] has joined #bzr
Stevagewhich doesn't exist in bzr.dev/bzrlib09:45
=== n2diy [n=darryl@wlk-barre-208-103-148-58.dynamic-dialup.coretel.net] has joined #bzr
=== lifeless [n=robertc@ppp245-86.static.internode.on.net] has joined #bzr
=== james_w [i=jw2328@jameswestby.net] has joined #bzr
=== jeremyb [n=jeremy@unaffiliated/jeremyb] has joined #bzr
=== meuh [n=meuh@pdpc/supporter/active/meuh] has joined #bzr
=== LarstiQ [n=larstiq@cust.7.157.adsl.cistron.nl] has joined #bzr
Stevagehas bzr been radically reorganised recently?09:45
igcno09:45
igcperhaps that's a method in a plugin?09:46
Stevageoh no, maybe I'm just confused09:46
Stevageyeah it is09:46
Stevagethere's a CommitCommand.py09:46
StevageI don't know why it can't find it09:46
igc:-)09:46
Stevage(I don't really speak python)09:46
Stevage        command_mod = __import__('commands', globals(), locals(), [command_filename] )09:46
Stevage        command_mod = getattr(command_mod, command_filename)09:46
Stevage        command_class = getattr(command_mod, command_filename)09:46
Stevageone of those is failing09:46
Stevagecommand_filename is "CommitCommand"09:47
pooliethat seems a bit strange...09:47
pooliecan you put the traceback in a  pastebin?09:47
Stevageok it's the first line09:48
Stevagethere's no traceback09:48
Stevageit's just an exception09:48
Stevageum09:48
Stevagemaybe that's nonsensical09:48
lifelessigc: yo09:50
StevageI don't know how to get debugging output from it09:50
igcin the tests, where does the size "22" come from?09:50
Stevagethose three lines of code above look pretty weird to me though09:51
Stevageespecially #2 and #309:51
lifelessigc: which test09:56
igctest_file_content_summary_executable09:56
lifelessoh, thats the number of bytes in the file09:57
lifelessthe content is generated by build tree - 'contents of path\n' IIRC09:57
igcok - thanks09:57
igcnot that easy to follow that in the code09:58
igcgot it now10:00
=== mvo [n=egon@p54A67BA0.dip.t-dialin.net] has joined #bzr
=== mrevell [n=matthew@canonical/launchpad/mrevell] has joined #bzr
ubotuNew bug: #144693 in bzr "remove {Branch,Tree}.print_file" [Low,Confirmed]  https://launchpad.net/bugs/14469310:06
Lo-lan-doHmpf.10:08
=== Lo-lan-do gets bitten again
Lo-lan-doIs there a way of having "bzr status" display paths relative to the current directory?10:08
matkorWhat is network usage in bzr over sftp comparing to rsync over ssh ? More or less ?10:08
Lo-lan-doIt currently shows, f'rinstance, "foo/bar.txt" even when I'm in foo/10:09
=== fog [n=fog@debian/developer/fog] has joined #bzr
matkorI mean doing rsync local remote vs  bzr commit local, bzr push remote ?10:09
Lo-lan-doSo "bzr add foo/bar.txt" (cut and paste) fails10:09
igclifeless: that review sent to the list now fyi10:12
=== poolie_ [n=mbp@ppp112-44.static.internode.on.net] has joined #bzr
igcthat knit join patch merged to bzr.dev now too10:14
matkorI have org-branch and branched from it modified-branch... now I want cherrypick some changes from modified-branch (I know which revisions) back to org-branch, what is easies way to do it ?10:20
=== pbor [n=urk@host126-78-dynamic.5-87-r.retail.telecomitalia.it] has joined #bzr
=== allenap [i=allenap@nat/canonical/x-edc4d411a31e49a6] has joined #bzr
pborhi10:25
pbornot sure if it is on topic here, but if I branch from a launchpad import, will I be able to then push to the upstream svn repo with bzr-svn?10:25
=== pbor tried to to a local branch directly from the svn repo but it totally killed my machine... it required 1,5 gigs of mem
=== igc food
pbormmm... I now realize that launchpad import is totatlly stale anyway, so nothing useful :/10:32
lifelessigc: thanks10:38
mwhpbor: no, launchpad imports are different from bzr-svn imports10:43
mwhpbor: which import is it?  i can try to find out why it's stale10:44
pbormwh: gedit10:45
=== asabil [n=asabil@62.70.2.252] has joined #bzr
mwhoh oops, that's still importing from anoncvs.gnome.org10:46
pbormwh: just out of curiosity, how do launchpad imports and bzr-svn imports differ?10:50
mwhwell, the glib answer is that they are created by different pieces of software :)10:51
mwh(launchpad imports are done by cscvs)10:51
mwhmore technically, launchpad imports have random revids and bzr-svn imports have deterministic ones10:51
pborokay10:51
mwhso if you run a cscvs import twice you'll get (as far as bazaar can tell) different histories10:52
mwhthere are different trade offs10:52
mwh(roughtly speaking what bzr-svn does is harder and much more of a commitment in some ways)10:52
=== gabe [n=gabriel@91.84.56.254] has joined #bzr
=== gabe [n=gabriel@91.84.56.254] has joined #bzr
pbormwh: btw, looks like this is my problem with yesterday's import https://bugs.launchpad.net/bzr-svn/+bug/5425310:59
ubotuLaunchpad bug 54253 in bzr-svn "Excessive memory usage in bzr-svn" [Undecided,Confirmed] 10:59
mwhyou can often get away with killing the process and having it resume from some point11:01
mwhcurrent thinking on that bug is that it's a problem in the python-svn bindings i think11:01
pbormwh: how do I resume?11:01
mwhwhat stage had it got to when you killed it?11:02
pborno idea, I had to hard reboot :/11:02
mwhugh11:02
lifelesspbor: rather than doing bzr branch, do 'bzr init --dirstate-with-subtree', then do 'bzr pull svn://'...11:02
pborlifeless: what does that give me?11:03
lifelessif you hit ctrl-c11:04
lifelessjust do 'bzr pull svn://' again11:04
lifelessand it will resume11:05
pborah11:05
=== bigdo2 [n=scmikes@72-197-8-8-arpa.cust.cinci.current.net] has joined #bzr
=== Mez [n=Mez@ubuntu/member/mez] has joined #bzr
lifelessmwh: you might like to start dogfooding packs for codeview; we're closing in on a first release of it in the next week or two11:24
=== asabil [n=asabil@62.70.2.252] has joined #bzr
lifelessmwh: if it sucks for you, *now* is the time to hear.11:24
jrydberg_lifeless: what's the status of packs?11:24
lifelessmwh: there's two known issues may affect you; annotations will be no longer cheap in the first release (plain-knits always, and no cache implemented yet). Secondly partial index reading has not landed yet.11:25
lifelessjrydberg_: good.11:25
lifelessjrydberg_: initial commit is nice and fast :)11:25
jrydberg_lifeless: what about push and pull?11:25
lifelessinitial push runs about 20% slower than rsync11:26
lifelessditto pull11:26
lifelessneedless to say this is hugely faster than knits.11:26
jrydberg_how about incrimental updates?11:26
lifelessthey are ok, but not great because the text indices are read entirely still, and they are much larger than the individual indices that knit repos have11:27
lifelessso we're reading more index data11:27
lifelessthough there is plenty of room to optimise that even before partial index reads come in11:27
lifelesswe don't do ghost filling automatically in packs11:28
lifelessso we can examine just incremental data, and thats in the most recent (and smallest) packs, so checking them first for content will usually be a win11:28
mwhlifeless: makes sense11:28
jrydberg_lifeless: i see11:28
mwhlifeless: can i get a bzr.dev11:28
mwhlifeless: can i get bzr.dev in packs somewhere?11:29
lifelessfwiw, by nice and fast on initial commit, its 1m30 wall clock for me in my latest not-quite-committed stuff; thats the same as hg on this machine (well actually a little faster)11:29
lifelessmwh: yes; see my dogfooding emails to the list11:29
mwhlifeless: subject?11:31
=== Mez [n=mez@ubuntu/member/mez] has joined #bzr
jrydberg_lifeless: why do we have so large indexes then?  can't we have a pack-index, and then have per-pack indeces (either as a separate file, or in the pack header) ?11:32
=== sverrej [n=sverrej@pat-tdc.opera.com] has joined #bzr
lifelessjrydberg_: thats what we have11:34
lifelessjrydberg_: its just that rather than N knit indices11:34
lifelesswhere N is the number of file ids11:34
jrydberg_lifeless: well, the pack index doens't have to be that big, does it?11:34
jrydberg_pack: <contained revisions>11:34
lifelesswe have one text index per pack, which has the data for all N fileids-versions in that pack11:34
lifelessjrydberg_: we limit the number of packs to prevent latency explosion due to one pack per commit, which would be going back to the arch days11:35
jrydberg_so you're doing auto repacking, is what you're saying?11:36
lifelessyes11:36
lifelessso the text index size is not excessive, its smaller than the combined .kndx files11:37
lifelessits just that we're reading more than we need to11:37
jrydberg_when i was experimenting with a blob-like format, i did the repacking on incrimental updates (push or pull)11:37
lifelesshow far did you get; what conclusions did you draw?11:38
jrydberg_the only conclusion i came to was that it was often smarter to fetch a bit more data, if the data is grouped in a fetch-frendly way, than to do all kind of smart stuff on the client side to minimize the amout of data to fetch11:40
jrydberg_but that isn't really rocket science11:40
lifelessyeah11:40
lifelesslatency hurts11:40
lifelesssmall reads often increase latency11:41
jrydberg_i also experimented with using already defined container formats11:41
jrydberg_such as each blob being a .zip11:41
jrydberg_but the zip-format is kinda borked11:41
=== arjenAU [n=arjen@ppp215-29.static.internode.on.net] has joined #bzr
=== zyga [n=zyga@ubuntu/member/zyga] has joined #bzr
lifelessjrydberg_: 7z might have been reasonable11:42
lifelessjrydberg_: but being able to controll index locality of reference seemed quite important to me11:43
lifelessto make client reads more effective without insanely complex logic on the read size11:43
=== asabil [n=asabil@62.70.2.252] has joined #bzr
=== lapthrick [n=mathrick@users.kollegienet.dk] has joined #bzr
=== lapthrick [n=mathrick@users.kollegienet.dk] has joined #bzr
jrydberg_mmm11:45
=== lapthrick [n=mathrick@users.kollegienet.dk] has joined #bzr
lifelessjrydberg_: the current index doesn't do this, but the one in development by keir does11:47
lifelessit groups nodes by the graph, giving graph walking with less roundtrips (and roundtrips are our biggest problem)11:47
lifelessjrydberg_: packs are still knit delta based11:48
lifelessjrydberg_: please, dogfood :)11:48
jrydberg_hehe11:48
jrydberg_how many files are fetched before the actual pack-data is started to be brought in?11:49
lifelessjrydberg_: well, theres .bzr/format, .bzr/repository/format11:50
lifelessjrydberg_: then .bzr/repository/pack-names (the index of packs)11:50
=== lapthrick [n=mathrick@users.kollegienet.dk] has joined #bzr
=== lapthrick [n=mathrick@users.kollegienet.dk] has joined #bzr
lifelessjrydberg_: I'm out for the night I think11:52
jrydberg_you need to figure out the head of the branch too?11:52
=== lapthrick [n=mathrick@users.kollegienet.dk] has joined #bzr
lifelessjrydberg_: well depends on the operation you're doing; if you need a branch info its .bzr/branch/format and .bzr/branch/somethingorother11:52
lifelessciao11:52
mwhhm11:53
mwh../bzr/pack-repository.knits/bzr get http://people.ubuntu.com/~robertc/baz2.0/repository11:53
mwhseems to be doing an awful lot of nothing11:53
lifelessmwh: I've just updated the pack-repository.knits branch FWIW11:53
lifelessmwh: there is no progress bar at the moment11:53
mwhlifeless: oh11:54
mwhthat was probably it then11:54
lifelessciao, for real11:55
=== lapthrick [n=mathrick@users.kollegienet.dk] has joined #bzr
=== asabil [n=asabil@62.70.2.252] has joined #bzr
=== Mez_ [n=Mez@ubuntu/member/mez] has joined #bzr
mwhdoes keir irc?12:19
=== asabil [n=asabil@62.70.2.252] has joined #bzr
=== asabil [n=asabil@62.70.2.252] has joined #bzr
=== Mez [n=mez@ubuntu/member/mez] has joined #bzr
=== asabil [n=asabil@62.70.2.252] has joined #bzr
=== sabdfl [i=sabdfl@nat/canonical/x-ca265d16ed22ff60] has joined #bzr
=== bac_afk is now known as bac
=== asabil [n=asabil@62.70.2.252] has joined #bzr
=== asabil [n=asabil@62.70.2.252] has joined #bzr
sabdflhey revisionistas01:04
PengGood morning!01:05
=== Peng goes to bed.
sabdflnight pe01:05
sabdflng01:05
Peng:D01:05
=== asabil [n=asabil@62.70.2.252] has joined #bzr
=== asabil [n=asabil@62.70.2.252] has joined #bzr
=== schierbeck [n=daniel@dasch.egmont-kol.dk] has joined #bzr
=== Zindar [n=erik@stockholm.ardendo.se] has joined #bzr
=== ignas [n=ignas@office.pov.lt] has joined #bzr
ignashi01:27
ignasis there a way to make bzr display relative paths for bzr st?01:27
datonot at the moment01:27
matkorHow bzr handles soft links ? /branch-root/link-to-dir-out-of-branch ?  Will link-to-dir-out-of-branch be threated as subdir and versioned ?01:32
=== asabil [n=asabil@62.70.2.252] has joined #bzr
mwhthe symlink will be versioned01:40
=== asabil [n=asabil@62.70.2.252] has joined #bzr
=== mrevell is now known as mrevell-lunch
matkormwh: No way to force bzr to version contents of symlink not symlink itself ?01:46
mwhnot that i know of01:46
=== asabil [n=asabil@62.70.2.252] has joined #bzr
=== asabil [n=asabil@62.70.2.252] has joined #bzr
mwhAfC: hi, are you involved in the gnome-java bindings?02:02
lifelessmatkor: we do version the contents - the thing pointed at02:07
lifelessmatkor: I think you'd need to give us some use cases, help us design what you'r interested in bzr doing, for us to help you get bzr to do it02:07
lifelessmwh: ping02:08
mwhlifeless: hi there02:08
lifelessdid you get a pack error ?02:08
mwhlifeless: yes i dud02:08
mwhdid02:08
lifelesswith the latest branch ?02:08
mwhyes02:09
lifelessok02:09
lifelesstry this02:09
lifelessbzr init --experimental02:09
lifelessbzr pull /path/to/your/knit/based/bzr.dev02:09
=== cprov [n=cprov@canonical/launchpad/cprov] has joined #bzr
lifelessbzr push ../newpath02:09
lifeless(this should make a fresh packs repo locally and clone it to a second fresh packs repo02:09
mwh'bzr' here being my pack-repository.knits tip ?02:10
lifelessyes02:10
mwhok02:10
lifelessrevno 278302:10
mwhthat's what i have02:10
lifelessyay02:12
mwhok, it's running02:12
lifelessigc's patch has landed, time for the next pack format change tomorrow02:12
lifelessif this works I probably have something weird in my repo02:13
lifelesswould not surprise me :)02:13
=== asabil [n=asabil@62.70.2.252] has joined #bzr
lifelesshow did it go ?02:15
abentleyHey, when the going gets weird, the weird turn pro.02:15
=== marianom [n=marianom@ubuntu/member/marianom] has joined #bzr
lifelessabentley: :)02:15
lifelessabentley: Are you comfortable with packs being cached-annotation-less in their first iteration ?02:15
lifelessI am, though more from necessity than desire.02:16
mwhlifeless: first pull completed02:16
lifelessmwh: ok, you now should have a .bzr/packs/*02:16
lifelessmwh: with one pack in it02:16
mwh(i'm on my powerbook this week, slooooow)02:16
=== asabil [n=asabil@62.70.2.252] has joined #bzr
mwhlifeless: .bzr/repository/packs ?02:17
lifelessyes02:17
mwhok, then yes02:17
lifelessI am asleep02:17
lifelessthis is a ghost typing02:17
mwhnoted02:17
lifelessmwh: so, try a push02:17
mwhtrying02:17
lifelessit should be a) successful, and b) pleasantly faster02:18
abentleylifeless: As something we release?  Seems like they couldn't be default if they had a performance regression like that.  But an optional format for those who understood the tradeoffs would be okay.02:18
lifelessabentley: I am comfortable with that.02:18
lifelessabentley: I think it gives us something to talk to the mozillas of the world with02:18
abentleySure.02:19
lifelessabentley: btw, I have incremental commits in the moz tree down to 24 seconds02:19
=== sabdfl [i=sabdfl@ubuntu/member/pdpc.silver.sabdfl] has joined #bzr
lifelessand a fairly good idea of where I'm going to drop the next 10 seconds off02:19
lifelessabentley: which *should* drop off on initial commit too02:20
lifelessmwh: has it finished?02:21
mwhlifeless: no02:21
lifelessmwh: is it showing  aprogress bar ?02:21
mwhno02:21
lifelessis your cpu locked at max?02:21
mwhyes, pretty much02:21
lifelessif your disk is ticking over, not idle but not busy, you are cpu bottlenecked02:22
mwhcertainly seems that way02:23
lifelessyou can see how much data has been copied by looking in .bzr/repository/uploads02:23
mwhseems like it's about 1/3 done02:23
mwhlifeless: the push failed in the same way02:25
lifelessso, you are probably locked in gunzipping the knit segments.02:25
mwh    next = self.get_parents(cursor)[0] 02:25
mwhIndexError: tuple index out of range02:25
lifelessmwh: ah, its the old issue I mentioned in my how to dogfood notes.02:26
lifelessbzr has an unreferenced text02:26
lifelesslook in .bzr/repository/packs02:26
lifelessin the new repo, is it empty?02:26
mwhno, it has a 54 meg file02:27
lifelessgood02:27
lifelessI know what the problem is; its bad data in bzr.dev that knit based repos tolerate02:28
mwhok02:28
lifeless(bad data == an index that is not quite right)02:28
lifelessyour bzr.dev in pack format will work fine02:28
lifelessit just can't be cloned by bzr because bzr will not copy quite enough data02:28
mwhok, i'll play with pointing loggerhead at that in a bit02:29
lifelessthere is a patch to run on the knit format repo to fix this; its been written by Aaron, and tweaked by spiv02:29
mwhok, i saw those mails go by02:29
lifelessnot *quite* up for using it yet, when we do what I asked you to do will work02:29
lifelessright, please let me know how loggerhead plays with packs.02:29
mwhfirst: lunch02:30
mwh:)02:30
lifelessnight02:33
lifeless*yawn*02:33
=== asabil [n=asabil@62.70.2.252] has joined #bzr
=== mw [n=mw@189.146.13.202] has joined #bzr
=== asabil [n=asabil@62.70.2.252] has joined #bzr
=== asabil [n=asabil@62.70.2.252] has joined #bzr
lapthrickmwh: loggerhead's loggerhead seems very much dead02:42
lapthrickat http://www.lag.net/branches/loggerhead/loggerhead_dev/02:42
AfCmwh: pong, yes02:45
mwhAfC: and you use bzr already for all the java-gnome development?02:45
AfC"already"?02:45
mwhehm ;)02:46
AfCWe've been using Bazaar since ...02:46
=== AfC does bzr log -r 0..1
mwhlapthrick: that's nothing to do with launchpad02:46
mwhlapthrick: launchpad's is at urls like http://codebrowse.launchpad.net/~mwhudson/loggerhead/production/changes02:46
lapthrickmwh: I never said it had anything to do with launchpad, I was just pointing out in the hope you'd be more able to fix it02:47
=== mrevell-lunch is now known as mrevell
mwhlapthrick: oh, sorry, misread02:47
AfCmwh: well, since the beginning. First commits (which imported a huge whack of stuff) were Oct '0602:47
mwhlapthrick: not my site02:47
mwhAfC: cool02:47
AfC829 revisions, 14 committers. I suppose that's starting to edge out of small02:49
lapthrickAfC: I still don't understand how you can put up with that ugly lump of a language :)02:49
AfCPython? That's why we ditched it :)02:50
=== herzel [i=herzel@gateway/tor/x-c1bf8afd4dde4d29] has joined #bzr
=== allenap [i=allenap@nat/canonical/x-7309a8c9293a563b] has joined #bzr
=== grimeboy [n=grimboy@85-211-244-198.dsl.pipex.com] has joined #bzr
pborlifeless: I am now trying your suggestion of using bzr init --dirstate-with-subtree', then do 'bzr pull svn://', but it doesn't seem to help much:03:17
pborlifeless: resume works but ends up using the same amount of memory03:17
pbor(incidentally, resume is really slow, unless it's the progress indicator that it is not clear)03:19
corporate_cookieabadger1999: I'm having a bit o' trouble building a rpm for bzr-0.17; could you perhaps lend a bit of a hand ?03:19
jelmerpbor: how much revisions are you trying to pull?03:20
pborjelmer: 592303:22
pborjelmer: I am not interested in the whole history... can I tell it to start from a revision? (I recall git-svn doing something similar, but I am not sure if it makes sense for bzr)03:23
jelmerpbor: no, that's not possible in bzr yet (requires a feature called historyhorizon)03:23
jelmerpbor, you can fetch sets of 500 revisions for example, by running 'bzr pull -r500', 'bzr pull -r1000', etc03:24
pborjelmer: will that help keeping the memory usage under control?03:24
=== ignas [n=ignas@office.pov.lt] has left #bzr ["Download]
jelmerpbor: yes, it will free the memory after each set of revisions03:26
pborjelmer: ok, thanks for the suggestion.. /me tries03:26
pborjelmer: any chance to implement the same workaround of hg? Or will the python-svn bug be resolved soon?03:27
jelmerpbor:it's not just the memory usage of svn.ra.get_log() that's a problem03:27
jelmerpbor: subversion seems to've fixed a bunch of memory problems in 1.503:29
pborjelmer: ok... though if that workaround at least makes hg usable I hoped the same could work for bzr03:29
pborjelmer: btw, it seems the -r trick is working very well03:30
pborjelmer: I am already up to -r 300003:30
pborjelmer: maybe for now the conversion could be batched in blocks of 1000 revisions03:31
pboror something like that03:31
Lo-lan-doI think I saw something ot that effect in a NEWS file recently :-)03:31
=== vila [n=vila@lec67-4-82-230-53-244.fbx.proxad.net] has joined #bzr
jelmerpbor: that's a very large amount of work I'm afraid03:32
Lo-lan-doIsn't that what revno. 711 was about?03:33
pborjelmer: okay, so maybe this trick should be at least documented... one could whip up a quick shell script to parse svn info and then run bzr pull -r$i+500 until it recahes head :)03:34
=== sii [n=sii@tranquillity.sii.se] has joined #bzr
=== BasicOSX [n=BasicOSX@216.243.156.81] has joined #bzr
=== fog [n=fog@debian/developer/fog] has left #bzr []
=== p4tux [n=p4tux@189.169.63.63] has joined #bzr
=== bigdog [n=scmikes@72-197-8-8-arpa.cust.cinci.current.net] has joined #bzr
=== orospakr [n=orospakr@132.213.238.4] has joined #bzr
=== Mez_ [n=Mez@ubuntu/member/mez] has joined #bzr
=== niemeyer [n=niemeyer@200.140.230.150] has joined #bzr
abadger1999corporate_cookie: What's the error?04:36
corporate_cookieabadger1999:  i've got it : )04:36
corporate_cookiebut thanks for the responce04:36
abadger1999Cool :-)04:37
corporate_cookieim still a little green ...but i'm figuring stuff out04:37
=== corporate_cookie [n=richie@seraphim.asbury.edu] has joined #bzr
=== BasicOSX [n=BasicOSX@errant.real-time.com] has joined #bzr
=== hexmode [n=user@24.115.83.248.res-cmts.eph.ptd.net] has joined #bzr
=== zyga [n=zyga@ubuntu/member/zyga] has joined #bzr
=== sabdfl [i=sabdfl@ubuntu/member/pdpc.silver.sabdfl] has joined #bzr
=== bigdo1 [n=scmikes@72-197-8-8-arpa.cust.cinci.current.net] has joined #bzr
=== RichardL is now known as rml
=== niemeyer [n=niemeyer@200.140.230.150] has joined #bzr
=== Mez_ [n=Mez@ubuntu/member/mez] has joined #bzr
=== cprov is now known as cprov-lunch
pborjelmer: I let the pull from svn run with a script that pulled 100 revisions at a time but now it errors out in a somewhat surprising way:05:39
pborbzr: ERROR: Requested revision: u'4900' does not exist in branch: SvnBranch('svn+ssh://pborelli@svn.gnome.org/svn/gedit/trunk')05:39
pborbut...05:39
jelmerpbor: bzr revno's are per-branch05:39
pborURL: svn+ssh://pborelli@svn.gnome.org/svn/gedit/trunk05:39
pborRepository Root: svn+ssh://pborelli@svn.gnome.org/svn/gedit05:39
pborRepository UUID: 553ab114-d825-0410-8aca-8eebfce848a205:39
pborRevision: 592305:39
jelmerthe svn revno is per-repository05:40
pborjelmer: mmm, so is it normal?05:40
pborah, so it discarded all revisions that didn't affect trunk?05:40
jelmerwell, didn't fetch them at all05:40
pborneat!05:41
pborso one more pull and I am done!05:41
pbor:)05:41
jelmerthis sort of stuff (memory issue as well) is documented in bzr-svn trunk, and will be in 0.4.405:41
pborjelmer: great, thanks a lot for your help (and for bzr-svn!)05:42
pbornow I just need to figure out a patch to test my new toy05:42
pborbut first of all I'll push the import to a remote ssh, so that if I screw up I can just branch that05:44
=== BasicOSX [n=BasicOSX@errant.real-time.com] has joined #bzr
=== michelp [n=michelp@69-30-72-119.dq1sf.easystreet.com] has joined #bzr
=== zyga [n=zyga@ubuntu/member/zyga] has joined #bzr
=== kiko is now known as kiko-fud
=== jrydberg [n=Johan@c80-216-246-123.bredband.comhem.se] has joined #bzr
=== rml [n=Skippy@78.32.35.169] has joined #bzr
=== dpm [n=dpm@p54A135ED.dip0.t-ipconnect.de] has joined #bzr
=== asak [n=alexis@201-27-61-62.dsl.telesp.net.br] has joined #bzr
=== cprov [n=cprov@canonical/launchpad/cprov] has joined #bzr
=== bac is now known as bac_afk
=== quicksilver [n=jules@212.69.38.59] has joined #bzr
=== EdwinGrubbs [n=edwin@cpe-66-25-92-150.satx.res.rr.com] has joined #bzr
=== asabil [n=asabil@62.70.2.252] has joined #bzr
=== rml [n=Skippy@78.32.35.169] has joined #bzr
=== marianom [n=marianom@ubuntu/member/marianom] has left #bzr []
=== zyga [n=zyga@ubuntu/member/zyga] has joined #bzr
=== jrydberg__ [n=Johan@c80-216-246-123.bredband.comhem.se] has joined #bzr
=== GaryvdM [n=chatzill@mtngprs2.mtn.co.za] has joined #bzr
pborif I do bzr log |  less and then ctrl+C before it's finished bzr gives a traceback...08:10
pborwhich is a bit annoying since it triggers ubuntu bug reporting tool08:10
radixyeah, that seems to be new behavior08:11
radixor reintroduced behavior08:11
radix('q' instead of ctrl+C reproduces it just as well)08:11
james_wI think reintroduced as well.08:12
james_wis it a pipe error? (I can't remember the name)08:13
=== cprov is now known as cprov-afk
pboryep, IOError: [Errno 32]  Broken pipe08:13
=== fkumro [n=fkumro@pool-71-186-136-74.bflony.east.verizon.net] has joined #bzr
fkumroI'm just reading through the docs but I cannot find out what the command would be to revert a file to before a commit08:26
GaryvdMbzr revert08:26
fkumroheh I feel foolish08:27
GaryvdM:-)08:27
fkumrohow would I use it ? Specify the file and revno ? bzr revert file?08:28
=== herzel [i=herzel@gateway/tor/x-795fa8905baac061] has joined #bzr
radixfkumro: bzr revert -r revno file08:29
fkumrothanks again08:29
radixfkumro: if you don't pass "-r", it just reverts to the latest version (i.e. throwing out all changes only made in the working tree)08:29
ipkisssee bzr revert -h for more details08:29
fkumrogood to know that about the -r flag08:30
=== pmezard [n=pmezard@nor75-4-81-56-59-92.fbx.proxad.net] has joined #bzr
=== cprov-afk is now known as cprov
=== Mez_ [n=Mez@ubuntu/member/mez] has joined #bzr
=== asabil [n=asabil@ti0035a340-0469.bb.online.no] has joined #bzr
=== bac_afk is now known as bac
=== joseo [n=user@84.123.19.235.dyn.user.ono.com] has joined #bzr
joseohi09:09
joseoanybody knows if its possible to rename .bzr to something else like _bzr09:10
joseoI'm having problems with ftp uploaded and I think are related to this09:11
joseoso quiet here :)09:14
GaryvdMHi - sorry - don't know09:15
fkumroI would help but I just started using bzr for my projects today heh09:15
GaryvdMWhat are your problems?09:15
GaryvdMSteps to reproduce?09:16
james_wjoseo: no way apart from patching the source.09:17
joseoMe too I'm starting today09:17
joseoor trying09:17
joseo:)09:17
joseojames_w:okay, I see09:17
joseoIt's a pitty09:18
=== herzel [i=herzel@gateway/tor/x-c1976f286381567c] has joined #bzr
GaryvdMjoseo: What problems are you having?09:18
joseoGaryvdM: this -> bzr: ERROR: Generic path error: '/.bzr': error w/ stat: 550 CWD command failed. "/.bzr": Permission denied.)09:20
joseo09:20
GaryvdMWhat did you do to get there?09:21
GaryvdMe.g. what command?09:21
joseobzr push ftp://user:pwdf@ftp.drivehq.com --use-existing-dir09:22
james_wjoseo: that will push to the root of the server, you probably want to push to a subdir.09:22
joseoI know09:23
james_wbzr push ftp://user:pwd@ftp.../home/user/bzr/ or similar09:23
joseobut no difference09:23
lapthrickjelmer: hoho, you have fixed that push bug I see?09:23
joseobzr push ftp://joorce:gandalf@ftp.drivehq.com/PublicFolder/CocoaNotepad --use-existing-dir09:24
joseothis the desired command but no way09:25
GaryvdMjoseo: have you tried using another ftp client to see if you have permission to write there with another file?09:25
lapthrickis there something like bzr missing, but for checkouts?09:26
lapthrickas in, I want to know how out-of-date my checkout is09:26
Lo-lan-doI was wondering about that, and didn't find anything.09:26
lapthrickLo-lan-do: bueh :\09:27
lapthrickit'd be a good tool for those of us who only follow someone else's branches09:27
Lo-lan-doYeah.  I turned my checkout into a branch for precisely that reason.09:27
joseoGaryvdM: Have to go, thanks for the help09:28
james_wcan you bzr missing <master> ?09:28
GaryvdMok - np09:28
lapthrickjames_w: are you asking me?09:28
=== Lo-lan-do tries
lapthrickmathrick@hatsumi:~/.bazaar/plugins/svn$ bzr missing http://people.samba.org/bzr/jelmer/bzr-svn/0.4/09:30
lapthrickBranches are up to date.09:30
lapthrickI guess not09:30
james_wah, no it will compare the branch to itself I guess.09:30
lapthrickLo-lan-do: but branches are a huge waste of space if you don't intend to hack the code, just follow it09:30
james_wwhat would be cleanest, a flag to checkout, a flag to update, or a new command?09:30
Lo-lan-dolapthrick: I know, I know, but in the case of bzr-svn, it's not much space anyway, I guess.09:31
Lo-lan-do5 MB instead of 800 KB  I can afford that.09:31
lapthrickyeah, I guess09:31
lapthrickbut there were biggest checkouts I did09:32
lapthrickjames_w: how about bzr status?09:32
lapthrickI think it'd make sense to have it there09:32
james_wstatus could be good too.09:32
lapthrickjames_w: are you gonna hack it in? :)09:32
lapthrick(go james_w!)09:33
=== pbor still has problems with bzr-svn... I am not able to push to the svn repo
Lo-lan-doThen make it "status -u", please, in order not to *require* net connection09:33
Lo-lan-dopbor: You're not alone :-)09:33
pborpaolo@murdock:~/bzr/gedit-dev$ bzr merge svn+ssh://pborelli@svn.gnome.org/svn/gedit/trunk09:33
pborNothing to do.09:33
pborpaolo@murdock:~/bzr/gedit-dev$ bzr push svn+ssh://pborelli@svn.gnome.org/svn/gedit/trunk09:33
pborbzr: ERROR: These branches have diverged.  Try using "merge" and then "push".09:33
pborit refuses to commit because there is stuff  to merge but it refuses to merge because there is nothing to merge09:34
lapthrickLo-lan-do: -u?09:34
Lo-lan-dolapthrick: Like in svn09:34
lapthrickLo-lan-do: also, I'd make -u *not* check that, and do otherwise09:34
Lo-lan-doOr --somethingelse, I don't care09:34
lapthrickso -u would be "unconnected"09:34
Lo-lan-do"svn status -u" means check for remote changes too, so I don't think it would be a good idea to reuse the same option with an opposite meaning09:35
lapthrickLo-lan-do: then --offline09:35
lapthrickI personally think it's a good default to do it09:36
Lo-lan-doHm.  The default for status in branches is to work offline, so I'd rather have the same behaviour in checkouts.09:37
lapthrickdoes status in branches ever result in network connections?09:37
fkumroafter i create a personal branch (bzr branch), edit a file, commit it, do I need to use bzr merge to get the file to the server or push?09:37
Lo-lan-dolapthrick: No09:37
lapthrickfkumro: push09:37
fkumrothanks09:37
lapthrickfkumro: though a merge could be also needed before you can push, if the upstream has done something you didn't merge yet09:38
lapthrickLo-lan-do: but then, checkouts pretty much by definition are networked whilst branches aren't09:38
fkumrovery true, I'll have to remember to do that so I dont run into issues.09:39
lapthrickI think it makes perfect sense to include that for checkouts09:39
lapthrickfkumro: it will tell you when you do :)09:39
asabilpbor: try to pull ?09:39
fkumrolapthrick: when I try to push and it needs to merge it will tell me that? Seems too easy :-P09:39
lapthrickasabil: but it's still very odd that bzr merge won't do anything09:39
Lo-lan-dobzr status doesn't check for missing changes.  bzr missing does.  Please don't change the behaviour of bzr status.09:40
lapthrickfkumro: yeah, it won't let you push to a diverged branch09:40
lapthrickLo-lan-do: but bzr missing ./mycheckout will check missing for the branch it's a checkout for, not for checkout itself, so you can't overload it to check for checkout's status too09:41
lapthrickLo-lan-do: I really don't see anything bad about defaulting to networked ops for checkouts, they do that already anyway09:41
pborasabil: do you mean pull from the svn repo? shouldn't merge imply that? (trying anyway in the mean time)09:42
fkumroone more question for everyone. I'm only playing around with simple directory layouts but I have my levels of directories on my projects at home. If I go into the root and execute "bzr init ." then "bzr add" and then commit will bzr recursively add all the directories below root?09:42
asabilpbor: pull and merge are slightly different, but still your case seems really weird09:43
pborasabil: didn't help...09:43
pbor:(09:43
lapthrickfkumro: yes09:44
asabilpbor: which version of bzr ?09:44
pborasabil: I just pulled from svn, made a change, committed it and now I want to push it... it's not like I was doing some crazy stuff09:44
lapthrickfkumro: if you want to keep different things in separate branches, you might consider making it a repository (though it mostly makes sense when there are branches that would be able to share stuff, as repos make them able to reuse identical data)09:45
pborasabil: 0.90.009:45
asabilhmm, really weird09:46
fkumrolapthrick: That's something I have to read into more tonight before moving my code over. I will probably be back here asking more questions about that exact topic.09:46
pborasabil: do you successfully use bzr with a gnome svn module?09:47
asabilpbor: https://lists.ubuntu.com/archives/bazaar/2007q2/026497.html09:48
asabilpbor: I don't have a gnome svn account, so I cannoy push09:48
asabilI pulled already without any problem09:48
pborasabil: yeah, that message looks like the same issue09:49
pborpulling works09:49
asabillooks like a bug to me09:49
pboryeah... /me digs in launchpad09:50
lifelessmoin09:50
GaryvdMHello lifeless09:51
vilahi lifeless09:51
asabilpbor: can you try the latest bzr and bzr-svn ?09:51
=== sverrej [n=sverrej@ti0125a340-0748.bb.online.no] has joined #bzr
pborasabil: well, I hoped that gutsy had stuff recent enough :)09:52
pborasabil: but ok, I'll try latest and greatest09:52
GaryvdMlifeless: Do you know a easy way to run a lsprof on olive-gtk?09:52
asabil0.91 is not in gutsy I guess09:52
Lo-lan-do0.91 is out?09:53
james_wasabil: bzr-svn 0.4.2 is a more significant change than bzr 0.91.09:53
asabilcandidate09:53
james_wLo-lan-do: not as yet I believe.09:53
Lo-lan-doOh.  Right.09:53
asabiljames_w: bzr-svn 0.4.2 works with 0.90 ?09:53
asabilpbor: try to update only bzr-svn then09:54
=== sverrej [n=sverrej@ti0125a340-0748.bb.online.no] has joined #bzr
lifelessGaryvdM: hmm09:54
lifelessGaryvdM: if the --lsprof command doesn't work well09:54
lifelessGaryvdM: then I'd use the bzrlib.lsprof module directly around the function to profile09:54
pborasabil: mmm... how do I install bzr-svn without changing bzr?09:55
asabilsystem wide ? or for the user only ?09:55
=== rml [n=Skippy@78.32.35.169] has joined #bzr
=== Mez_ [n=Mez@ubuntu/member/mez] has joined #bzr
GaryvdMlifeless: I was thinking, maybe I could make olive-gtk a plugin command....09:56
pborasabil: well, if possible I'd like to test it locally09:56
GaryvdMWould that work>09:56
GaryvdMs/>/?09:56
lifelessGaryvdM: I'd guess so; bzr viz already is09:57
GaryvdMCool09:57
lifelessGaryvdM: so you could try 'bzr --lsprof viz' and see how well it works09:57
GaryvdMI've been useing that lots...09:57
asabilpbor: then download the latest release from http://samba.org/~jelmer/bzr/bzr-svn-0.4.3.tar.gz and untar it to ~/.bazaar/plugins09:58
GaryvdMI've managed to get bzr viz bzr.dev from 30 sec to 2.5 sec09:58
GaryvdMLots and lots of profiling09:58
lifelesscool09:58
=== sabdfl [n=sabdfl@ubuntu/member/pdpc.silver.sabdfl] has joined #bzr
GaryvdMNow I want to look at Bug 7046309:59
ubotuLaunchpad bug 70463 in bzr-gtk "olive slow when used in bound branch" [Medium,Confirmed]  https://launchpad.net/bugs/7046309:59
asabilpbor: after untarring it, you would probably want to rename the folder to svn (so that it is a valid python package)09:59
asabilalso don't forget to uninstall the installed system wide bzr-svn just in case09:59
lifelessmwh: so how did it look ?10:00
asabilpbor: how did it go ?10:06
=== kiko-fud is now known as kiko
pborasabil: trying... the push seems to be going through, albeit slowly10:06
asabilyeah, bzr-svn is quite slow unfortunately :/10:07
pborUGH10:07
pborhttp://svn.gnome.org/viewcvs/gedit/trunk/10:07
pborit touched *every* file10:08
asabil:/10:08
Lo-lan-doProbably only the properties10:09
asabil5900 revisions ... did you manage to check it out without eating 4 Gb of memory ?10:10
pborLo-lan-do: does that mean that it may have screwed up all svn properties?10:10
mwhlifeless: not great :/10:10
Lo-lan-doI don't think so, it probably just added bzr:* revisions10:10
Lo-lan-doEr, properties10:10
pborasabil: heh... that was a pain, thanks to jelmer suggestions we figured it out:10:11
pborr=$110:11
pborwhile [ $r -ne $2 ] ; do10:11
pbor        bzr pull -r$r svn+ssh://pborelli@svn.gnome.org/svn/gedit/trunk10:11
pbor        r=$(( $r + 100 ))10:11
pbordone10:11
mwhlifeless: most of the "getting data out of bzrlib" steps took 1.5-2x as long on the packs repo10:11
mwhso not hideous, but not very good either10:11
pborasabil: and yes, it took a looooong time :)10:12
=== mwh --> pub
asabilpbor: it's a memory leak in python-svn :/ not really bzr's fault10:12
pborasabil: yeah, I know10:13
pborasabil: that's why I had to do it 100 revisions at a time10:13
asabilthat's a smart trick :)10:13
pborasabil: however it's not the only thing that is slow...10:13
asabilyep, bzr-svn needs some profiling I guess10:14
pborasabil: I am trying to push a copy of the repo to my gnome.org ~ dir and it is taking forever10:14
Lo-lan-doI can branch ~4800 revisions from the Gforge svn without such a trick, but it does take some time.10:14
pborLo-lan-do: how many gigs of memory do you have :)10:14
Lo-lan-do110:14
Lo-lan-doBut I expect gforge may be smaller than gedit10:15
=== jkakar [n=jkakar@204-174-36-45.dhcp802.dsl.ucc-net.ca] has joined #bzr
pborasabil: the push I am tryng to do is with sftp...10:15
Lo-lan-do44 MB10:15
pborLo-lan-do: 5900 revisions here10:15
Lo-lan-doAh, no, not even that, 37 MB10:16
pbor126M    gedit-dev/10:16
Lo-lan-doI think that's where you beat me :-)10:16
pbormmm... wait that is with built stuff10:16
pborclean 87M10:17
pboris there a way to compress all local commits in a single revision for svn?10:20
pbore.g: I hack on feature X do 10 small commits and fixups in my branch10:21
pborbut then I just want to push it as a single patch for the 'upstream' repo10:21
Lo-lan-doMaybe doing it in another branch, then merging to your gateway branch, then pushing that gw branch to svn10:22
Lo-lan-do(Not tried myself, since bzr-svn still doesn't want to let me push to svn)10:22
pborLo-lan-do: did you update to the latest bzr-svn? that did the trick for me10:23
Lo-lan-doI run on the latest, but I have another bug.10:23
GaryvdMpbor: You can uncommit x n and then commit10:24
GaryvdMAh - uncommit has -r so you can uncommit -r (starting revision) and then commit10:25
pborGaryvdM: ugh, sounds ugly :)10:25
asabilpbor: why collapse the commits ?10:26
GaryvdMPlease do it in a branch....10:26
asabilyou lose the ability to make quite orthogonal commits10:26
lapthrickargh10:26
lapthricknow that jelmer fixed that push but, I'm running into branches diverged thing myself10:26
lapthrick*bug10:26
asabilpbor: can I get you to give bzr record a try ?10:27
lapthrickpbor: you say bzr pull fixed it for you?10:27
lifelessmwh: ok, can you give me some timings and operations you were testing with10:27
lapthrickmine says no revisions to pull10:27
pborasabil: because with a local repo I commit very often but that makes the history hard to follow... if I hack, commit, fix a typo that prevents compilation fix it, commit, there is no use for that to go in the public history10:28
lapthricklifeless: is there some way I can make bzr bail out on errors?10:28
pborlapthrick: using the latest bzr-svn fixed it10:28
lapthrickpbor: I thought I was using the latest :(10:28
asabilpbor: then you can think about writing a bzr plugin ?10:28
pborasabil: what is bzr record?10:29
lapthrickmathrick@hatsumi:~/.bazaar/plugins/svn$ bzr update10:29
lapthrickTree is up to date at revision 718.10:29
lapthrickpbor: what branch do you pull from, 0.4 or trunk?10:29
asabilpbor: a plugin I wrote to create orthogonal patches from a bzr tree :D10:30
pborlapthrick: I used the last released tarball 0.4.310:30
pborasabil: sounds nice!10:30
asabilpbor: you can grab it from the bzr plugins page10:30
pborok10:31
lapthrickpbor: bummer, that I can't use because I rely on fixes from r71610:31
lapthrickasabil: ooh, sounds nice10:31
pborlapthrick: yay, for bleeding edge software :P10:31
lapthrickthat's really useful for pushing upstream10:31
lifelesslapthrick: we do bail on errors10:32
lapthricklifeless: err, yes, bad phrasing, I'd like it to bail when it says branches have diverged10:32
asabillapthrick: it is still very sketchy, I wrote it because we use bzr at work and we need to submit patches upstream10:32
lifelesslapthrick: what do you mean precisely; do you mean a different return value to the shell ?10:33
pborasabil: add a --bugzilla option that attaches the patches in bugzilla and I am sold :)10:33
lifelesslapthrick: and from what command10:33
=== LeoNerd [n=leo@cel.leonerd.org.uk] has joined #bzr
asabilpbor: that would be easy to do, but what I want is a --interactive to the commit commands10:34
asabilso that you can select exactly which hunks to commit10:34
asabil(yes I used darcs before ...)10:34
lapthricklifeless: I would like something I can break on in PDB or similar10:35
lapthrickbzr bzr-pokersource:2902/> push svn+https://beta.aimido.de/svn/src2/branches/mathrick/pokersource10:35
lapthrickThese branches have diverged.  Try using "merge" and then "push".10:35
lapthricklifeless: I mean I'd like to catch the moment when it decides they have diverged10:35
=== pbor wonders if bzr squash to merge commits in just one commit would doable as a plugin
=== Gwaihir [n=Gwaihir@ubuntu/member/gwaihir] has joined #bzr
lifelesslapthrick: oh hmm, edit bzrlib/builtins.py  perhaps ?10:37
lifelesslapthrick: or have you not tried 'BZR_PDB=1 bzr push'10:37
=== jkakar [n=jkakar@204-174-36-45.dhcp802.dsl.ucc-net.ca] has joined #bzr
lapthricknope10:37
lapthrickhmm, that doesn't really tell me which part of bzr-svn decides they have diverged10:39
=== marianom [n=marianom@ubuntu/member/marianom] has joined #bzr
=== cprov is now known as cprov-afk
=== pbor keeps on asking since it worked out well so far...
pborcan I make bzr-svn do not commit .bzrignore files in svn?10:53
=== Demitar [n=demitar@c-212-031-182-147.cust.broadway.se] has joined #bzr
=== Mez_ is now known as Mez
GaryvdMadd .bzrignore to .bzrignore and remove from tree10:54
pborGaryvdM: but if I remove it from the tree, then when branching with bzr it will not be pulled right?10:55
=== Mez_ [n=mez@ubuntu/member/mez] has joined #bzr
GaryvdMYhea10:56
pborI wonder if bzr-svn could special case that10:56
lifelesslapthrick: ah, so now we get closer:)10:56
lifelesslapthrick: bzr-svn exposes the regular bzr api10:56
lapthricklifeless: yeah, I even for it to stop in branch.py10:57
lifelesslapthrick: which pull can use10:57
lapthricks/for/got/10:57
lifelessare you using svn-push? I think you are meant to10:57
lapthricklifeless: no, svn-push is only meant to be used if you need to create a new branch on the svn side10:57
lifelessoh10:58
GaryvdMIt would be cool if bzr-svn could translate betweem bzr ignore and svn ignore...10:58
lifelessare you sure ? :)10:58
lapthricklifeless: that's what all the docs say, so pretty sure, yes10:58
lifelessok10:58
lifelessso anyhow, the decision about variance is quite simple10:59
lifelessgiven a graph for the left branch and for the right branch10:59
lifelesseither the tip of the left branch is in the right branch's graph, or its not10:59
lifelessif it is, the right branch can be pushed onto the left branch10:59
lifelessif it is not, it errors10:59
lifelessso in bzrlib api terms10:59
lapthrickyeah, I can see the line where it raises DivergedBranches11:00
lapthrickI just need to understand what exactly it checks11:00
lifelessbzrlib.branch.Branch.open('svn://...').last_revision() in bzrlib.branch.Branch.open('.').repository.get_ancestry([bzrlib.branch.Branch.open('.').last_revision()] )11:00
lifelessIIRC11:00
lifelesspossibly get_ancestry takes a revid not a list of revids11:01
lapthrick        if not other.repository.get_graph().is_ancestor(self.last_revision(),11:01
lapthrick                                                        stop_revision):11:01
lapthrick            if self.repository.get_graph().is_ancestor(stop_revision,11:01
lapthrick                                                       self.last_revision()):11:01
lapthrick                return11:01
lapthrick            raise DivergedBranches(self, other)11:01
lapthrickbah11:01
lapthricknot pretty11:01
lifelessso the inner if there checks for 'this branch has already been pushed here'11:03
lifelessthe outer checks for 'someone else has pushed here before you and you should merge from them before pushing'11:03
lapthrickhttp://codebrowse.launchpad.net/~jelmer/bzr-svn/0.4/annotate/jelmer%40samba.org-20070925134348-1bsc948sqqmevhvh?file_id=svnbranch.py-20051017135706-11c749eb0dab04a7#L34311:04
lapthrickhere it is a bit nicer11:04
lapthricklifeless: I see11:04
lapthricklifeless: so foo.is_ancestor(bar) checks if bar is ancestor of of foo?11:05
lapthrickor the other way around?11:06
lifelessgraph.is_ancestor(foo, bar) is True if bar is reachable from foo in graph11:06
lifelessthat is, if foo is an ancestor of bar11:07
=== asak [n=alexis@201-13-27-139.dsl.telesp.net.br] has joined #bzr
=== schierbeck [n=daniel@disko.egmont-kol.dk] has joined #bzr

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