/srv/irclogs.ubuntu.com/2010/04/15/#bzr.txt

igcmorning00:27
spivlifeless: for landing lp:~spiv/bzr-pqm/submit-relock, which has 1 new rev, do you prefer a direct push to lp:bzr-pqm, or merge+commit in a checkout?00:56
pooliehi spiv, all01:05
lifelessspiv: if the lhs ancestry is unchanged I don't care01:06
lifelessspiv: besides, its jams code ;P01:06
spivlifeless: ah :)01:08
lifelessspiv: are you lunching with us?01:17
spivlifeless: hmm!01:18
spivlifeless: I think I will.01:18
lifelesspoolie: if you want to tell RAOF spiv and I the alternate venue you have in mind, please do so01:23
lifelessbrb brekfast01:25
poolielifeless: i don't care where it is as long as it's some specific place01:39
pooliethe link in your invitation points to 6 different restaurants01:39
lifelesspoolie: what link ?01:47
poolieyou sent an invitation whose 'where' link points to the set of all chinese restaurants in st leonards :)01:48
lifelesspoolie: anyhow, how would you describe the generic asian on the east side of the station01:48
poolienow i know what you mean01:48
lifelesshmmm, I thought i said 'station' rather specifically01:48
lifelessoh no, I didn't01:48
lifelessbecause google calendar failed and I had to retype01:49
RAOFI was planning to just turn up at the station in an hour and a half and hang around looking awkward until someone noticed me ;)02:21
RAOFHm.  That reminds me.  Who's got my copy of /A Bit of Fry and Laurie/?  Is it you, spiv? :)02:21
spivRAOF: It is02:22
spivRAOF: I was thinking today would be a good opportunity to return it :)02:22
RAOFSuperb!02:23
poolie:) i like that, but i have my own copy02:37
* igc out for a few hours02:38
poolieigc, do you need anything from me atm re doc builds?03:31
allquixoticI am looking for an authentication/control mechanism for bzr that (1) uses PAM for authentication, (2) controls access to individual files by file level permissions (r-w-x), (3) does not require public key infrastructure (but rather uses passwords for authentication), and (4) restrictions directory navigation to files contained in a designated "root directory" (or a subdirectory). ssh+bzr with BzrAccess seems to be applicable04:00
allquixotic on all accounts except (3), and plain old bzr+ssh can't give me (4). Any other options to get all four requirements?04:00
fullermdWhat do you mean by "individual files"?04:09
allquixoticfullermd: chmod/chown, basically. native Linux file permissions coupled with PAM's user database provide (1) and (2) exactly, built-in, so anything that hooks into that system (such as ssh) will immediately benefit from it. That's why I'm hesitant to give up bzr+ssh at all, but I don't want to have to pull in PKI just to get the benefits of BzrAccess (namely, (4))04:11
fullermdRight, but I mean what "individual files" do you want to control access to?04:12
fullermdAre you talking about individual files within a branch?04:12
allquixoticin a practical sense, what I'll probably do is have a root directory containing N project directories. Each project directory will be controlled by potentially different people, with o-x permissions so that people who don't have the right user or group can't go snooping in there.04:13
allquixoticEveryone should be able to access and view the contents of the root project directory, but not necessarily the sub directories unless I've specifically set the permissions that way.04:13
allquixoticwhich is how linux file permissions work anyway04:13
allquixoticbut within a given project, I expect all the permissions to be exactly the same04:13
allquixoticin practice, anyway04:13
fullermdWell, you can do 4 with a chroot, as long as you have enough in the chroot to run bzr.04:15
allquixoticyeah, I was thinking of doing that, but I'm not sure exactly what bzr needs to run, and I don't know of a convenient way to capture exactly (and only) the files needed.04:16
allquixoticI don't necessarily want to enable these users to login to a bash shell over ssh though, I just want them to be able to use bzr itself for official bzr operations on files within the repository. so for example they shouldn't be able to overwrite a file in the chroot's /usr/bin, or set something executable and exec() it.04:17
fullermdWell, python and bzrlib should be enough.  You drag in some extra deps for client-side sftp support, but you don't need that there.04:17
fullermdIf they have permissions to overwrite files in /usr/bin, chroot or otherwise, you need to rethink your life   :p04:18
allquixoticwell, true04:18
allquixotici guess the latter part of that sentence is more sobering than the former. so, say, they have rwx permissions within a project directory they own. if they can exec a shell, they can create an arbitrary executable file in there and exec() it. Can they potentially do that with bzr being the command ssh invokes as their shell?04:19
fullermdIt's very hard to absolutely lock things out.  Hard enough that I always assume it's impossible and work from that.04:19
fullermdProbably.  I can dream up ways (at a high level) it could be made to happen, and dream up ways of shutting those doors to prevent it.04:20
fullermdBut I would never assume I could think of every dodge.04:20
fullermdIf you can mount all the FSen that are writable noexec, and not have anything that could function as a command interpreter...   nope, too late, there's python.04:21
allquixoticHmmm... this is a problem shared with git. It's just a normal UNIX-y binary on the system, and authentication/network transparency is left completely up to the sysadmin. I really wish there were a way to lock this down as well as 99% of the other services out there. I mean, I don't typically worry about people who can HTTP GET from Apache being able to invoke a shell and exec() stuff.04:22
fullermdWell, you could do bzr+http.04:22
fullermdBut you're still talking to bzr on the server.  If you can manage to get a plugin in place, you could make it do anything.04:22
fullermdOnly way to absolutely lock it out would be dumb server.  Dumb servers suck though.04:23
allquixoticWhat is the best practice, then? I assume people who connect to Launchpad over bzr+ssh to do their (free) open source commits are in a different group than the list of people Canonical trusts performing arbitrary fork/exec on their servers. So what's the catch?04:27
fullermdLaunchpad is a whole different ballgame.04:27
fullermdIt runs a custom ssh server, and talks to a completely virtual filesystem.04:28
allquixoticI know, but Launchpad hosts bzr, and somehow they do it in a secure manner.04:28
allquixoticoh, I see.04:28
allquixoticvery interesting.04:28
allquixoticthat's kind of nice. since Launchpad is (recently-ish) open sourced I guess I could deploy that on my own box and have a more robust system all around.04:28
fullermdThe code is available, so you could potentially grab those pieces out of it and try working from there if you wanted.04:29
fullermdPresumably it would be easier than trying to get the whole thing running, which I understand is a bear.  But maybe not.04:29
allquixoticyeah -- actually I wouldn't mind deploying the entire Launchpad on my box. We have a very small dev team (3 people) so I'm not sure how useful all the wiki/bugtracking features would be, but it would be nice to have them.04:30
fullermdYeah, I handle those issues with my co-developers in totally different ways.04:30
fullermdSpecifically, I know where they live, and I'm better armed than any of them.04:31
allquixoticI long to have the project I'm working on open sourced, but unfortunately we're still being bitten by licensed code from the 90s. Long story. Short version: closed source freeware.04:31
allquixoticAnd with not having a budget of $250/year, we can't go launchpad commercial.04:32
fullermdWith a public system (like LP), you definitely need to lock down hard.  But with a small dev team like that, I'd just rely on them not being retarded or evil (and deal with those cases by a bootoff)04:32
fullermdI mean, if they're likely to go to moderately extreme lengths to do something evil, you wouldn't be letting them have access in the first place, neh?04:33
allquixoticwell, yes, I can definitely trust the two other people who have access to a fairly good extent. I do want to make read-only accounts for testers within the community (who are not developers) but if I'm willing to give someone write access to the source code, I'm also willing to trust them with exec() powers on the system.04:34
fullermdOh, that's plenty easy.04:34
allquixoticI guess I was being a little overzealous in that regard, actually. The people who _really_ shouldn't be exec()ing anything on the system will not have access to it at all, except for public http of webpages.04:34
fullermdJust setup read-only bzr+http.  Easy peasy.04:34
fullermdAssuming bzr doesn't itself have a hole allowing access (hard-to-impossible to prove, but a reasonable base assumption), the only way somebody with RO access like that could do something evil[er than DoS] would be with inside help.04:35
allquixoticPerhaps a requirement easier to satisfy, then: instead of (for read/write access) going to a URL like bzr+ssh://user@server.com/path/from/root/filesystem/to/bzr/repos/my_project, how about a way to shorten it to bzr+ssh://user@server.com/my_project ?04:36
allquixoticBzrAccess _can_ do that, and so can chroot, but they both have rather burdensome baggage that's part of the game.04:37
* fullermd shrugs.04:37
fullermdI'd just toss in a /repos symlink and call it a day.04:37
allquixoticoh, that works... why didn't I think of that :P04:37
fullermdOr use home-relative paths, and setup users home dirs appropriately.04:37
fullermdbzr+ssh://user@server/~/mybranches/...04:38
fullermd(possibly with the two combined; symlinks in the homedirs)04:38
fullermdYou need a relatively recent version for the ~ over bzr+ssh.  2.1 maybe?  Or was that in 2.0...04:38
fullermd2.1 looks like.04:38
allquixoticyeah, I read the release notes mentioning the ~ syntax04:38
allquixoticwe are using 2.1 so that's fine04:39
fullermdTechnically, I think that's all server side, so a pre-2.1 client may still work fine as long as the server is 2.1.04:39
allquixoticfullermd: Thanks for the help. I'm not at all upset that there isn't any whiz-bang solution to my original query. I might be able to live with the /repo symlink, since I do trust the SSH users after all.04:42
allquixoticI needed more conceptual help than technical it seems ;)04:42
fullermdI'm always in favor of insane overengineering.  But in general, not always in specific   :)04:43
AfCI04:57
AfCI'm at a client, where [as I mentioned] I saw the Git book. They're Subversion right now, and going to switch to Git on the strength of:04:57
fullermdNGO?04:57
AfC1. perception that more people have Git skills04:58
AfC2. perception that IDE integration (IntelliJ + Eclipse) is better04:58
AfCthere was no real interest in technical argument about Bazaar's superiority (or inferiority, or anything else). It was really "I can hire guys who already know Git"04:58
fullermdNobody ever got fired for buying IBM.04:59
AfCIf any Canonical people are in the room, I can pass on the name of this Engineering Manager, but I'm not sure anyone at Canonical is making sales pitches to small medium business.04:59
AfCBut as a more general comment, it sounds a lot like the "you should switch from {Windows,Solaris} to Red Hat because" that is what RH sales & marketing does for a living.05:00
AfC[with some success, I gather]05:01
AfCand perhaps we as the Bazaar community are going to need to chip in on a well co-ordinated campaign along the same lines.05:01
AfCSaid engineering manager also said "VHS vs Beta"05:02
AfCwhich is scary because that meme "justifies" the choice of an inferior product based on perceived market adoption, and I'm VERY worried that's going to get hung on Bazaar05:03
gregcoitif I branch lp:/project-dev to ~/project, can I then point ~/project to lp:/project?05:12
fullermdWhat do you mean "point to"?05:13
gregcoitfullermd: I'd like to change the repo from lp:/project-dev to lp:/project05:17
gregcoitfullermd: does that help?05:18
fullermdThat...   doesn't make any sense.05:18
fullermdDo you mean you want to change the _parent_ pointer?05:18
gregcoitI think so05:19
fullermdThe repo is in ~/project (or maybe ~/, or ~/../, etc, but probably not)05:19
fullermdYou can use 'pull --remember' to set the parent.05:19
fullermdIt sounds a little XY-ish, though.05:19
fullermdWhat are you trying to _accomplish_ by this?05:19
gregcoitallow people who are using out dev branch to upgrade to our non-dev branch05:20
gregcoitwithout having to wipe the files from their local dir first05:20
fullermdSo, the equivalent of `rm -rf ; bzr branch lp:project` without all the re-copying.05:21
gregcoityeah05:21
gregcoitexactly05:21
fullermdSomething like `bzr pull --overwrite --remember` will mostly do it.05:21
gregcoitkiller05:21
fullermdOf course, if they have pre-existing push locations or the like, that won't change them.  But presumably they'd still be correct.05:21
fullermd--remember is needed to reset the 'parent' pointer; otherwise it'll stay at the old one, and just use the given location for THIS pull, not future ones.05:22
gregcoitahh, ok, good to know05:22
fullermd--overwrite makes it throw away anything that's not part of that new branch, which is what you'd want for switching from one to another.05:22
fullermd(not if they have local work on top of the branch to be preserved, though)05:22
gregcoitfullermd: exaactly what we need05:22
gregcoitgood to know05:23
gregcoiti'm new to version control (that's probably obvious).  bzr is amazing.  *so* much betetr than svn05:23
cakooseThe benchmarks page is slightly out of date and I would like to update it.  I have a script that will run the benchmarks and generate the output table.  Who should I contact regarding this?05:24
fullermdcakoose: I think igc might have been the last person to do much work there?05:24
gregcoitfullermd: thanks for your time05:25
fullermdigc: ^^05:25
cakooseigc: I'd like to update the benchmarking page.  fullermd tells me you might be the one to talk to about this.05:35
spivcakoose: if igc isn't around at the moment, try the mailing list.  igc (among others) will see it there.05:37
cakoosespiv: k, thanks05:38
igcback05:49
igchi cakoose: you're very welcome to update the benchmark page05:50
fullermdHe just snuck out on ya  ;)05:52
poolieigc can you answer https://answers.launchpad.net/bzr/+question/10746306:11
igcpoolie: sure06:12
vilahi all07:26
* fullermd flops at vila.07:29
vilafullermd: you mean something like: _o/ \o/ \o_ ?07:30
fullermdOh, I didn't think it through that carefully.  I just thought it would be a nice change from waving.07:31
vilaI only knew flop in 'megaflops', 'teraflops' and the like, so I had to look in my dictionary :)07:32
fullermdI mostly think of it as what a fish does when you toss it on the ground   :p07:32
xevioxmorning07:50
xevioxwhen I add a patch from a peer to the trunk, needs the peer to merge instead of pulling the newest trunk?07:51
pooliehi vila08:35
vilahey poolie !08:36
=== oubiwann` is now known as oubiwann
* igc dinner09:29
radoe_Hi, if i shelved some changes, how can I see what exactly is in a specific shelved change?10:31
poolieradoe_: unshelve --preview10:31
poolienight all10:31
=== radoe_ is now known as radoe
javeI'm a bzr newbie, id like to publish an emacs bzr branch on savannah. have anyone here done this?10:35
lifelesskfogel probably has10:35
radoeThx, and now I have to file a bug regarding the bzr crash occured while previewing my shelved changes :(10:35
javekfogel: ping10:35
radoeI shelved some changes, bzr unshelve --preview produces "bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)'10:39
lifelessradoe: please do file a bug10:41
radoeWhat should I attach to a bugreport in addition to the crashlog?10:41
lifelessthe crashlog should be sufficient, initially.10:41
lifelessobviously a description of what went wrong.10:41
radoelifeless: got already reported as bug #518916 two months ago.10:45
ubottuLaunchpad bug 518916 in bzr "`unshelve --preview` fails with unicode error" [Medium,Confirmed] https://launchpad.net/bugs/51891610:45
lifelessradoe: if the backtrace is /identical/ it may be the same issue10:45
kfogeljave: have you tried just pushing it?10:45
kfogeljave:  should work10:45
lifelessradoe: but unicode errors can turn up from many places; I don't assume that they are the same without checking in detail10:46
kfogeljave: lp:~kfogel/emacs/3646-bookmark-format-compat for example10:47
kfogeljave: expanded, that's https://code.edge.launchpad.net/~kfogel/emacs/3646-bookmark-format-compat10:47
radoelifeless: except for  the last line where the bugreport has an additional reference to encodings\cp866.pyo the backtraces are identical.10:53
radoeI'll attach it to the bugreport nevertheless10:54
javekfogel: so, "bzr push sftp://jave@bzr.savannah.gnu.org/srv/bzr/emacs/imagemagick" in my case?11:39
javeI  tried it and it didnt complain, so maybe it worked. how do I verify it?11:50
javehttp://bzr.savannah.gnu.org/lh/emacs says "loggerhead disabled due to unstability; if you're interesting in maintaining it, please contact us"11:51
javeok, "bzr ls sftp://jave@bzr.savannah.gnu.org/srv/bzr/emacs/imagemagick" shows some files11:52
bialixjml: ping12:41
=== gnomefreak76 is now known as gnomefreak
cr3how can I remove a tag?13:29
spivbzr tag --delete FOO13:30
cr3spiv: thanks!13:41
damirocan anybody answer me some questions about binary file handling?13:46
spivdamiro: probably :)13:47
jmlbialix: pong.13:47
damirocan bzr identify binary files?13:48
spivdamiro: in what sense?  When merging?13:49
damirono.. only to prevent line-ending conversion13:50
spivAh.13:50
spivbzr doesn't convert line endings, unless you configure it to: http://doc.bazaar.canonical.com/bzr.dev/en/user-reference/eol-help.html13:51
damiroahh... thats good.13:51
damiroso there will be no difference in handling files?13:54
IslandUsurperdamiro, `bzr diff` won't tell you *what's* different in binary files, only that they *are* different13:55
IslandUsurperotherwise, they're all just files13:55
damiroand what about the data store... if i have a bigger binary file with 2 versions. saves bzr the delta to version 1 or the whole file again?13:57
bialixjml: I saw your new article and want to ask about its title14:02
spivdamiro: it saves a delta14:03
damirothats fine :-)14:04
spivThe deltas are optimised for text files, but work ok for binary files.14:04
spiv(Assuming that the versions aren't completely different, of course... some binary file formats tend to produce completely unrelated-looking bytes after minor edits)14:05
damiroin my case it will be media data, mostly png and wave..14:07
LeoNerdHmmmmmm14:07
jmlbialix: yes it is from The Big Lebowski :)14:07
LeoNerdI'm trying to roll back to an earlier revision.  I have 79 revisions in branch.   bzr up -r75; bzr revo  =>  prints 7914:07
LeoNerdso... how do I see what the revno of the checkout is.. rather than the top in the branch?14:07
maxbLeoNerd: revno --tree14:11
LeoNerdAh14:12
damirook.. thank's a lot, spiv and IslandUsurper14:13
spivdamiro: you're welcome14:23
james_wanyone have a neat way with the API to find the earliest mainline revision to merge a specific revid?14:31
lifelessbranch.iter_merge_sorted14:32
james_wso I have revision A and revision B, and want to find the earliest revision in revision A's left-hand ancestry that has B in its ancestry14:32
james_wthat looks overly expensive for this job14:34
lifelessjames_w: I'm not aware of anything better other than jams history db, at this ponit.14:35
james_wok14:35
james_wit seems to me that if I walk through revision_history() and find the first revision to answer no to is_ancestor(B) I will have it14:37
=== bialix_ is now known as bialix
james_w[a for a in branch.iter_merge_sorted_revisions(start_revision_id=A, stop_revision_id=B, stop_rule='include', direction='forward') if a[1] == 0][0][0] by my reading of the docstring14:40
lifelessjames_w: is_ancestor is about as expensive as list(iter_merge_sorted_revisions) but you'd be calling it *per* ancestry point14:41
james_wok14:41
lifelessjames_w: thumper recently landed code in lp to do precisely what you're wanting to do14:42
lifelessjames_w: something like that comprehension, yes14:42
lifelessits too late for me to bend my head completely around though14:42
vilapqm fails to send mail on failures ?15:23
james_wvila: I think there is a suspicion that the output exceeds some limit now15:28
james_wdue to the extra information in the subunit stream15:29
vilayeah spiv mentioned it a couple of hours ago, but *where* is it failing ? At the sending site ? At some intermediate one ?15:29
vilajames_w: are you still working on your ancestry check ?15:30
james_wI've got something coded now, working on tests15:30
vilaok15:30
james_wmy guess would be postfix on the pqm box15:30
james_wbut it could be anywhere in between I guess15:30
jelmerlifeless: hi15:31
jelmerlifeless: are you debugging something with PQM?15:31
vilajelmer: \0_15:31
vilajelmer: I think he said it in one of its mails :)15:31
vilas/its/his/15:31
jelmerah, I see now15:32
jelmerJust saw a bunch of emails15:32
vilayeah, me too, weird, especially since *I* didn't get mails for my last submissions which failed ;)15:32
lamontjames_w: one of the losas could verify that for you15:35
vilaHa, silly me, losa ! Gimme a losa !15:36
Chexvila: hi let me look at you15:38
james_wheh15:38
james_wvila: look behind you!15:38
vilaChex: Hi ! So, it seems pqm failed to send me an email after a failed subsmission15:38
vilajames_w: same wall as usual ;-)15:38
vilaChex: twice in fact15:39
Chexvila: hmm, interesting.15:39
vilaChex: no, scratch that, the second one has not failed yet, it's still running !15:39
vilaChex: but it's almost the same merge and already mentions an error at http://pqm.bazaar-vcs.org/15:40
vilaso it *will* fail15:40
Chexvila: test_no_conflict_marker.py, yes?15:40
Chexvila:  is yours?15:40
vilaChex: no, Merge 2.1 into bzr.dev including fixes15:41
=== mrevell_ is now known as mrevell
jamdang lifeless, you really know how to spam the review queue....16:30
jammorning vila16:31
vilamorning jam, yeah, let's hope he *is* awake  :)16:31
james_wwell, he apparently just set the thing back to Queued, and I don't think that would be a bot would it?16:32
jamI just set it to WIP16:32
jamjames_w: well, it is cycling, and I don't think Lifeless is awake16:32
vilajam: I don't think it's cycling, there are tiny differences in the error messages the last one being being about a module without exit defined16:33
james_wand now it's back from WIP to Approved16:33
jamperhaps, but 20+ messages is a decent threshold if he isn't actively processing it16:33
jamMain problem is that bots act as users16:34
jamso you can't tell *who* is actually doing the action16:34
vilaI bet he is awake :)16:34
jamOf course, having to manually subscribe to a branch so I can say I don't want email is a bit weird, too16:36
jamAnd since I've commented on the mp, I don't even know if that will work16:36
jamlifeless: go to bed and stop spamming my inbox :)16:39
lifelessjam: you know when you're at the final stage of getting something done16:41
lifelessjam: I'm done now; the frankenbeast is working16:45
lifelessI was menaing to be asleep 2 hours back. argh.16:45
lifelessjelmer: queue position - not new, but newly used.16:45
jelmerlifeless: ah, ok16:47
jelmerlifeless: what were you trying to get working?16:47
jelmerlifeless: just trying to fix a PQM bug or is this new fancy stuff?16:47
=== deryck is now known as deryck[lunch]
jamjelmer: he's working on a cron script16:49
jamso you can mark a mp Queued16:49
jamand it will land it for you16:49
jamor block it, I assume16:49
jelmerah, neat16:49
=== beuno is now known as beuno-lunch
jelmerit's great to finally see stuff happening in pqm again16:51
vilahe was awake, I won :)17:19
vilaui.note() doesn't support unicode, does that ring a bell ?17:25
jelmernot to me..17:28
=== IslandUsurper is now known as IslandUsurperAFK
Guest00963Anyone have any experience/opinions re: bzr-eclipse vs qbzr-eclipse?  Is one proj more-active / recommended than the other?17:35
Takis there a trick to using svn+ssh:// on windows? I used the 2.1.1 standalone installer, and I keep getting: [Errno 2] Can't create tunnel: The system cannot find the file specified (on a pull)17:38
jelmerTak: it's having trouble finding the ssh executable17:38
jelmerTak: I'm not sure what the best fix is exactly17:38
Takhmm - doesn't it use paramiko?17:39
jelmerTak: no, since bzr-svn just calls out to libsvn17:39
jelmerTak: and that's written in C and needs to call a SSH executable17:39
Takoh, ok17:40
Taktrying http://agateau.wordpress.com/2007/07/03/windows-svnssh-and-the-subversion-command-line-client/17:41
=== deryck[lunch] is now known as deryck
=== IslandUsurperAFK is now known as IslandUsurper
vilajam: what encoding should ui.note() use IYHO ?18:22
jamvila: trace.note uses utf-818:24
jamui.note() should take Unicode18:25
jamand the ui_factory should determine what encoding to use18:25
jamideally, TextUIFactory would use sys.stderr.encoding18:25
jamprobably osutils.get_terminal_encoding()18:25
jamhowever, we've historically had lots of problems with that stuff18:25
jamso... meh18:25
vilathat's the suprising part in bug #563997 ... that we didn't encounter the problem sooner18:26
ubottuLaunchpad bug 563997 in bzr "ui.note doesn't support unicode" [High,Confirmed] https://launchpad.net/bugs/56399718:26
jamvila: we rarely use ui.note() vs trace.note()18:27
jamand the latter has currently been hard-coded as utf-818:27
vilaha, good point18:27
jam*I'm* pretty surprised to see that ui.note() is going to stdout, rather than stderr18:27
=== beuno-lunch is now known as beuno
vilajam: well, the problem will be the same18:31
vilaI was about to add a msg = msg.encode(osutils.get_terminal_encoding(), 'replace') but I realized that this isn't cached... and could be quite costly to call for each note()18:32
jamvila: in other places we set up the output file at one point, and then use it repeatedly from there18:35
vilayeah, I guess I could cache it __init__ anyway since different ui objects will be used, there is no way to change stdin/stdout/stderr (other than accessing the attributes dirrectly...)18:37
vilajam: hmm, looks like the truth is elsewhere, bzrlib.tests.TextTestResult is using ui.note, but I see no good reason for this (may be to avoid calling ui.clear_term() explicitly...)18:55
jelmerjam, vila: How do we cope with the lack of atomic renames in bzr exactly?18:56
jamjelmer: osutils.fancy_rename()18:56
jamgenerally, we fake it18:56
krisives-gearboxHow do I get a file back that has been removed from version control?19:01
krisives-gearboxWhen I do `bzr cat -r` with an old revision it says its no longer under version control19:01
krisives-gearboxWhen a file gets removed from bzr, are all traces gone after that?19:02
IslandUsurpertry reverting that file to a good revision19:02
IslandUsurperI'm surprised cat didn't work though19:02
fullermdI think cat may look at the current tree to find the file.19:03
fullermdrevert is the better answer anyway though.  cat/add won't resurrect it, it'll make a new file.19:03
krisives-gearboxI tried using `bzr cat -r someOldVersionThatWasGood` and it didn't work19:05
krisives-gearboxIt says its not versioned anymore19:05
IslandUsurperkrisives-gearbox, use `bzr revert -r xxx filename`19:05
krisives-gearboxIslandUsurper: I tried that too, it's saying this:19:07
Stavroshello19:08
krisives-gearboxbzr: ERROR: u'administrator/components/com_fpslideshow/configuration.php' is not present in revision stoysnet@hostedbycorephp.com-20100412210927-21s7b7c2ftm709um19:08
Stavrosdoes anyone know if dulwich 5.1+ is available anywhere?19:08
krisives-gearboxWhy is the revision name so long, I don't remember seeing that before19:08
Stavroserm, 0.5.119:08
Stavrosall i can see is 0.5.019:08
fullermdkrisives-gearbox: Well, that's the name of the revision   :)19:10
fullermdkrisives-gearbox: Are you sure the file did exist in that rev?19:10
krisives-gearboxHow can I see the name of the revision?19:10
fullermdAdding --show-ids to log will show the revids.  But you can use the revnos just as well; it doesn't matter for what you're doing.19:12
krisives-gearboxI think this was caused by FTP and `bzr update`. I always use SFTP, can anyone give me a heads up on how FTP and `bzr update` work /19:16
krisives-gearboxWhen I remove a file from version control, how can I make sure that file doesnt get deleted later when I do a pull/push ?19:54
krisives-gearboxhttp://stackoverflow.com/questions/2648362/remove-files-from-bazaar21:56
vilakrisives-gearbox: this sounds like a bug, please file it at https://bugs.launchpad.net/bzr/+filebug22:01
krisives-gearboxvila: Really? Not arguing, but it's a bug?22:01
vilakrisives-gearbox: well, at least the bzr behaviour doesn't match your workflow22:02
krisives-gearboxIs it supposed to be default to have it delete the files/22:02
vilaOne can argue that you want your cake and eat it too (don't version it, but please keep the last version of the file in place)22:02
vilayes it is, that's what you want generally: a versioned tree should be recreated as it is versioned and if you get new versions you want the tree to be updated22:03
vilaI can't think of a good way to address your workflow but may be others will have better ideas22:03
vilakrisives-gearbox: in the mean time, you should advertise how to restore this file to your users22:04
vilakrisives-gearbox: bzr revert -rxxx file22:05
krisives-gearboxWe're trying to version many clients, so that's not a possibility right now22:05
krisives-gearboxAnother problem is that `bzr revert -r SomeVersion file` says it's been removed from version control, so we end up having to do a hunt for the last version that it was versioned under (which could be 20+ revs ago)22:05
vilakrisives-gearbox: one thing I don't get is how would a new client start from a recent version ?22:06
vilakrisives-gearbox: where will the file be coming from ?22:06
krisives-gearboxThe scenario is that they have a lot of existing clients that don't have any kind of version control22:14
krisives-gearboxWe've version controlled the development and testing sites22:15
krisives-gearboxTo version the clients I'm copying the .bzr directory to the client site, which gives me a way to see what all the changes are when I do a `bzr status -V` or in text editor when I use `bzr commit`22:15
vilaok22:16
lifelesssomeday I'll learn how to sleep in after a late night22:17
lifelessbut not today22:17
* vila is not sure to agree :)22:18
lifelessthumper: ping22:19
dashjelmer: i just encountered bug #413113 in bzr-svn 1.0.222:30
ubottuLaunchpad bug 413113 in subvertpy "SubversionException: ('Svndiff contains a too-large window', 185001)" [High,Fix released] https://launchpad.net/bugs/41311322:30
jelmerdash: what version of subvertpy/bzr-svn are you running?22:30
dashsubvertpy 0.6.822:30
dashbzr-svn 1.0.222:31
jelmerdash: see that bug report22:31
jelmerdash: that bug was fixed in subvertpy 0.6.922:31
dashjelmer: hup! i am blind22:31
dashjelmer: i read that as bzr-svn 0.6.922:31
dashthank you. ;)22:31
jelmerah, heh22:31
dashjelmer: that works, of course22:35
dashjelmer: btw thank you, bzr-svn has made my life significantly less frustrating at work22:35
thumperhttp://www.platocafe.co.nz/22:37
thumperdamn22:37
thumperup arrow22:37
thumperlifeless: pong (but on a call)22:37
lifelessthumper: hey great.22:42
lifelessthumper: who can set merge proposals to 'Queued'22:42
lifelessthumper: also check out the latest commits to lp:pqm22:43
jelmerdash: happy to hear it :-)23:05
lifelessthumper: so, yo23:13
thumperlifeless: still on a call23:13
lifelessok23:13
thumperlifeless: I believe that the owner of the target branch can mark something queued, or the owner of the merge queue23:31
thumperlifeless: merge queues aren't exposed yet through either the web ui nor api yet23:32
lifelessthumper: its definitely more than the target branch owner.23:32
thumperlifeless: if the proposal has been approved, then I think it is anyone with launchpad.Edit on the proposal23:32
lifelessthumper: perhaps I'm in the merge queue owner group though; are there implicit queus for series ?23:32
thumperlifeless: I'd really have to take more of a look23:32
lifelessthumper: I guess what I really mean is, 'how can I tell' ?23:33
thumperbut both rockstar and I would like to see the feature finished off23:33
thumperlifeless: read the source is the only way23:33
lifelessthumper: ok, where should I start23:33
* lifeless fires up the lpdev vm23:33
lifelessthumper: yes, I know its not finished and you want to finish it.23:34
thumperlifeless: if the proposal is not approved, only reviewers can queue it, if it is approved anyone who can set the status can queue it23:35
thumperlib/lp/code/model/branchmergeproposal23:35
lifelessthumper: I'm very happy to dogfood and deal with glitches23:35
lifelessthumper: all going well, pqm for bzr will be lp queue enabled today23:36
thumpercool23:36
lifelessthumper: I just need to figure out if I'm opening a huge gaping security hole23:36
thumperlifeless: the whole is no bigger than pqm currently is23:36
lifelessor whether the lp permissions model is close enough to what we do in the config file today.23:36
lifelessthumper: currently, pqm requires a gpg signature from specific people to do a merge23:37
thumperlifeless: yes, but I could submit a branch for you that you could then push new revisions to before it is handled23:37
thumperlifeless: it is similar for LP queues23:37
lifelessthumper: if you think I'm trustworthy and you're wrong, yes.23:37
thumperI think lp deals at the same level of trust23:38
lifelessthumper: for that particular vector, yes. But we may be letting all of ~bzr send to pqm, for instance.23:39
thumpertrue23:39
lifelesswhich is/was an open team23:39
lifelesswhat defines 'reviewers' for a merge proposal23:40
lifelessthumper: I think you may have the permission description you gave me a little confused23:40
lifelessI see a comment that says23:41
lifeless'non reviewers can toggle between approved and queued, but not make anything else approved *or queued*'23:41
lifelessthumper: oh, actually, you have it right, but the explanation confused me.23:41
lifeless'only reviewers can permit a proposal to end up in the 'queued' state.'23:42
lifelessthumper: I need a small hand23:44
thumperlifeless: yes?23:44
thumperI have to head out for an appt shortly23:44
lifelessthumper: two questions: what defines 'reviewer' for a mp23:44
thumperlifeless: in the review team of the target branch or in the owner team of the target branch23:45
lifelessand the other q is generic LP APIs, I'll ask in #lp-dev23:45
lifelessthumper: ok, so I think I'll do my own permission check on the queuer23:48
lifelessthumper: and file a bug, because I think we want more reviewers than landers. Or something.23:49
lifelessthumper: we've got 33 people in the review team for bzr.dev23:49
lifelessthumper: oh I should also say - thank you very much for your refactorings of the pqm code base23:55
lifelessthey made this possible23:55

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