/srv/irclogs.ubuntu.com/2012/07/19/#bzr.txt

Noldorinjelmer: hrmm. where is this 'contrib' dir that the README mentions?00:04
Noldorinlifeless: hi00:18
Noldorinno-one around? :(01:48
bob2lots of people01:49
Noldorinbob2: you don't know that ;)01:49
bob2yes i do01:50
Noldorinprove it01:50
Noldorinexactly.01:51
bob2what?01:51
Noldorinha01:52
lifelessNoldorin: pong01:57
Noldorinoh01:57
Noldorinhi lifeless01:57
Noldorinlifeless: read the README for the bundled bash-completion plugin earlier. i'm slightly confused01:58
Noldorinespecially w.r.t. http://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev/revision/524001:58
lifelesswhat about it ?01:59
Noldorini see you made that commit01:59
Noldorinlifeless: readme suggest to use contrib/bash/bzr for lazy loading…but that loks like an old/obsolete version02:00
Noldorinno longer rlevant02:00
Noldorincertainly not included02:00
lifelessI didn't write it02:01
lifelessmartin von gagern did the work02:01
lifelessI just landed it02:01
lifelessI've no memory of what was in it02:02
Noldorinlifeless: oh okay02:03
Noldorinlifeless: any thouhgts nontheless?02:04
lifelessnot really no :) sorry!02:06
lifelesswhat are you trying to do ?02:06
Noldorinlifeless: get lazy loading working for bash completion02:06
lifelessah02:06
lifelessuhm02:06
Noldorinlifeless: eval "`bzr bash-completion`" in my .bash_profile just does normal loading02:07
Noldorinslows down my shell load time02:07
Noldorin:(02:07
lifelessI don't know enough about how bash completion works to offer advice sorry02:07
Noldorinthat's okay02:07
lifelessbzrlib.commands is probably a key thing for doing lazy-inspection of stuff02:07
lifelessit has a pretty solid incremental-use api02:08
Noldorinyeah… i don't want to go messing with the code though02:08
lifelessyou might look at the deletion of the contrib script02:08
lifelessit probably explains where its gone (e.g. bash upstream)02:09
Noldorinlifeless: that commit is the deletion02:09
Noldorinno mention there02:09
Noldorinlifeless: incidentally, can bzr tell me the URL for a lp:foo branch?02:11
lifelessyes, but I don't think its exposed to the command line02:17
Noldorinah02:17
lifelessits an xmlrpc lookup though02:17
Noldorini see02:17
lifelessnot local02:17
Noldorinright02:17
Noldorinlifeless: the lp: prefix is built into the launchpad plugin though i guess. are there other prefixes?02:18
lifelessyup02:19
lifelesstheres an address book one for instance02:19
Noldorinoh?02:19
lifelessits in a plugin02:19
Noldorinwhat's the idea behind it?02:20
Noldoringoogle doesn't find it02:20
lifelessbzr-bookmarks02:21
Noldorinoh :P02:22
Noldorinyou called it an address book02:22
Noldorinbut yeah02:22
Noldorini'm familiar with that02:22
Noldorinhm02:22
Noldorinlifeless: btw is von gagern still around?02:24
Noldorineither here on irc or contactable via some other mes02:24
Noldorinmeans*02:24
lifelessI think so02:25
Noldorinok02:30
Noldorinlifeless: btw why do colocated branches still use the ,branch= syntax? surely a simple , is good enough?03:14
lifelessNoldorin: touch foo,bar; ls03:15
lifelessNoldorin: or less snidely - the branch= syntax is std66 blessed03:15
lifelessmessing with it seems risky03:15
Noldorinhah03:15
Noldorinokay03:15
Noldorinfair enough03:15
Noldorinlifeless: are there any non-URL chars or char sequence that would work here?03:16
lifelessgiven that branch urls are, by definition urls03:17
lifelessno03:17
lifelessbut where is 'here' ? that you refer to.03:17
Noldorinin the case of colocated branches :P03:17
Noldorinlifeless: i mean a pseudo-url, but okay...03:18
lifelesssure, but where in the UI ?03:18
lifelesslike, I'm sure we can pass separate options around and htings like that03:19
Noldorinhmm?03:19
Noldorindon't geto u03:19
lifelessthe ,branch= is the machine interface03:19
Noldorinnot talking about ui here03:19
lifelessjust like file:///home/username/branches/foo is the URL for 'foo' locally.03:19
Noldorinhm03:28
Noldorinlifeless: fair enough. no big deal, ceratinly for now :)03:29
Noldorinnight03:29
lifelessnight03:29
mgzmorning!08:15
abentleyjelmer: In your MP comment, are you saying that foreign branches should only implement public methods, not private ones?12:40
jelmerabentley: that's how it is at the moment12:48
abentleyjelmer: Well, I can turn those into public methods, but I wouldn't want normal API users calling them.12:50
abentleyjelmer: them= _get_uncommitted, _put_uncommitted12:51
=== quicksil1er is now known as quicksilver
jelmerabentley: why not?12:54
abentleyjelmer: Because those methods accept raw files, but only shelves should be stored there.12:54
abentleyjelmer: GitBranch implements _get_checkout_format, _get_nick, _basic_push, so ForeignBranches do seem to implement private methods from Branch.12:55
jelmerabentley: _basic_push  and _get_nick are just private methods, helpers for push() and nick (the property) respectively12:56
jelmernot sure about _get_checkout_format12:57
abentleyjelmer: Right, just as _put_uncommitted is a helper for store_uncommitted, and _get_uncommitted is a helper for get_unshelver12:57
mgzI'm torn on the proposal as well12:58
jelmerabentley: except _put_committed and _get_uncommitted are on the base Branch object, not on BzrBranch or anything like that12:59
mgzon the one hand, it'd be useful to have shelves on the actual branches they relate to rather than on my lightweight checkout12:59
jelmerabentley: _basic_push and _get_nick are called by the bzr-git branch implementation itself12:59
mgzbut I do hack-on-branch, then remember to switch -b later quite a lot13:00
abentleyjelmer: The implementation on the base Branch object raises NotImplementedError.13:00
abentleyjelmer: The functional implementations *are* on BzrBranch.13:01
jelmerabentley: so if the thing that the interface requires is really the presence of store_uncommitted, has_stored_uncommitted and get_uncommitted13:03
jelmercan't we just have that in the Branch, and the bzr-specific implementation (which uses _get_uncommitted and _store_uncommitted) in BzrBranch ?13:03
abentleyjelmer: I think you mean "get_unshelver", not "get_uncommitted"?13:04
jelmerabentley: euhm, yes13:04
abentleyjelmer: You mean, provide implementations of store_uncommitted, has_stored_uncommitted and get_unshelver on Branch that raise NotImplementedError?13:05
abentleyjelmer: And then provide the real implementation on BzrBranch?13:06
jelmerabentley: yeah13:06
abentleyjelmer: Forcing you to rewrite (complicated) get_unshelver instead of (simple) _get_uncommitted?13:06
abentleyjelmer: And meaning we need to move tests of get_unshelver/store_uncommitted/has_stored_uncommitted to the per-branch tests?13:08
jelmerabentley: it doesn't make sense to store a (bzr-specific) serialization of a tree transform in a foreign branch13:09
jelmerabentley: I think those tests need to be in per_branch anyway, as they can be overridden by the implementation13:09
jelmerabentley: the other thing is that it simply won't be possible to support this for most of the foreign formats - svn nor git support per-branch metadata like this13:10
abentleyjelmer: That's a good point.  I was trying to avoid burdening you.13:10
abentleyjelmer: Okay, I'll do that.13:11
jelmerabentley: Perhaps it would be possible to allow implementations to raise something if they don't support storing uncommitted changes?13:11
abentleyjelmer: Yes, that makes sense.13:12
abentleyjelmer: So rick_h told me that when you try to switch with uncommitted changes in git, you get "error: You have local changes to "X"; cannot switch branches.".  Is that right?13:15
jelmerabentley: no, it works fine here13:16
jelmerabentley: perhaps he has extra options for that enabled in his config?13:17
abentleyjelmer: Odd.  This StackOverflow article also says that's the behaviour: http://stackoverflow.com/questions/1304626/git-switch-branch-and-ignore-any-changes-without-committing13:17
jelmerabentley: maybe that behaviour changed at some point? I don't have anything in my gitconfig as far as I can tell13:19
abentleyjelmer: It seems the behaviour I described is from /git checkout/, not /git switch/.13:44
abentleyjelmer: Or maybe the behaviour I described only happens when the changes would conflict?13:45
jelmerabentley: the behaviour I described is from 'git checkout', I'm not sure about 'git switch' (didn't even realize that existed)13:46
jelmerabentley: Yes, I could imagine changes conflicting being cause for an error13:46
abentleyjelmer: That seems to be it.  So the difference between bzr and git would be in the handling of conflicts.13:48
abentleyjelmer: So RemoteBranch isn't a descendant of BzrBranch, which means it won't automatically get get_unshelver/store_uncommitted/has_stored_uncommitted.  I could write a mixin, but it feels... dirty.  Thoughts?14:37
jelmerabentley: I see two options: 1) provide smart verbs for fetching/storing uncommitted changes 2) add three stubs that call out to self._real_branch14:49
abentleyjelmer: I had actually started on 3) extract get_unshelver/store_uncommitted/has_stored_uncommitted to a component, i.e. UncommittedManager.  Maybe I'll go for 2.  Smart verbs don't seem worth it yet, since it's just 1 or 2 vfs operations.14:52
mgzthis isn't normal is it:14:52
mgz$ bzr merge --preview -r15645..15644 .14:52
mgz=== modified file 'database/schema/security.cfg'14:52
mgzthings the file needs changing, no content changes, no x bit changes...14:53
mgz*thinks14:53
abentleymgz: No, but TransformPreviews don't necessarily detect when a file-level merge produces no change.  What does an actual merge do?14:54
mgznothing.14:56
mgz`bzr st` returns blank14:56
abentleymgz: And presumably "bzr st -r15645..15644" lists security.cfg?14:56
mgzand a whole bunch of other stuff, as r-1 is the revert of that14:57
mgzbut for some reason that file doesn't think the revert was complete14:57
jelmerabentley: I'd rather leave the RemoteBranch ignorant of the actual underlying logic, which is already present in the actual branch14:58
=== frankoid_ is now known as frankoid
maxbmgz: Thanks for forwarding that email from Thorsten. It only went to admins of ~bzr, not members, it seems. (jelmer: <- fyi)15:48
maxbI guess I should send a reply15:48
mgzhe's replied to your post on the list now15:50
mgzso would make sense to respond there I think15:50
mgzstill don't really understand why using a newer LTS isn't an option :)15:51
jelmermaxb: ah, urgh15:51
jelmermaxb: the web page says it would go to all *members*15:52
abentleyjelmer: for me, it says "Contact this team's admins".  Or am I looking in the wrong place?15:54
jelmerabentley: https://launchpad.net/~bzr says "None, members emailed directly" near the email field15:54
jelmerthe link in the right hand side column indeed does say "Contact this team's admins"15:55
abentleyjelmer: This spamming of team admins seems to be a new phenomenon.  I don't think it had ever happened to me two months ago.15:56
maxbjelmer: You *are* an admin, so for you it contacts the members17:19
jelmermaxb: I have no idea how it would actually contact the members though17:22
jelmermaxb: I don't have a link for that..17:22
maxb?17:23
jelmermaxb: It doesn't provide me with a way to actually contact all members as far as I can see17:23
maxbIf I look at a team page for a team of which I am admin, the right hand portlet says "Contact this team's members". For a team I'm not admin, it says "Contact this team's admins"17:24
jelmermaxb: ah, you'r eright17:28
jelmeralso, I can't spell17:28
=== zyga is now known as zyga-afk
=== yofel_ is now known as yofel
Noldorinhi jelmer20:50
Noldorinjelmer: you around bychance?22:06
thomiIn Quantal, it seems bzr bisect doesn't work due to "AttributeError: 'CHKInventoryRepository' object has no attribute 'iter_reverse_revision_history'" - does anyone know if this is a simple patch, or a more involved fix?22:11
thomisubmitted as https://bugs.launchpad.net/bzr-bisect/+bug/102682722:14
ubot5Ubuntu bug 1026827 in Bazaar Bisect Plugin "bisect broken in quantal" [Undecided,New]22:14
thomiI have a branch that seems to fix the issue for me: https://code.launchpad.net/~thomir/bzr-bisect/fix-for-quantal/+merge/11584722:27
jelmerNoldorin: hi22:41
Noldorinjelmer: was just trying out bzr-git again (on my mac)23:43
Noldorinnoticed a new error23:44
Noldorinwell, it may not be new23:44
Noldorinbzr: ERROR: The file id "None" is not present in the tree <bzrlib.inventory.CHKInventory object at 0x105dc4950>.23:44
Noldorinjelmer: other hting was… does bzr-git support rmbranch?23:47

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