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

=== Chex changed the topic of #bzr to: Bazaar version control | Launchpad will be down/in read-only from 23:00 UTC up to 02:00 UTC for a code update | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: vila | bzr 2.1.0final has gone gold, time to build installers!
lamalexHi, I just installed bzr-builddeb and got a debconf dialog about postfix00:53
lamalexI know I can basically ignore it, but is there some way to set it up to work with gmail?00:53
lifelessbzr's email stuff can00:54
lifelessbut I don't think thats what installed postfix00:54
lifelessit will be debuild's dependencies bringing it in00:54
lamalexright00:55
lamalexis it a known bug that bzr branch lp:<project> isn't working in lucid?01:04
lamalexoh, maybe this is because lp is read-only right now01:04
lifelesslamalex: lp is down right now, for code hosting.01:06
lamalexlifeless, thanks01:12
=== Chex changed the topic of #bzr to: Bazaar version control | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: vila | bzr 2.1.0final has gone gold, time to build installers!
igchi all02:12
parthmhello. I was wonder if "Bazaar Developers" received a review request for bzr-grep for https://code.launchpad.net/~parthm/bzr-grep/bzr-grep-first-review/+merge/2061302:51
lifelessI get an oops looking at that page02:52
lifelessthumper: ^02:52
thumperlifeless: yep02:52
thumperlifeless: we kknow02:52
thumperworks on prod02:52
thumperedge has a misconfiguration02:52
spivparthm: I haven't received an email about it, so I guess not02:53
parthmspiv: weird. the maintainer is bzr devs so i assume it should have worked.02:54
parthmfor bzr-grep02:54
parthmspiv: i did 'request another review' with reviewer as 'bazaar developers'. i though the maintainer would be the default reviewer.02:56
spivparthm: FWIW, it's listed at https://code.edge.launchpad.net/~bzr/+activereviews03:00
spivAlthough bzr's reviews actually go to ~bzr-core, not ~bzr03:00
lifelessspiv: they do ?03:00
spivOh, I might be wrong?03:00
lifelessthey go to subscribed teams03:00
lifelessanyhow, ~bzr is in ~bzr-core03:01
lifelessso there is issue if ~bzr-core is the one subscribed to lp:bzr03:01
lifelesss/is/is no/03:01
spivMy mail archives suggest that review requests for bzr go to bzr-core03:02
parthmspiv, lifeless: ok. as long as its in activereviews :-) next time on i can add bzr-core.03:05
lifelessparthm: please don't03:05
=== samurai is now known as samiam
lifelessthe folk in bzr-core *explicitly do not want* to know about bugs or code in plugins.03:05
lifeless~bzr is the right team, always, for working with stuff in plugins.03:06
spivparthm: what lifeless said03:06
parthmlifeless: sounds fine.03:06
spivparthm: but unfortunately I haven't actually received a mail about your review request, so I wouldn't have known it was there without you saying on IRC :(03:06
parthmspiv: thats what i was confused about. its probably listed only because i added ~bzr explicitly. shouldn't maintainer (~bzr) be the default reviewer? lp bug?03:07
spivparthm: I'm as confused as you are.03:08
lifelessparthm: who owns the branch03:08
=== samiam is now known as samurai
parthmlifeless: ~parthm owns the branch, ~bzr is the maintainer for bzr-grep.03:09
lifelessmaintainer doesn't mean anything03:09
lifelessbranch owner does03:09
lifelessif you want - and its up to you - bzr-grep to be team maintained (which your desire for code review suggests), then change the owner of lp:bzr-grep (the target branch), to be ~bzr03:10
parthmlifeless: that was it. fixed. https://code.launchpad.net/~bzr/bzr-grep/trunk03:11
parthmlifeless: thanks.03:11
* igc lunch04:29
spivlifeless: btw, regarding bug 531667, see http://jcalderone.livejournal.com/54911.html04:34
ubottuLaunchpad bug 531667 in subunit "There is no version attribute anywhere in subunit" [Undecided,New] https://launchpad.net/bugs/53166704:34
lifelessspiv: patches appreciate04:36
spivlifeless: Good to hear they appreciate rather than depreciate in value :)04:37
marvI was reading through the man page and I don't see any way to do the equivalent of "svn up -rxxx [file]", i.e. switch a file or the tree to some previous revision04:38
lifelessso, seriously. I'd love a patch04:38
SamB_XPspiv: what happened to the "p"?04:38
spivmarv: in bzr 2.1 both update and switch take a -r option04:38
marvah. i seem to have 2.0.2, which is apparently what ubuntu 9.10 makes available to me04:39
spivmarv: for individual files, perhaps you just want "bzr revert -r NNN some/file", though?04:39
marvspiv: that was my next question, i read about the "revert" command, but the man page didn't make it clear if it just changed the working copy, or actually uncommitted the files. all the stuff about it making backups makes me think the latter04:40
spivmarv: note that bzr commits entire trees, not just individual files, so there isn't really any concept of "fileA at rev 99, but rest of tree at rev 101"04:40
spivmarv: revert just changes your working tree04:40
marvok, thanks04:42
spivmarv: if you want to try 2.1 for ubuntu 9.10, you can try the bzr PPA: https://launchpad.net/~bzr/+archive04:42
Pengmarv: revert doesn't actually change the meta data from "r101" to "r99", though. It's "r101 + the files have been modified and coincidentally happen to look like r99". That's often perfectly fine, though.04:42
marvPeng: yeah, i could just revert them again to be back at head. and that behavior actually matching what svn users want half the time when using -r with update, at least in my experience04:44
Peng:)04:44
jtvAnyone got a moment to enlighten me on bzrlib's export function?04:54
jtvI thought this would be the most lightweight way of getting the contents of the current revision of a branch.04:54
jtvBut when I use it from within my Launchpad branch, it seems to ignore the URL I pass it and always retrieve a Launchpad branch instead.04:55
jtvIs this the wrong function to use when I just want to get the current contents of a branch given by URL?04:55
lifelessjtv: there isn't a really lightweight way to get a remote branches tip revision content.04:57
lifelessjtv: export is 'ok', as is using the tree functions. But tell me what you want to do - gimme a full lifecycle use case.04:57
jtvlifeless: I want to get the current contents of a given branch, do stuff with them, take the results of the stuff away, and forget all about whatever I did with bzr04:58
jtv(in other words, delete the directory where I got the branch contents)04:58
lifelessjtv: more detail04:58
lifelesswill you be querying the revision graph04:59
lifelesswill you be diffing files04:59
lifelesswill you be doing other things04:59
jtvI'll be running intltool.04:59
jtvWhich afaik doesn't care one hoot about bzr and even if it wanted any of its features, doesn't know how to.04:59
lifelessthaats it ?04:59
jtvThat's it.05:00
lifelesswill it be over the internet05:00
lifelessor a LAN ?05:00
jtvRead the branch contents as a bit of filesystem.05:00
jtvThis is LP build slaves talking to the codehosting server, so pretty much LAN.05:00
jtvNo private branches now, and for this way of obtaining the branch, probably ever.05:01
lifelessok05:01
jtvThe preferred protocol is http.05:01
lifelessexport should be alright for your use case05:01
lifelessso whats happening05:02
jtvMy code:05:02
jtvbranch, subdir = Branch.open_containing(branch_url)05:02
jtvrev_tree = branch.basis_tree()05:02
jtvexport(rev_tree, branch_dir)05:02
jtv.05:02
jtvThis creates branch_dir as it should, but in there, gives me the contents of a Launchpad branch.05:03
jtvRegardless of what URL I pass.05:03
mwhudsonwhat is branch_url?05:03
lifelesswhat do you mean 'Launchpad branch.'?05:03
jtvmwhudson: http URL where the branch can be found.05:03
spivjtv: do you mean it gives you the entire contents of the branch, not just a subdir that you are identifying in the url?05:04
jtvlifeless: a branch of the Launchpad source.05:04
SamB_XP!05:04
jtvspiv: no, I'm asking for a completely different, non-LP-related branch and am still getting the LP source tree instead.05:04
spivjtv: you are running this command while your cwd is a launchpad checkout?05:04
mwhudsonthat sounds a little strange05:04
jtvspiv: exactly05:04
lifelessjtv: provide a failing url05:04
lifelessjtv: please05:04
jtvNow, it may just be an unintended consequence of the way I'm running this.05:04
jtvlifeless: lp:unpaste05:05
mwhudsonjtv: oooh05:05
lifelessok, /not/ an http url.05:05
lifelessjtv: in future, please don't be vague :)05:05
mwhudsonjtv: make sure bzr plugins are loaded05:05
lifelessjtv: you need to load bzr plugins - the launchpad one specifically05:05
lifelessimport bzrlib.plugin05:05
lifelessbzrlib.plugin.load_plugins05:05
lifeless - or -05:05
mwhudsonjtv: but yeah, best to use http:// urls05:05
SamB_XPshouldn't that just FAIL if the plugins are missing ?05:05
lifelessimport bzrlib.plugins.launchpad05:05
jtvI did try with an http URL at one point, but don't remember how it failed05:06
lifelessSamB_XP: no, because open_containing is a heuristic - it walks up05:06
mwhudsonjtv: because lp: name resolution is done by talking to the appservers, which buildds won't be able to do05:06
lifelessSamB_XP: and finds '.', 'lp:unpaaste'05:06
SamB_XPlifeless: ah05:06
lifelessjtv: I suggest that you don't want open_containing either05:06
lifelessjtv: for what you're doing, 'open'.05:06
* jtv experiments05:07
lifelessopen_containing is for dealing with user input05:08
lifeless'there is abranch around here somewhere'05:08
lifelessand 'I want the relative path to something in that branch'05:09
SamB_XPlike "bzr diff", yeah?05:09
lifelessneither of which apply to your case AFAICT05:09
lifelessSamB_XP: right05:09
lifelessand bzr merge05:09
lifelessbzr log05:09
lifelessbzr cat05:09
SamB_XPbzr dog05:10
SamB_XPbzr moo05:10
jtvOkay, it works when I try it with open_containing on an http URL.  Obviously I'm still doing something wrong with the URL though, because I get "BzrBranch7 object is not iterable" when I use open.05:11
lifelessjtv: open returns the branch05:11
lifelessjtv: no subdir05:11
lifelessjtv: see pydoc bzrlib.branch.Branch.open05:11
lifelessSamB_XP: $ bzr dog05:11
lifelessCommand 'dog' not found, perhaps you meant 'log'? [y/n]:05:11
lifeless$ bzr moo05:12
lifelessCommand 'moo' not found, perhaps you meant 'move'? [y/n]:05:12
SamB_XPoh. "this bzr does *not* have super-cow powers."05:12
spivopen_containing returns (branch, left_over_url_portion) because it has to perform guesswork.  open either finds the branch or fails, no ambiguity, so no need for left_over_url_portion.05:12
SamB_XPoops05:12
lifelessSamB_XP: install bzr-guess :P05:12
jtv...and that works!05:13
jtvThanks for your patience with my screwups.05:13
spmlifeless: tsk tsk: $ bzr love ==> bzr: ERROR: unknown command "love" ;; leaving me to ask, where's the love!!!05:37
lifeless~$ bzr love05:37
lifelessCommand 'love' not found, perhaps you meant 'move'? [y/n]:05:37
lifelessspm: install bzr-guess, you can find the love :>05:37
spmI find that a bit creepy that bzr love === bzr move.05:38
lifelessI've been meaning to ask. We can delete thelove@canonical.com now, surely.05:38
lifelessspm: there ain't no love without movement.05:38
spmprobably; RT requests accepted.05:38
spmthat's the creepy part....05:39
spmlifeless: somewhat less seriously; managed to briefly grab lamont; he is reaching new levels of bafflement and bewilderment on the subunit stuff. the build for intrepid; drop in hardy question remains open.05:39
lifelessspm: I'm happy with a manual install: I just want it done </user>05:40
spmyeah... trouble is we've been down that path before and pain awaits in the fairy garden at the end. But he is aware of it, so I remain hopeful of a solution soon.05:41
lifelessthanks!05:41
bob2goodbye, thelove!05:43
spmalas poor love, I knew him/her/it well....05:44
jtvspm: we're being very Shakespearian this week, aren't we?05:46
jtvOr Hamletic really, since it's all from the same monologue05:47
spmone (badly mis)quote and I'm labelled?!!?!? :-)05:47
lifelessto commit or not to commit, that is the question05:47
jtv(Hmm... "monologue"—that's a good word for a dialogue-that-just-holds-everything-up-until-you-click-OK)05:48
jtvspm: I did most of the bad quoting as I recall05:48
jtv"whether 'tis nobler in the channel"05:48
jtv"to suffer the guns and roses of outrageous fortune"05:48
spmjtv: ahh my bad, you said "we're". apologies for the excess of self-ego issues05:48
* jtv is going dyslexic and read that as self-lego issues05:49
jtvMust be also why I typed "bzr sty" just now, but in my defense, that _should_ be a valid command05:49
SamB_XPjtv: I didn't know Self came with Legos!05:49
SamB_XPor is that the issue ?05:49
spmjtv: so what I'm getting there is that a monologue is a language exclusive lock? or perhaps I've spent too much time earlier today staring at postgres logs....05:49
jtvSamB_XP: I'll completely ignore the reference and answer, "it depends on who self is"05:50
jtvspm: hey, it beats sniffing glue.  What's a _language_ exclusive lock though?05:50
spmjtv: and technically, it could be argued, I do have self-lego issues. seeing as I started stock piling lego for a boy when he was ~ 2-3 months old. which now he's 6 works *really* well :-D05:50
SamB_XPyou know, that language-whose-implementation-does-not-wish-to-build-on-x86/with-modern-G++?05:50
spms/a boy/our boy/05:51
jtvspm: that pretty much meets my definition of being one of the very few people _without_ lego issues05:51
spmhahahah05:51
jtvTwo, if you count the boy05:51
jtvSamB_XP: I _said_ I'll completely ignore the reference.  :-P05:51
* SamB_XP gives jtv a morphic drip to correct the problem05:52
jtva whu'!?05:52
SamB_XPMorphic is the name of Self's UI framework05:53
jtvah05:55
jtvand the drip?05:56
jtv(damn this trait of curiosity!)05:56
SamB_XPyou know, an IV05:56
SamB_XPlike a morphine drip, only morphic ;-P05:56
jtvYKYBPTLW you miss a reference to morphine because morphic seems such a normal word05:57
SamB_XPnormal word? what the?05:58
spivWell, if YBPTL, it might seem to be ;)05:58
SamB_XPhave you been on Squeak or something ?05:58
spiv(I'm guessing P == Pratchetting)05:58
SamB_XPalso, YRU using all these crazy things starting with Y?05:59
marvthe what's new in 2.1 page linked me to http://doc.bazaar.canonical.com/plugins/en/colo-plugin.html which seems to 40406:03
fullermdY?  Y!06:03
pooliehi all06:03
pooliethanks for pointing that out, marv06:04
spivHi poolie06:05
pooliehi spiv, how are you?06:08
marvi wish http://wiki.bazaar.canonical.com/BzrForeignBranches/Subversion would have linked to http://doc.bazaar.canonical.com/migration/en/foreign/bzr-on-svn-projects.html the latter seems much more useful but I had a harder time finding it06:10
pooliemarv, it's a wiki so please feel free to add a link06:10
spivpoolie: pretty good, although I just got a surprising and hopefully unreproducible test failure...06:15
bialixigc: ping06:24
igchi bialix06:24
bialixhi igc06:24
bialixqbzr 0.18.3 is ready for you06:24
igcbialix: thank-you06:24
bialix:-)06:25
igcmarv: that 404 is a bug in the plugin guide. I need to generate a new one06:25
bialixigc: anything else needed?06:26
igcbialix: not that I know of. hopefully .3 fixes most of the treewidget issues in explorer06:26
bialixokay, I'll be online again later06:27
* bialix disappears06:29
poolieigc, marv, i'll just run an update on escudero06:34
poolieit may just be out of date?06:34
poolieno, that's not it, so i'll leave it with you igc06:46
sttng359Hello06:57
pooliehello06:58
pooliebiab, rebooting07:00
sttng359I have a bazaar repository made with 1.13.1 that I'd like to clone to be able to use with Bazaar 1.6.1.07:01
sttng359Can I use the newer Bazaar to clone it in a way compatible with the older Bazaar?07:02
RAOFsttng359: This depends on what format the repository is in.  If I remember correctly, the default format of 1.13.1 should be compatible with 1.6.1, so you should be good to go.07:03
RAOFIf you used a non-default format, then you may have problems.07:03
sttng359It was created using the bzr-svn plugin.07:03
sttng359I get Unknown repository format: 'Bazaar RepositoryFormatKnitPack6RichRoot (bzr 1.9)\07:03
lifelesssttng359: you are _much_ better off installing a new bzr.07:04
sttng359with the older Bazaar.07:04
lifelesssttng359: is that not possible?07:04
RAOFsttng359: I think you could get around that by serving the repository over the smart-server, but newer bzrs are cooler. :)07:04
sttng359My work is using an Ubuntu 8.10 server with has 1.6.1.07:04
PengRAOF: Probably not -- bzr still does a lot of VFS access.07:04
Pengsttng359: So use the PPA to install a newer one. https://launchpad.net/~bzr/+archive07:05
PengThen you can upgrade to a newer, smaller, faster repo format too. :D07:05
sttng359The options like 1.6.1-rich-root don't seem to affect branch.07:06
Pengsttng359: Downgrading is certainly possible, but...why would you want to use an older, suckier format in an older, suckiet bzr?07:06
sttng359I don't have root on my work server.07:06
Pengsttng359: Ooh. Well, do you have the sysadmin's phone number? :D07:06
spivsttng359: you can do 'bzr upgrade --1.6.1-rich-root'07:06
PengYou _could_ still run bzr from source.07:06
sttng359They are planning on upgrading to Ubuntu 10.04, I think, but it's currently 8.10.07:06
spivsttng359: (i.e. the upgrade command can also downgrade)07:07
sttng359ok07:07
Pengspiv: It can?07:07
spivYes.07:07
PengHey, it can.07:07
sttng359I'd have to get fellow devs to share work with me, so I prefer the server installed version of tools07:07
sttng359but I could probably get them to use my custom installed version.07:08
lifeless1.6 is not going to be reliable on rich root07:08
lifeless_really_ don't use it with the bzr-svn import07:08
sttng359does --1.9-rich-root represent the format used by newer Bazaar?  That option doesn't exist in 1.6.1.07:09
lifelessno07:09
Peng"bzr init --2a foo && cd foo && bzr upgrade --1.6.1-rich-root" seems to go into an infinite loop. :D07:09
vilahi all !07:09
lifelessthe 1.9 formats are about a 15 months old, maybe more.07:09
lifelessPeng: the branch objects don't have a downgrader written for them.07:10
lifelessPeng: there is a bug open.07:10
Penglifeless: Ah, fun.07:10
lifelesssttng359: you can use sftp:// rather than bzr+ssh://, then the version of bzr on the server won't matter.07:10
sttng359do I need rich-root support on clones if they won't be directly commiting to subversion?07:14
lifelessyes07:14
lifeless2.0 has rich root by default07:14
lifelessis much faster and uses less memory ;)07:14
sttng359maybe I can convince my sysadmin to install a newer package, but even my home computer with 9.04 only has 1.13.1.07:16
PengYou can use the PPA on your home computer too. :>07:17
sttng359Are http transports for Bazaar repository agnostic?07:20
lifelessI don't know what you mean by that question.07:21
sttng359I'm just curious how much trouble open source developers have since it seems like the Bazaar repository format keeps changing.07:23
PengIt hasn't changed so far this year!07:23
* Peng ducks07:23
PengPeople use older formats, or upgrade bzr.07:24
poolievila, thanks for all the reviews07:25
spivsttng359: as Peng says, people stick with the older formats if they can't upgrade bzr07:25
sttng359If I can't clone an open source projects repository because it's the new 2.0 format for example.07:25
poolieand for replying to the meta patch pilot thing, that saved me feeling i was totally wasting my time07:25
spivsttng359: the main problem we had was that bzr-svn required a non-default format until 2.007:25
pooliesttng359: are you having trouble yourself or is it just a general comment?07:25
vilapoolie: hehe, you're welcome, there are still some left but the queue size is already more reasonable07:26
pooliefwiw i probably would have finished henninge's branch rather than pushing it back07:27
pooliebu, obviously, i can still actually do that myself07:27
sttng359no, I am just an assumption that Bazaar 2.0 would create a 2.0 rep by defaultd on my difficulkty using repositories created with bzr-svn (yes, using pre-2.0 bazaar.07:27
sttng359I have had enough issues with subversion automatically updating the format of working copies the moment a newer client even does a status on an older format.  I was very glad to at least find out that Bazaar does not automatically upgrade.07:28
sttng359But I assumed Bazaar would use the newest format available for new repos.07:29
sttng359so standard 1.x Bazaar does not use rich-root for standard (non svn-based) repos?07:30
PengUsually they wait a couple releases before making a new format the default. The 2.0 format has been supported since 1.18 or so.07:30
Pengsttng359: Bazaar only started defaulting to a rich-root format in 2.0.07:30
vilapoolie: well, for henninge's branch, I left the door open, had he say: "Sorry I won't", I would have finished it, but I'd like to make some progress on the conflict stuff too...07:31
_habnabitCan you have a subdirectory in a branch be linked to some other branch, like you can in svn?07:31
Pengsttng359: There's nothing bzr-svn-specific about rich-root formats, it's just that bzr-svn is pretty much the only thing that requires rich-roots.07:33
sttng359On a seperate note, I am having issues with Bazaar 1.13.1 and bzr-svn checking out a secured HTTPS subversion repository with unexpect 401 response (expect 200 or 404).07:34
PengOh god, _that_ bug.07:34
sttng359so I *really* need to upgrade?07:34
PengWait. Maybe not _that_ bug.07:35
PengStill auth makes my head hurt, and I meant to go AFK like an hour ago. Bye!07:35
Pengs/auth/HTTP auth/07:35
sttng359k07:35
sttng359thkx for your help07:35
nil1Hi08:33
nil1Is there a known memory leak in "bzr svn-import"?08:34
nil1If not, how can I obtain additional information for the bug report?08:34
* igc dinner08:34
parthmvila: i am going through your review comments https://code.launchpad.net/~parthm/bzr/376388-dot-bazaar-ownership/+merge/1969108:44
parthmvila: for the comment on "def parent_dir(path):" are your suggesting i move the code into copy_ownership?08:45
vilaparthm: copy_ownership says: "If own_src is None, the containing directory is used as source" but this refers to the *usage* of the function instead of implementing it,08:47
vilaand even there ISTM that you *don't* call chown() if ownership_src is None in higer levels08:48
vilaSo I would rather special case None and '' in copy_ownership and get rid of parent_dir08:48
vilabut I as said in the end, I'm not sure the whole approach is really sound...08:49
parthmvila: sounds fine. i think the change might have got lost in one of my edits.08:49
parthmvila: the approach is discussed a bit on bug #37638808:49
ubottuLaunchpad bug 376388 in bzr "~/.bazaar created owned by root (when run under sudo)" [Medium,In progress] https://launchpad.net/bugs/37638808:49
vilaparent_dir is weird in itself and doesn't realy match the way we work in bzrlib08:50
vilaparthm: yeah, I've read that, I don't agree with everything said there :)08:50
parthmvila: ok.08:50
parthmso should we just keep the behavior as is for now?08:51
vilabut if you address my other concerns, I'll nudge poolie for a review and we'll discuss on a clean patch08:51
parthmvila: sounds fine.08:51
parthmregarding the test.08:51
vilaparthm: that's what I'm unsure about, ISTM that etckeeper already addressed the bug and that we may leave that as is. On the other hand, if we can address the sudo problem for the root user case, maybe we should08:52
parthmi use _dummy_chown to set instance variables and see if these are changed. does that seem inadequate to you.08:52
vilaparthm: partly yes, because you then execute code that doesn't do what it's supposed to do and that's... weird08:53
parthmvila: the assumption is that os.chown works correctly.08:53
parthmi couldn't think of another way.08:53
vilai.e. this is cheating a bit too much and will be brittle in the long run (say if someone make a change, you may still have tests passing without detecting a potential bug)08:54
parthmvila: thats the lowest level. so unless the os.chown behavior changes it should catch things. the only other way istm is to actually copy ownership from/to another user.08:55
vilaWhat I'd do there is making sure chown *change* uid gid08:56
vilayes, that would be better08:56
parthmbut i am not sure how portable/reliable that is.08:56
vilaas long as chown is available and the user running the test owns the containing directory, I'm pretty sure you're allowed to change uid/gid and still be able to delete the file08:57
vilaor dir08:57
parthmvila: but do we have access to another user for a test system? we could assign root, but how does that play out with the test infra.08:57
vilaI'll avoid root but using anything else should be fine08:57
parthmvila: ok. i was concerned about the delete part. i can try that out.08:57
vilamaking the test explicitly delete the chowned file is a good way to ensure that it fails if something goes wrong08:58
parthmvila: what other user do you suggest?08:58
vilauid+1, gid+108:58
vilaanything that isn't the current user nor root08:58
parthmvila: +1 may not always work. for e.g. on my laptop i am the only user.08:59
vilaro08:59
vilaI'm pretty sure you may use uids and gids that don't exist08:59
vilas/may/can/08:59
parthmvila: oh. ok. so just change the uid/gid. sounds reasonable as long as we can delete it. i will give that a try.09:00
vilaparthm: also recording the calls to chown allows to use a single assertEquals(('path', 12, 12), call_args)09:01
vilainstead of 309:01
parthmvila: or maybe we can go with some user like 'backup' but i am not sure if that exists on osx.09:01
parthmvila: i am not sure i understand the part about recording the calls.09:02
vilayou need to use uids anyway so no need to translate that from usernames, and I don't know of any username guaranteed to exist anyway09:02
vilalet me find an example in the code base09:02
parthmvila: sounds ok. i can pick some reasonably large uid/gid09:02
vilaparthm: arbitrary large is not guaranteed to be different of the current one, that's the key09:03
parthmvila: yes. +1 should be ok i suppose. if +1 has too many rights we are in trouble anyway :-)09:04
fullermdProbabilistic tests are more fun anyway   :p09:04
parthmfillermd: :)09:04
vilafullermd: yeah and funny hostnames too :)09:04
* fullermd slinks back into his corner [case] :p09:05
vilaparthm: bzrlib/tests/test_selftest.py search for SkippedTest09:05
vilaparthm: the methods record the calls *and* call the real methods09:06
vilaoverrideAttr returns the original value (the real chown) that you'll need to use09:07
parthmvila: sounds good.09:08
parthma somewhat related question. is there a shortcut to see work-in-progress mps. right now i go through my branch list for this but its difficult to remember.09:09
Penghttps://code.edge.launchpad.net/$project/+activereviews09:10
parthmvila: so assertEquals actually makes the call?09:10
parthmPeng: it seems work-in-progress doesn't show up there.09:10
PengOh.09:10
parthmPeng: i was just wondering if there was something like +wip09:11
vilaparthm: wow, no, assertEqual just checks that things are equal :)09:11
Pengparthm: The branch's +activereviews page shows work-in-progress ones, e.g. https://code.edge.launchpad.net/~loggerhead-team/loggerhead/trunk-rich/+activereviews09:11
parthmvila: :-) so i make the call myself.09:11
vilaparthm: there is https://code.edge.launchpad.net/bzr/+merges?field.status=WORK_IN_PROGRESS&field.status-empty-marker=109:11
vilaparthm: you want a recording_chown that append to self._calls and *then* you can check :09:12
parthmvila, Peng: thanks. loggerhead definitely has a nicer url :-)09:12
dcolesGood afternoon. I was wondering if anyone knew if bzr+svn can use authentication.conf (trying to work on a Google Code svn+https repository that asks for passwords every operation)09:12
parthmvila: yes. thanks for the help on the review. i think i am good to take another stab at it.09:13
Pengvila: What pages link to +merges?09:13
vilaassertLength(1, self._calls)  and assertEquals(('path', 12, 12), self._calls[0])09:13
parthmvila: good idea.09:13
vilaPeng: I don't know, I just have this one in my history so I type 'workinp' in firefox and select it :-P09:14
Pengvila: Heh, okay.09:14
vilaPeng: sorry, I lied, I just type ''wor' :D09:15
vilaoh my, I should go through that list as Patch Pilot...09:15
parthmvila: thats a long list :-)09:16
vilaPeng: I lied again, see: http://wiki.bazaar.canonical.com/PatchPilot09:16
vilaPeng: it's mentioned there from 'You can also keep an eye on work in progress merges ...'09:17
PengAh.09:20
* parthm goes back to actually closing review comments and not talking about them.09:20
Kohlrabihello, I got a question regarding checkout of subfolders: I have a project where I have a main "root" folder and subfolders e.g. "A" and "B". Currently I have "root" setup as a branch. Is it possible to just checkout/branch one of the subfolders and at the same time get the full history of that subfolder (i.e. no exporting), and also push only this subfolder back?09:47
KohlrabiOr would I have to setup each subdir as a branch?09:47
KohlrabiAlso, if I did that, is it possible to have changes to the subfolders propagated to the root?09:49
KohlrabiSo if some user just needs folder "A" he can checkout/checkin that, but if someone wants the whole project he can checkout "root", and both are synchronized?09:49
KohlrabiI'm not afraid to do a bit of python hacking to make the sync work ;)09:50
bialixvila: lol (re-patch crew mail)09:59
bialixKohlrabi: A and B should be 2 branches09:59
bialixthen you can use bzr-externals plugin or scmproj plugin to work on root+A+B as the whole10:00
vilabialix: Always Happy to make you laugh (TM) :D10:01
bialixvila: many thanks!10:01
bialixvila: I'm writing plugin as universal hooks launcher10:04
bialixit's maybe interested for others10:04
vilabialix: mail the list !10:05
bialixI think I've figured how to run either external script or python function10:05
bialixerr, I need your mini-review10:05
Kohlrabibialix: thank you10:05
KohlrabiWill look into that10:05
vilabialix: hehe, don't be shy :)10:05
fullermdDo you get mini-reviews from mini-pilots?   :p10:06
bialixvila: so I'm trying to build such scheme: universal hook look into .bzrmeta/hooks/config for the details10:06
* vila is reminded that Gary is already waiting for some test review :-//10:06
vila-o-  <-- mini plane10:06
bialixsay start_commit hook (of MutableTree)10:06
bialixfullermd: yeah10:07
bialixso my hook launcher will looking for the line in the config like:10:07
fullermd. . .      <-- mini anti-aircraft artillery10:07
bialixMutableTreeHooks.start_commit = XXX10:07
* vila 's goes boom10:07
* vila 's *plane* goes boom10:08
vilaargh typo/joke/runied10:08
bialix^ parachute for vila10:08
bialix\^/10:08
fullermdThat's OK.  We expect typos while you're being shot at   8-}10:08
vilaLOL10:08
fullermd...  'course, we expect typos from you when you're NOT being shot at too...10:08
vilawhat a pyto10:08
vilabialix: remind me: is .bzrmeta versioned ?10:09
bialixvila: if you wish10:09
bialixbut in general -- yes10:09
bialixit was igc's idea10:09
lifelessbialix: so, jelmer has a plugin that runs external hooks10:10
bialixto put there meta info10:10
lifelessits totally insecure10:10
lifelessand it sounds like what you are proposing is as well10:10
bialixlifeless: where it is?10:10
vilabialix: with an additional twist about running the hook or not depending on some config setting right ?10:10
lifelesshttp://wiki.bazaar.canonical.com/BzrPlugins10:10
lifelesslook for shell-hooks10:10
bialixrats, I'm reinventing the jelmer's wheel10:11
lifelessbialix: running code specified *by the branch* is a very dangerous thing to do10:11
lifelessbialix: running code *selected by* the branch, is much safer, and thats what we already do.10:11
bialixI don't understand10:11
lifelessok, say you have something in .bzrmeta to run a shell script10:12
lifelessI can tell you to branch my code to do something10:12
lifelessand the shell script can email me your credit cards, and then rewrite itself as being innocent10:12
bialixyeah, that's cool10:12
lifelessthe same applies if the thing specified is python code10:13
bialixlifeless: I'm ok with that10:13
* vila notes to never ever branch any lifeless stuff anymore10:13
bialixand I need exactly thing thing10:13
bialixthis thing10:14
lifelessbialix: Are you sure you need it?10:14
bialixyes10:14
lifelessits come up many times here and there has always been another way.10:14
bialixlifeless: there is no another way to run hooks, one always need to write a plugin to implement the hook10:15
lifelessI'll note that neither git nor hg run untrusted code, for the same reason - stuff that you clone can't be allowed to just run code of its own10:15
lifelessbialix: thats orthogonal to whether the branch supplies the code10:15
bialixokay, I understand10:15
lifelessyou can have shell scripts in ~/.bazaar/shell-hooks or something, and I won't object10:16
fullermdWell.  Just because it's nutso in one context doesn't make it so in another.10:17
lifelessyou could have them in .bzr/branch/xxx too, as long as they can never be propogated by the branch [or effectively never :P]10:17
bialixlifeless: approach with branch.conf does not scale with colo plugin10:17
fullermdHaving it in-branch has significant advantages over that schema.  And there are situations where its drawbacks aren't relevant.10:17
lifelessfullermd: troll or serious? if serious please enlarge10:17
fullermdIn ~/.bazaar/ is totally unscalable because it means you have to do it for (every user * every change).10:18
bialixunless we will have exactly the same model as git and hg by default: one working tree for many branches and only one branch.conf for all of them10:18
fullermdUnder .bzr/ somewhere that doesn't propogate solves one set of problems.  Somewhere that does (be it under .bzr/ or in the WT) solves another set.10:18
fullermdAnd in the case *I* work with all day, of internal-ish code, trust is fundamental anyway.10:19
vilafullermd: sure, but here I think the question is *who* controls. And via the already existing configs you can already depends on the branch to decide what code is executed. The point is to have *that* code under control and not arbitrary coming from anyone.10:19
fullermdObviously trusting code from $RANDOM_SOURCE_ON_THE_NET is a totally different question.10:19
* vila nods10:19
fullermdBut the only way code could end up in these branches is if I put it there, or one of a very few people I work with puts it there.10:20
fullermdAnd I know where they all live.10:20
fullermd(besides, we all run the versioned code in the branches anyway; if an attack vector were wanted, it's right there waiting already)10:21
vilareflections on trusting trust...10:22
* fullermd nods.10:22
vila..arbitrary code can hide itself from bzr diff...10:22
vilanightmare10:23
fullermdAnd also the same thing as that article...  Eric's?  about differences in mindset in the OS vs corp VCS worlds.  Things can make good sense in one and be lunacy in the other easily.10:23
lifelessso10:25
lifelessthere are two problems10:25
lifelessa) distributing the code10:25
lifelessb) making it run10:25
lifelessfor a) plugins are great. So are shell scripts in ~/.bazaar if you lik that sort of thing.10:25
lifelessboth of these can be totally automated for users * changes: make a branch with all your plugins, put 'bzr pull' in a cronscript.10:25
lifelessb) then, for both cases, is 'run the code always, in every branch, and have the code quit early if it doesn't want to do anything'10:26
lifelessbialix: I don't understand why the ^ won't work for you. (using shell scripts if needed, thats a different conversation).10:27
lifelessjelmers shell-hooks plugin may need some love, and I don't think anyone else from core has audited it; it may be insecure - I don't know.10:28
bialixlefeless: jelmer's code is pretty simple10:28
bialixbut it does not work what I need: it has no support for start_commit10:28
bialixand in fact there is need some sort of templates instead of dumping all possible arguments to command line10:29
lifelessshould be easy enough to extend10:29
bialixlifeless: I don't understand your question about "why the ^ won't work for you"10:29
bialixI need special hook in the specific branch10:29
bialixnot in al branches10:29
bialixall10:30
lifelessbialix: so there is a conceptual 'if block' for that one branch, right ?10:30
bialixto be precise: I need to run scons befor starting commit so some auto-generated files will be refreshed10:30
lifelessso, in psuedo code: - in the hook, you say10:31
bialixlifeless: if specific_tree: yes10:31
lifeless'if branch.config.run_scons: run_scons()'10:31
lifelessand that then will only run scons on the branch you want it to run scons10:31
bialixlifeless: in another branch I need to run something else10:31
bialixI don't want to write zillion plugins10:31
lifelessI'm not talking plugins10:31
lifelessif you're doing shell scripts you're writing shell scripts10:32
bialixif I want branch-specific python code?10:32
lifeless[note to self, running scons *is* running arbitrary code...]10:32
vilabialix: then you run the python code is the branch matches some config setting10:33
bialixI want to distribute my hooks as the part of my branch10:33
vilabialix: I don't want to give you my credit card number10:34
bialixI understand your security concerns, but I think for colo-case using branch.conf is the wrong idea10:34
vilabialix: how do you address that ?10:34
bialixput them into .bzrmeta/hooks10:34
bialixI understand lifeless idea to enable them explicitly10:34
bialixso it should be enabled via unversioned .bzrmeta/hooks/local config10:35
vilaFor the news_merge plugin we have a setting that should be set explicitly, what makes colo usage so specific that you can't add the relevant code there ?10:37
bialixcolo usage means you have several branches10:37
vilaand ?10:38
bialixyou need to remember that every time you create new short-lived branch you have to go into .bzr/branches/foo/.bzr/branch/branch.conf and copy-paste your settings10:38
bialixit's not my way10:38
vilayou can do that in locations.conf then10:38
vila[/home/vila/src/bzr]10:39
bialixI don't use it because of some reasons10:39
vilapost_commit_to = bazaar-commits@lists.canonical.com10:39
vilanews_merge_files = NEWS10:39
vilaauto_update_copyright = True10:39
bialixI have many working trees around and I'm working with scmproj-based projects10:40
bialixit complicates things a lot10:40
lifelessso10:40
lifelessI think some settings should propogate in branch.conf10:40
bialixlocations.conf is good only if you're working on mono-project and never move it around your filesystem10:40
lifelessand .bzrmeta/pluginname is equally good to do that10:40
lifelessthe *key* thing for me is not to run arbitrary code10:41
bialixdefine "arbitrary code"10:41
lifelessI'm happy to advise on how to achieve that; we've managed so far, but we can be more userfriendly without losing that safety net.10:41
lifelessbialix: if I can make it mail me your credit card numbers, its arbitrary10:42
bialixit's too wide10:42
bialixI can write a plugin to do so10:42
bialixand advise my friends to install it10:42
bialixwithout putting anything in their branches10:42
bialixyou get the loop10:43
lifelessthe act of branching is the key thing10:43
bialixwho will watch the twatchers?10:43
lifelessI realise you can have someone install a plugin - but they know that that means 'install new code'10:43
lifelessbranching something should never equate to 'install new code'10:43
bialixlifeless: I have evidence when one man refused to run the code: python -c "import this"10:44
lifelessheh10:44
vilabialix: perl -t runs perl in a mode where it "taints" (marks) any unsecure code and all code depending on it, if you open a hole, you compromise the whole. We'd better enhance the whole than opening a hole10:46
bialixokay, I undertsand your points. Let's stop here. I know what I need, and I need it for my work. So it will be my private thing10:47
bialixthanks all for discussion10:47
bialixI think something similar to shell-hooks plugin should be in the core10:51
sttng359I am using bzr 2.1.0 with bzr-svn 1.0.2 from PPA to checkout a SVN repo, but I keep getting a checksum mismatch about 10 revisions in.11:04
sttng359I ran svnadmin verify across the whole repo which found no errors.11:04
jelmersttng359: can you pastebin the error somewhere?11:06
sttng359http://pastebin.com/k4jJuMFc11:08
sttng359I had previously used bzr 1.13.1 with bzr-svn 0.5.3 successfully.11:11
jelmersttng359: I have no idea what might be wrong there. Can you please file a bug against bzr-svn including the relevant backtrace from ~/.bzr.log ?11:19
sttng359OK11:23
sttng359as a workaround for now, is there any issues with using bzr 1.13.1 to do a checkout using the 1.9-rich-root repo from subversion, and perhaps later upgrading to 2a?11:34
dcolesHi. Does anyone know how to make bazaar's svn+https scheme remember username and passwords?11:37
bob2doesn't it use whatever svn uses?11:37
dcolesI've had no luck getting it to use authentication.conf.11:37
dcolesI'm... not really sure.11:38
dcolesbob2: There is a ~/.bazaar/subversion.conf, but I've not yet found it's config reference11:39
jelmerdcoles: Newer versions of bzr-svn can use ~/.bazaar/authentication.conf11:41
jelmerdcoles: bzr-svn will also use any passwords cached by svn11:42
dcolesjelmer: Thanks for the help. How new is "new"? I'm currently running the version in Lucid and haven't had any luck with authentication.conf (it doesn't even seem to note the configuration in the bazaar log)11:45
jelmerdcoles: 1.0.2 should be new enough (I think that's what's in lucid)11:46
dcolesjelmer: Yup. 1.0.2-211:47
dcolesI guess my question would then be should authentication.conf be set up the same as what you would for a normal bazaar remote repository?11:48
jelmeryeah11:48
dcolesI have a host, user and password set (and a commented out scheme of https)11:48
jelmerI think you need to have the scheme set to get it to work11:49
dcolesOk, Ok, I've just tried a scheme of https, svn+https and https - still no luck11:53
Kamping_Kaisercan bzr-svn be told not to look in the root of an svn repo when branching over http? http://paste.debian.net/62396/ seems to be a result of trying to access svn/fsfla/ directly, which isn't viewable without a login11:56
jelmerKamping_Kaiser: not at the moment, there's an open bug about that11:57
Kamping_Kaiserjelmer: ok, thanks for the info11:57
jelmerdcoles: so you get a password prompt ?11:57
dcolesjelmer: Yes - And a username prompt too11:58
dcoles"HTTPS  username:"11:58
=== mrevell is now known as mrevell-lunch
dcolesOk, it looks like it's calling AuthenticationConfig.get_user(...) but that is just giving me my local username12:16
jelmerdcoles: are you including the username in the URL?12:17
dcolesNo, I'm not12:18
dcolesEven with a username in the URL, it still asks for one12:20
dcolesauth.py calls get_user with what looks like an empty host...12:35
jelmeroh, hmm?12:41
dcolesI managed to find get_svn_simple which is also getting my local username passed to it before even calling get_user12:42
dcolesThough I'm not quite sure where get_svn_simple is called from - I couldn't find it by greping /usr/lib/pyshared12:43
jelmerdcoles: the svn libs call it12:43
jelmerwhen they need credentials12:44
dcolesAh, so similar to pysvn's auth callbacks12:45
ahordenhey all, we have been converting over to Bazzar from git, its allot nicer, but we need to move servers can we just do a mv -vf on the root reporatory to the new system over nfs with no issues? the server will have the same host name, but the system path will be diffrent so I am guessing the only diffrence is the sftp path we use will have to reflect the change, but is there anything else I need to look out for?12:45
jelmerahorden: nothing I can think of12:49
dcolesjelmer: OK. The prompts are coming from AuthenticationConfig.get_user, so I hacked get_svn_lookup so that it sets self.host to "clir.googlecode.com" and then I get no prompts and get_user and get_password return the correct values13:01
jelmerdcoles: could you perhaps file a bug against bzr-svn with this info ?13:04
ahordenthanks jelmer, I will give it a go13:05
dcolesjelmer: Sure thing. I'm about to head off to bed, so I'll make sure I report it in the morning.13:06
jelmerdcoles: thanks!13:06
dcolesThanks for your help :)13:06
rgrigbzr almost kills my computer when I branch emacs. It uses >500MB of memory (I have 1GB in total) and the computer is almost unusable for >20 minutes. Should I file this as a bug?13:12
persiaGood day.  I have a branch and a need to have made a stable release branch from it about 10 months ago.  I'd rather not record the results of "bzr revert -r327; bzr commit -m "Revert to r327" in the log.  Is there an easy way to accomplish my goal?13:59
james_wbzr branch -r 327 stable-release-branch?14:00
persiaMy other option is reconstructing from a 16 month old branch, replaying each commit, but that's unappealing for other reasons.14:00
* persia tries14:00
maxbbzr branch -r 327 . ../stable-release-branch ?14:00
james_wyeah, that spelling :-)14:00
persiaThat works wonders.  Thanks heaps for having already supported this, probably for ages :)14:01
james_wrather a fundamental operation :-)14:01
james_wavailable since long before my time :-)14:01
* persia actually ran `bzr branch -r327 lucid jaunty` but it's the -r to branch that mattered14:01
rubbsjames_w: but not always obvious in this context14:02
james_wno14:02
persiaIt's very much not obvious, but incredibly useful and impossible to forget.14:02
ramviI'm running bzr client on my server to get the newest code. When trying to branch I get Unknown repository format: 'Bazaar repository format 2a (needs bzr 1.16 or later), but bzr --version returns Bazaar (bzr) 1.514:04
ramvihow do I fix this/14:04
ramvi?14:04
beunoramvi, 1.16 is newer than 1.514:05
james_whey beuno14:06
beunoso, upgrade bzr14:06
beunohey hey james_w!14:06
james_whow's the new job treating you?14:06
ramviI have to learn to count. You know if there's debian etch packages available?14:06
ramvi1.5 seems to be the newest14:06
james_wramvi: backports.org probably have something14:06
ramvijames_w: that's the one I'm using. 1.514:07
james_wah14:07
james_wthen I don't know, sorry14:07
ramvithanks for point out that 1.16 is newer :)14:07
beunojames_w, I love it. Back to hacking on a daily basis, which I missed a lot. Also, busy busy busy  :)   how are you?14:08
james_wgood thanks, pretty much the same :-)14:08
james_wit's been a while since I ran in to you14:08
james_wI guess you'll be at UDS this time?14:08
beunojames_w, not sure yet. Probably not, I'm trying to cut down on travel for a while, get back to a more normal day to day14:10
james_wyeah, I can imagine :-)14:10
beunojames_w, but I'm sure we'll bump into each other soon  :)14:11
james_wyeah14:11
james_wlet me know if you are over here14:11
jammorning all14:35
james_wmorning jam14:35
rubbsmorning14:35
fullermdMorning?  Ah, no wonder it's gotten so bright...14:36
bialixanybody knows how missing -r should work? and is it work actually?14:59
RobOakesIs this a good place to ask for help with bzr and launchpad errors?15:04
pwolaninin bzr when I merge and have conflicts15:09
pwolaninis ther a way to specify that I want the version in the branch i'm merging into?15:09
pwolaninin svn I can use 'tf'15:09
pwolaninsorry I want the remote branch's version to replace local in case of conflict15:09
rubbspwolanin: I don't know of any way with a bzr command, but *.THIS is from the branch being merged into. *.OTHER is from remote branch. *.BASE is what they both came from. Just rename *.OTHER to the file and delete all the others. Then mark the conflict as resolved15:11
rubbsthat's how I do it at least15:11
pwolaninrubbs:  ya, that's what I did before - but was hopiong bzr coudl do it in one swoop15:12
rubbspwolanin: It might, but I don't know it. :( sorry15:13
pwolaninrubbs:  np, thanks15:14
vilapwolanin: this is currently working on15:16
vilapwolanin: it will be be available as 'bzr resolve --take-this file' or '--take-other'15:17
pwolaninvila:  hmm, ok - thanks for the update15:17
pwolaninfind . -name "*.OTHER" | sed -E "s/(.+)\.OTHER/\1/" | xargs -n1 -I %j cp %j.OTHER %j15:17
vilapwolanin: you still need to call 'bzr resolve' before committing15:18
pwolaninmight do the trick15:18
pwolaninvila:  right15:18
vila'bzr conflicts' may be a better start for scripts15:19
vilapwolanin: how many conflicts are you dealing with on average and of what kind ?15:19
pwolaninvila:  these are trivial - I'm merging two builds of Drupal - some meta data files have different build info appended by build scripts15:20
vilapwolanin: so they are 'Text Conflicts', I won't adress them later too but probably with additional options available see http://wiki.bazaar.canonical.com/VincentLadeuil/ConflictResolution15:22
pwolaninvila: yes, text conflicts15:23
=== salgado is now known as salgado-lunch
chxhey. i am getting a bzr: ERROR: [Errno 13] Permission denied and i cant understand why i pastebinned http://privatepaste.com/4dec19bef1 relevant information.15:54
chxi really have no idea what's going on, every file is owned by me :/15:55
vilachx: check ~/.bzr.log and ~/.bazaar15:55
vilachx: did you run 'sudo bzr' sometimes ?15:55
vilachx: otherwise try running with -Derror and paste the traceback15:56
chxi doubt...15:56
chxvila: http://privatepaste.com/71c8ffd81415:57
chxvila: find .bzr   \! -uid `id -u` also comes back empty.15:58
vilaI saw15:58
vilaha no, '.bzr' not '.'15:59
chxboth . and .bzr15:59
chxi tried both15:59
vilaBZR_PDB=1 bzr -Derror then15:59
vilaand 'pp from_, to' when you got the pdb prompt16:00
chx(u'/ebs/home/kbridges/public_html/examiner-d7/.bzr/checkout/limbo/new-83',  u'/ebs/home/kbridges/public_html/examiner-d7/sites/parc.dev.examiner.com/modules'16:03
chxoh shit16:03
chxthanks16:03
vilachx: Hey ! Tell me ! :)16:03
chx dr-xr-xr-x 4 kbridges kbridges 51 Feb 25 14:33 /ebs/home/kbridges/public_html/examiner-d7/sites/parc.dev.examiner.com16:04
chxso what would be the find command to find such ?16:04
vilachx: The error message is not nice, it would be good to make it clearer, care to file a bug ?16:04
chxvila: certainly, where?16:04
vilahttps://bugs.launchpad.net/bzr/+filebug16:05
vilachx: try explaining why you ended up with a read-only dir here, I smell a valid use case...16:06
chxwell16:06
chxyeah16:06
chxi think that's a bzr error indeed16:06
chxno16:08
chxthat's a pebkac16:08
vilaI don't think bzr itself ever create a directory with dr-x but... I can imagine that he accepted to version it but failed to handle changes inside16:08
chxstill we need a friendlier error message16:08
vilachx: certainly, mentioning the paths at least will help understand the problem (at least it worked for you :)16:09
viladid I just used at least twice ? Well, I realized it a t le^H^H^H^H^16:10
chxvila: https://bugs.launchpad.net/bzr/+bug/531989 so far i filed this16:11
ubottuLaunchpad bug 531989 in bzr "Permission denied error is not friendly" [Undecided,New]16:11
bialixhi, what is the correct way in bzr tests to say: I know this bug is broken, so just skip it16:58
bialixI have hit /msg NickServ identify16:58
bialixI have hit Bug #52622116:58
ubottuLaunchpad bug 526221 in bzr "tests involving stub_sftp are broken on win32" [Medium,Fix released] https://launchpad.net/bugs/52622116:58
SamB_XPbialix: hehehe16:59
* bialix shys16:59
SamB_XPpasted the wrong thing or something?16:59
bialixpasted the wrong thing16:59
SamB_XPat least you didn't paste in your password!16:59
bialixyeah17:00
bialixthat's chatzilla thing: it don't want to store my password17:00
bialixdumb chatzilla17:00
SamB_XPthough usually my client manages to login without help from me ...17:00
bialixwhat is your client?17:01
=== salgado-lunch is now known as salgado
SamB_XPan XChat that calls itself YChat for some reason ...17:01
SamB_XP(but, strangely, it does not have a Y icon!)17:02
=== deryck is now known as deryck[lunch]
=== radoe_ is now known as radoe
=== deryck[lunch] is now known as deryck
mathrickhiya18:46
mathrickjelmer: what URL should I use to push to a github branch?18:46
mathrickthe location git uses is git@github.com:mathrick/unix-options.git18:46
mathrickbut bzr dislikes that18:47
jelmermathrick: in fact, that's not a URL :-)18:54
NfNitLoopAre there any plans to add a 'bzr cp' command?18:54
jelmermathrick: git+ssh://git@github.com/mathrick/unix-options.git18:54
mathrickah18:54
mathrickI think I tried that18:55
jelmerNfNitLoop: vague plans, nothing concrete at this point18:55
* mathrick checks18:55
jelmermathrick: what error did you get?18:55
mathricknope, didn't try with +ssh18:55
mathrickooh, but now it got wedged alright18:55
NfNitLoopjelmer: Yeah, I seem to recall that being the state of things a long while ago.   I'm using bzr atop SVN so it feels dirty to do a fresh add in BZR when I could've done an svn cp. :p18:55
mathrickbzr: ERROR: bzrlib.errors.NoSuchRevision: KnitPackRepository('file:///home/mathrick/Dev/Lisp/lib/unix-options/.bzr/branches/.bzr/repository/') has no revision ('git-v1:ed0fdab09830e372d470089d77867a3ce7a79233',)18:55
mathrickjelmer: look like the same error again, did you look into it in any way?18:56
jelmermathrick: what same error again?18:56
mathrickthe one I reported some time ago, a week or so18:56
mathrickwhich everyone says should've been fixed in core18:56
* mathrick checks for 2.2 betas18:57
jelmermathrick: sorry, can you refresh my memory18:58
jelmer?18:58
mathrickNfNitLoop: but that's still how it works. Might be not ideal compared to svn cp, but at least we have sane branching and merges don't render our branches unusable :)18:58
mathrickjelmer: sure, I think I even filed a bug18:58
jelmermathrick My memory is failing me and a quick check of the bzr-git bugs list also doesn't reveal anything18:58
mathrickjelmer: indeed, lemme check the history of the bugs I filed19:00
mathrickjelmer: https://bugs.launchpad.net/bzr/+bug/52679219:00
ubottuLaunchpad bug 526792 in bzr "Revision not present error in annotate" [Undecided,New]19:00
mathrickit got reassigned19:00
mathrickyou did it even :)19:01
jelmermathrick: that's a completely different bug19:01
mathrickoh19:01
mathrickjelmer: okay then, the above is what I got when trying git+ssh19:01
jelmermathrick: what does bzr check output?19:03
mathrickjelmer: I might've messed something up, I've been cloning and rebasing things to work around git failing to fetch revisions in a way I seriously didn't feel like resolving19:03
jelmerwhat versions of bzr/bzr-git ?19:03
mathrickhang on19:03
mathrick    47 revisions19:03
mathrick     5 file-ids19:03
mathrick     8 inconsistent parents19:03
mathrickso again, like with that other repo cloned from git19:03
jelmermathrick: what version of bzr-git are you running?19:04
jelmercloning that repo I don't get any inconsistent parents19:04
mathrickI think it might be my shared repo19:05
mathrickjelmer: r72119:05
mathrickjelmer: I just checked, cloning and reconciling a branch outside my shared repo works just fine19:05
mathrickbut inside it, no cigar19:06
mathrickit was the same last time19:06
jelmermathrick: but this repo was probably created with a much older version of bzr-git ?19:06
mathrickno, it's a shared bzr repo I've been using for two years or so19:06
jelmermathrick: so some of the revisions in it were created with older versions of bzr-git at least?19:07
mathrickyes19:07
jelmermathrick: Can you do a fresh clone of that git branch outside of the shared repo, then "bzr pull" in the other revisions from the shared repo branch and then dpush ?19:08
mathrickbut none in this particular branch, I've created it 1h ago19:08
mathrickjelmer: I managed to dpush after just reconciling the branch cloned outside the shared repo19:08
mathrickI'm not quite sure what the best course of action is, this repo seems completely resistant to my attempts at reconciling it19:09
jelmermathrick: I would create a new shared repo, clone all foreign branches into that and then pull whatever revisions you created yourself into that from the original shared repo19:10
mathrickurgh, that'd take forever, I keep all my branches in it19:11
mathrickjelmer: what if I just cloned that repo and attempted to reconcile the clone?19:11
mathrickwould that change anything?19:11
mathrickI'm not sure it'd be safe to switch that out from under my branches19:12
jelmermathrick: no, I doubt that would make a difference19:12
mathrickbummer19:13
mwhudsonwill i learn anything from reading the "Re: Fixing rebase rather than avoiding it" thread?19:49
mwhudsonit's got a bit large...19:49
james_wmwhudson: not if you've read the other 5 threads on the subject20:01
mwhudsongood20:01
* mwhudson dumps it20:01
mathrickhumm20:14
mathrickmathrick@hatsumi:~/Dev/pettanko$ bzr info20:14
mathrickbzr: ERROR: Unknown repository format: 'Bazaar development format 0 with subtree support (needs bzr.dev from before 1.3)\n'20:14
mathrickwhat's the easiest way to fix that?20:15
luksyou probably need an old bzr20:15
luksthen upgrade to some non-developmenr format20:15
mathrickyeah, but what'd be the easiest way to do that in ubuntu?20:16
luksdownload the tarball20:16
luksyou can run bzr directly from the unpacked directory20:16
mathrickaha, lemme try that20:18
mathrickis there a commandline option to disable plugins temporarily?20:19
bialix--no-plugins20:20
mathrick    from gzip import U32, LOWU32, FEXTRA, FCOMMENT, FNAME, FHCRC20:20
mathrickImportError: cannot import name U3220:20
mathrick*grumble*20:20
lukshm, I think I've seen an error like this before20:21
lukspython2.6?20:21
mathrickyes20:21
luksnot as easy as I expected then :)20:21
mathrickwill 2.5 help?20:21
luksyes20:22
luksotherwise you would have to patch bzr20:22
mathrickoh damn it20:26
mathricknow it won't upgrade because the old version doesn't understand 2a20:26
mathrickwhich is the format of the containing repo20:27
luksyou can probably upgrade to some immediate format20:27
luksnot sure which one20:27
mathrickyes, but it errors out when I try to do that20:27
luksoh20:27
mathrickI tried rich-root-pack, and it makes a backup, then goes "Dunno how to handle 2a"20:27
luksI don't understand the situatoin there20:27
mathrickI don't either20:27
mathricksomehow it managed to upgrade the repo without upgrading the branch20:27
luks~/Dev/pettanko is in the old format, right?20:28
mathrickyes20:28
mathrickbut it's under ~/Dev/, which is a shared repo20:28
lukshmm20:28
luksand ~/Dev/pettanko is using the repo?20:28
* mathrick checks20:29
luksit wouldn't complain about the old repo format if ~/Dev is 2a20:29
mathrickStandalone tree (format: development0-subtree)20:29
mathrickI guess not20:29
mathrickso I probably need to move it outside ~/Dev/ to upgrade20:29
luksyeah20:29
luks(just guessing)20:29
mathrickargh, it seems impossible to do20:44
luksnot that I've ever done it, but I'd probably try to use bzr-fastexport/fastimport if everything failed20:45
mathrickyeah, if I can find them in versions compatible with 1.320:45
lukshm20:45
bialixmathrick: use pull or push20:46
luksoh right20:46
luksthere is a bug in old bzr which allows that20:46
mathrickbialix: no can do, it errors out with bzr: ERROR: Repository KnitPackRepository('file:///tmp/clean-pettanko/.bzr/repository/') is not compatible with repository KnitPackRepository('file:///tmp/pettanko/.bzr/repository/')20:46
bialixstart bzr 1.3 as server20:46
mathrickhmm20:47
lifelessjam: 'sack' ? !20:47
lifelessjam: btw did you read the bzr-search code for same?20:47
jamSelf-contained Pack20:47
bialixand point it to your old branch20:47
jamYou call it "Index" as near as I can tel20:47
bialixthen try to branch from it20:47
jambut it has a lot of extra 'stuff'20:47
bialixheya jam20:47
jamhi bialix20:47
jamlifeless: I don't have a better name, but I'm certainly willing to change it20:48
jamI needed something to get started20:48
lifelessjam: its not perfectly isolated no; I was just meaning to make sure you had studied theprior art20:48
jamyeah20:48
mathrickbialix: interesting, it seems to hang when I try to connect20:49
jamalso, I find your code a bit confusing to read, since you have "Index" meaning several things20:49
jamwell, at least several different levels of meaning20:49
lifelessjam: ah20:49
lifelessjam: so "Index" == "Repository"20:49
jamstoring indexes in a pack doesn't help20:49
lifelessComponentIndex == Pack20:50
lifelessComponentIndexBuilder == NewPack20:50
lifelessjam: what do you mean20:51
jampack files have indexes to find the content in the pack file, which in your case the content is a btree index20:51
jamso you have the top-level 'collection of files' index, pointing to indexes which point to indexes20:51
lifelesstis a file system basically20:52
jamso 'doesn't help' *understanding* what level I'm looking at20:52
lifelessoh right, I see20:52
lifelessjam: well, it looks ok to me, though I'm not sure why you need a custom index for the directory20:53
lifelessI find Sack and Tie confusing20:54
lifelessit leaves me thinking of male strippers for some reason!20:54
jamlifeless: I'm a bit concerned about your associations :)20:54
lifelessso am I, so am I20:54
jamso the 'tie' is meant to make the file completely self-contained, at minimal expense20:55
jamyou do it with just the meta-index, AFAICT20:55
jam'index_value = '%d...'20:55
jamtells you how to  find the various intermediate indexes20:55
lifelessright, I just put the directory listing for the indices as a directory listing20:56
lifeless'these are the files in the pack'20:56
lifelesswith their name20:57
lifelessit has the nice effect that I can add other things and not confuse older versions of bzr-search20:57
lifelessa new index added is just ignored20:57
jamso I plan on having a directory listing at the 'pack collection' level, but making it redundant with the tail of the actual '.pack' file20:57
lifelessjam: sure, I see that. I'm mainly asking 'why is the in-pack directory listing a special class'20:58
lifelessjam: rather than a regular btree index.20:58
jamreadability20:58
jamatm20:58
jamI certainly could do just another btree20:58
mathrickman, finally20:58
mathrickthe trick was to specify --pack-0.92-subtree, which wasn't listed in --help20:59
jammathrick: well, it is generally considered a dev/experimental format, hence why it wasn't listed20:59
mathrickyeah, but --pack-0.92 was20:59
jammathrick: sure, the '-subtree' is quite special21:00
mathrickand --development-subtree said "can convert to pack-0.92"21:00
mathrickwhich confused me21:00
jamI would assume just a bad doc for --development-subtree21:00
lifelessjam: so in terms of names; rather than tie, it looks like a Trailer to me, or a RootIndex21:00
jamreasonable21:01
jamoh, I also wanted to expose some of the values in the index to be combined into the overall directory listing21:01
lifelessor even, if we want to let our inner java dev out to plain, a TrailingRootIndex21:01
jamI'm not sure how you handle that21:01
lifelessjam: thats orthogonal21:01
lifelessby overall directory listing, you mean pack-names ?21:02
jamlifeless: somewhat, except it is easier to grab a named attribute than to parse a 'value' string back into its contents21:02
jamlifeless: right pack-names21:02
lifelessjam: mmm, mumble. Could easily subclass BTreeIndex to parse the values for you21:02
* mathrick gets a lesson not to touch development formats without very good reasons21:03
lifelessjam: bzr-search isn't wholly self contained; it's upload process returns the specific entry points.21:05
lifelessjam: I think its good to do what you're doing.21:05
jamI think you have a point to re-using the key-value of BTree versus Stanza21:05
jamso I'll poke at that a bit21:05
jamit does make testing a bit harder21:05
en1gm4hi all21:05
jamsince you can't just test the bytes on disk21:06
jamsince they are compressed, etc21:06
lifelessjam: you might find you can offset that with a good Matcher21:06
jamen1gm4: hi21:06
jamlifeless: that decodes the Btree ?21:06
lifelessright; pass it a dict that you want the BTree to match21:06
lifelessit can unzip parse, check all the elements.21:06
en1gm4simple question: bzr revert  <file> restore <file> to the last commit, how can I restore a file from a particular revno?21:07
jamalthough BTreeIndex also assumes it has a Transport. Which we will ultimately do, but is a bit extra complex for this specific stuff21:07
lifelessBTreeMatches({}). ..21:07
jamen1gm4: bzr revert -r <revno> <file>21:07
lifelessjam: there is a transport adapter in bzr-search for this, rip it out wholesale21:07
en1gm4thanks jam21:07
lifelesssearch.transport.FileView21:07
lifelessit even has tests21:09
jamlifeless: thx for the heads up21:11
lifelessit just maps a region of a file to be a transport21:11
lifelessactually its more general - you give it a dict of name:(start,length)21:11
lifelessand it acts a transport containing those names21:12
lifelesseach of which can be readv'd.21:12
lifelessgotten21:12
lifelessand recommended_page_size queried.21:12
lifelessjam: I'd seriously consider calling this thing a pack still :- none of the higher level code needs to change at this point, except for index writing & setup-for-reading21:15
jamlifeless: well "SelfContainedPack" would be possible...21:19
jamultimately I plan on bringing in the PackCollection code, etc. so that you have a self-managed thing you can just use21:19
jamor at least I'd like to21:19
lifelessjam: yay; I've wanted to do that for ages21:19
jamI didn't want to put it in 'pack_repo' though21:19
lifelessjam: indeed, at that point it should be pulled sideways21:20
jamso I needed somewhere to put it and 'pack.py' is really more about the Container streaming format21:20
lifelesspack_collection.py21:20
lifelessanyhow, I'm really glad you're doing this; I'm really just talking about the icing :)21:21
jono_hey all21:27
jono_getting a weird error21:27
jono_bzr: ERROR: Could not acquire lock "/home/jono/source/bzr/python-snippets/.bzr/checkout/dirstate": [Errno 11] Resource temporarily unavailable21:28
jono_what does that mean?21:28
lifelessyou have it mounted on fuse21:28
jono_lifeless, eh?21:29
lifelessor nfs/smb with file locks disabled21:29
lifelessthats generally the cause21:29
jono_it is on my local disk21:29
lifelesswe're trying to take an OS lock21:29
jono_I don't understand what you mean lifeless21:29
lifelesswe lock that file21:30
lifelessusing OS locks21:30
lifeless(flock on unix I think)21:30
jono_lifeless, what can I do to resolve this?21:31
lifelessthe most common cause for the locking to fail is when its not on a local file system (which may not be obvious: early U1 stuff would fail, for instance)21:32
lifelessdo you have a stale python/bzr process that might be messing with it ?21:32
jono_hmm works now21:32
jono_just pushed21:32
lifelessyou can use fuser /home/jono/source/bzr/python-snippets/.bzr/checkout/dirstate21:35
lifelessto see if its inuse, in future21:35
jono_cheers21:36
jono_:)21:36
=== salgado is now known as salgado-afk
serviliojelmer!22:13
serviliohi all! I am on my way to import a subversion repository with bzr-svn, any advise for things to watch-out?22:14
jelmerservilio: hi!22:19
NfNitLoopservilio: It's pretty simple these days.   Just bzr branch <URL to your SVN branch>22:20
NfNitLoopif you have multiple related branches, I'd recommend branching into a shared repo.22:20
jelmerservilio: not really, it should "just work" :-)22:20
NfNitLoopjelmer: famous last words!22:20
NfNitLoop;)22:20
jelmer:-)22:20
jelmerservilio: if you are going to import a set of branches in a svn repository, you might want to use the "bzr svn-import" command rather than "bzr branch"22:20
NfNitLoopeh.  I just branch the branches I care about.  No need to download and cache data from dead branches.22:21
jelmerNfNitLoop: it won't import any branches that have already been removed from svn unless you specify --all22:24
serviliojelmer: forgot that was the command I was looking at, from the homepage recommendation22:26
serviliojelmer: thanks!22:26
servilioNfNitLoop: thanks!22:27
servilioNfNitLoop, jelmer: I am migrating a subversion repository to bzr in this case, so I am using --all so far22:28
servilioalready created a shared repo for them22:28
serviliojelmer: if my svn repo consists of different projects with independent {tags,branches,trunk} directories in each of them, should I import them separately into the bzr repo? or is there a way to import them all at once while keeping the branches, etc.?22:33
mathrickjelmer: btw, I managed to fix these repositories, more or less, by cloning again from the reconciled branches back into the repository22:48
jelmerre22:55
jelmermathrick: More or less in what regard?22:55
jelmerre22:55
jelmerservilio: svn-import should be able to import them all at once22:56
mathrickmore or less in the sense I can dpush from them, and they themselves don't have any inconsistent parents. I don't expect it has fixed the repo itself though22:56
jelmermathrick: ah, right23:09
igcmorning23:15

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