/srv/irclogs.ubuntu.com/2008/10/08/#bzr.txt

lifelessspiv: what about00:13
lifelessdef unlock(exc_info=None)00:13
spivlifeless: that still requires the caller to do most of the work00:14
spivlifeless: to correctly set exc_info you still need a "try: foo(); except: exc_info=sys.exc_info() ... yadda yadda"00:15
spivlifeless: there's just no way around the fact that Python gives you no way to determine from a finally block if an except was being raised.00:20
spivlifeless: here's the problem in a nutshell: http://rafb.net/p/wy3M5l13.html00:20
spivWell, there is one way that might mostly work: introspecting the traceback object to see if the top of the stack is where you expect, i.e. a line inside the relevant try block in the current function.00:22
spivExcept that could also fail in edge cases, and would be ugly as hell.00:23
spivShorter summary: Python sucks.00:23
lifelesswhen was try:finally:except: added?00:23
spivtry-except and try-finally have been in there since I started using Python.  Or are you asking about a single try with both except and finally?00:24
lifelessthe latter00:25
* jml needs to fix bzr-removable to work with split trees00:25
spiv2.5.00:26
meoblast001hi00:58
meoblast001how do i download the latest version of a branch?00:58
jmlmeoblast001: do you already have a copy of the branch?01:00
meoblast001yeah01:00
meoblast001i just want to update it01:00
meoblast001with the new stuff from launchpad01:00
jmlmeoblast001: cd into it and 'bzr pull'01:00
meoblast001how do i cd into it01:00
meoblast001like.. the local folder?01:00
jmlmeoblast001: that's right.01:00
meoblast001ok01:01
meoblast001im downloading it01:01
meoblast001thanx01:01
meoblast001just downloading a project of someone i know to see how much it has advanced01:01
jmlcool.01:02
meoblast001i dont think he's been commiting changes =P01:02
meoblast001yay... now to worry about the advancement (or lack thereof) of my own project01:03
jmlmeoblast001: :)01:03
jmlmeoblast001: you can get a fairly good idea of a branch's activity by looking at its web page on Launchpad, btw.01:03
meoblast001yeah01:03
meoblast001im thinking about posting my project in Crystal Space forums in the Projects section so maybe someone will come along and help me01:04
meoblast001i only have 2 ppl on my team01:04
meoblast001and im the only programmer01:04
ferringbmeoblast001: project being?01:04
ferringbjust curious, haven't heard activity crystal space wise in a long while01:05
meoblast001its a racing game im making with CS01:05
meoblast001the game is very crappy so far cuz im the only programmer and i dont have enough time nor experience to write a whole game all on my own01:05
meoblast001im doing as much as i can and relying on lots of support from #crystalspace01:06
meoblast001ferringb: heres the Launchpad site https://launchpad.net/nickybearracing01:07
meoblast001launchpad page rather01:07
meoblast001i have it precompiled for x86 systems01:07
jmlmeoblast001: btw, if you set that branch to be the development focus of the project, people will be able to fetch it with 'bzr branch lp:nickybearracing'01:08
meoblast001oh01:08
meoblast001i'll do that01:08
meoblast001jml: done01:12
jmlmeoblast001: cool01:14
meoblast001=)01:14
* spiv ducks out for some errands and early lunch01:15
* meoblast001 hardly considers himself a programmer01:17
lifelessjml: perhaps the first branch pushed should become the trunk series by default01:27
jmllifeless: perhaps.01:31
jmllifeless: I think it should, but I also think that setting a dev focus should set the "This project officially uses Launchpad for code hosting" flag.01:33
lifelessjml: btw, I find it weird that I have to opt-in to using bugs etc01:34
jmllifeless: yes, me too.01:34
jmllifeless: but I've had that discussion wrt to code twice already, and have too many other things on my plate to try again just now.01:35
lifelessspiv: ping01:50
Peng_Awesome, a 15 MB autopack.01:54
Peng_...over bzr+ssh01:55
meoblast001ok.. i messed up on a file and i need to pull the old data back02:27
meoblast001i need to replace everything i have with everything launchpad has... how do i do that?02:27
bob2messed up = edited but haven't commited?02:27
meoblast001yes02:27
meoblast001i didnt commit02:27
bob2"bzr revert" will remove all local uncommited changes02:28
meoblast001k thanx02:28
meoblast001i just suck at programming so bad that i couldnt solve a very simple problem02:28
spivlifeless: pong02:40
=== jamesh__ is now known as jamesh
lifelessspiv: so03:05
lifelessspiv: item keys introduced by03:05
spivAh, that old thing.  What about it?03:08
lifelessfragmented inventories have components that are not strictly introduced by a revision03:13
lifelessspiv: further, we don't want to copy already present fragments03:26
lifelessspiv: but we can't predict what fragments are already present unless we know the edge of the local graph I think03:30
lifelessspiv: my conclusion is that this api needs to get deprecated and a newer one added03:31
lifelessthat has a cut facility03:31
spivlifeless: that'03:33
spivs a bit abstract to me.  It sounds plausible, but maybe the simplest thing is to describe the API you're thinking of replacing it with?03:34
lifelessadd a new parameter that lists the surface of revisions we have [that are relevant]03:35
=== mlh_ is now known as mlh
pooliespiv, hey good catch with the default arguments06:10
poolieomgpython06:10
spivpoolie: hooray for code review :)06:15
spivabentley: would you mind adding andrew.bennetts@c.c to bundlebuggy as an authorised email address?  (I think it currently expects just andrew@)06:21
poolieyour'e right that making it a parameter is a yagni06:28
spivpoolie: oh good.  That makes the solution uncontroversial :)06:43
vilahi all06:47
vilapoolie: ping ?07:12
spivvila: oh of course, it's daylight savings here now, so you're turning up an hour later :)07:21
spivvila: hi :)07:21
* spiv is about to disappear and go to a yoga class07:21
vilaspiv: oh, since when ?07:21
spivSince last weekend.07:21
vilaHaaa, and it's 17:21 your time ?07:22
spivRight.07:22
vilaok07:22
vilaSo *you* are leaving one hour earlier :)07:22
spivSo when you say hello it's time for me to finishing things up for the day :)07:22
vilaYeah, we should all work at least 13h/day so we can say hi/bye every day :)07:23
spivHah.07:24
spivAlthough it often seems like that's what lifeless does :)07:25
spivThinking of which...07:25
* spiv -> gone!07:25
pooliemarkh, are you still around at all? is it hard or easy to make the windows python-based installers?09:00
RAOFIs my google-fu weak, or is there little documentation about setting up a PQM instance available?09:04
KinnisonIME, very little10:07
KinnisonAlthough I thought there was a GSoC student working on PQM, so perhaps he produced some?10:07
=== RAOF_ is now known as RAOF
RAOFKinnison: That's kinda annoying.  Maybe I'll just wait for Launchpad to grow a PQM instance for me :/10:21
RAOFHeh.  Or I'll bug Rob & Jono mercilessly!10:22
eMBeea group, and then make files readable by that group11:12
eMBeeooops11:12
hnoHmm... something is fishy in bzr 1.7.1. Running 1.7.1 both on cliend and server, and after a relatively small remote change "bzr update" suddenly downloaded 11 MB of data. Total remote repository size is 70 MB and increased by some KB only since the last bzr update..11:15
=== gour_ is now known as gour
spivhno: if it's via bzr:// or bzr+ssh://, try using -Dhpss next time and see if the ~/.bzr.log file gives more info about what's going on.11:26
hnospiv: It's bzr+ssh11:26
spivhno: my guess is that it's fetching most of the remote index files (how big is .bzr/repository/indices?) for some reason11:26
spivhno: if so, then there are various improvements planned that should help that.11:27
hnoindicies is a total of 7 MB.11:27
Peng_It's dumb enough to use 11 MB of bandwidth for 7 MB of indexes plus everything else.11:33
hnoI don't get why it at all need to fetch the index files in a bzr update.. There is no local modifications and the local head is an ancestor of the remote head. Better to just ask for a bundle from the local head revision to current head of the remote branch.11:37
Peng_It may be using the indexes to find out which revisions such a bundle would include.11:39
hnoPeng_: Well, it could do this optimistically by first asking based on the local revision.. or keep track of which revision that was last updated/merged.. But that's my outside view. I don't really know how deep checks bzr needs to do to find a common ancestor.. maybe revision number (the long version) isn't sufficient.11:54
hnoor revision-id which is the more proper term..11:56
Peng_Right. I'm sure it can (and does) do it more efficiently than that. I was just saying.11:56
Peng_If it's reproducable, use -Dhpps like he suggested to help diagnose it.11:57
hnoPeng_: Will try to reproduce it. At the moment both my local repositories have already updated.11:58
=== luks_ is now known as luks
spivhno: there are several known inefficiencies.  Ideally it should be a matter of finding out what the remote revision is with a single round-trip, finding out how much is missing from the local repo with a couple of quick round trips, and then requesting those revisions in a single stream.12:07
spivhno: there's various reasons why that's not quite the case at the moment, but we're working on it.12:07
BjornWhi, what would be the bzr equivalent of: svn export --force [SOURCE] [DESTINATION]12:08
hnospiv: Thanks.12:08
spivBjornW: "bzr export SOURCE DESTINATION" probably.12:10
spivI'm not sure what effect --force has on svn export.12:10
BjornWspiv: it will overwite exisiting exports12:11
BjornWspiv: Mhhhm I cannot overwrite an export with bzr?12:11
spivHmm, it may be "bzr export DESTINATION SOURCE", actually.  Check the docs :12:12
spiv:)12:12
spivHmm, doesn't look like it.  You could export to a tar file and then let tar do the overwriting.12:13
hnoHmm.. almost could reproduce it. Created a new repository with a branch some revisions back, and then did a bzr pull from the remote. But it fetched "only" 4MB this time.12:13
spivBjornW: it would be a reasonable feature to add, I think.  File a bug.12:13
BjornWspiv: will do, thanks for your help12:14
abentleyspiv: done12:29
hnoIndeed. There is lots of index accesses.12:33
ElvanorHello, I am searching for a VCS with the following features: 1) deal correctly with binary files, 2) limit the total repository file size (by keeping only a limited number of versioned items)12:34
ElvanorI was told by the git guys to come here...12:34
ElvanorSo can bazaar do what I need?12:34
Elvanorall my source code is currently in SVN, I am happy with that, but I want to setup a separate tool for backing up binary files: PDF files, GIMP images12:35
bob21 can be done by everything bar cvs12:38
spivabentley: thanks!12:38
Elvanorbob2: yes but 2) is harder12:48
Peng_You mean throwing out old history?12:49
ElvanorPeng_: yes12:59
Elvanorautomatically, if possible12:59
Peng_Yeah...not so possible with bzr.13:02
Peng_(I mean, it is /possible/, with tons of rebase or something, but it's not intended or efficient.)13:02
ElvanorPeng_: do you any other system allowing this easily?13:07
Elvanorgit people told me it would be easy with bazaar13:07
Peng_I wonder why the git people thought that?13:15
james_wyou can just delete the old revisions and leave ghosts in the mainline I guess13:16
ElvanorPeng_: someone said: well, do check out bzr, it can certainly prune more easily as its commit IDs are just UUIDs13:17
=== cprov1 is now known as cprov
Peng_james_w: That's safe?13:27
ElvanorMaybe what I need is more a backup system... but I want the ability to share files between users with locks, commits etc13:27
Peng_james_w: But won't it need them to reconstruct stuff?13:28
Peng_Elvanor: Oh. That git user is correct. Part of bzr's design does theoretically make it easier to mutate history, at least in some ways.13:29
Peng_(But it does hash at least some things too, and what would it do if it came across two differing revisions with the same ID?)13:29
james_wPeng_: yeah, just deleting it isn't safe, but it's possible13:29
Peng_(Which doesn't apply to mainline ghosts, which would work,  Iguess.)13:30
* Peng_ dies of parenthesis abuse.13:31
Lieven1does anyone know from where I can get the latest source code of tortoisebzr?14:29
Lieven1I tried lp:tortoisebzr, but it seems to be really outdated14:30
jelmerhi Lieven114:34
jelmermarkh, ^14:34
jelmerLieven1, I think tortoise is part of bzr.dev now, but I'm not entirely sure14:35
Lieven1I don't think it is, or at least, I can't find it14:39
CardinalFangHi all.  My group uses a very large bzr tree, and we often try to speed up our actions by branching two trees at the same time or pushing two or more trees at the same time.  I don't have specifics right now.  For branching or updating, we sometimes get index-file-missing errors, and when pushing one of the pushes hangs.  I suspect that there's some shared-repo data that isn't locked correctly, locally or remotely.  I don't have15:26
CardinalFangenough to file a bug, yet, but I just want to remark about it in case someone has a flash of insight.15:26
CardinalFangExpect a full bug or two filed in a week or so.15:27
jamCardinalFang: bug #153786 most likely16:32
ubottuLaunchpad bug 153786 in bzr "pack repositories do not retry when concurrent operations pack" [High,Triaged] https://launchpad.net/bugs/15378616:32
CardinalFanghmm.16:33
ccxCZHi, does file id change when it's moved renamed?16:40
Peng_ccxCZ: no17:20
Peng_ccxCZ: That's the point of file IDs. :P17:20
pekujais it possible/viable to host a bazaar repo on a server with no bazaar installed?18:00
cody-somervillepekuja, sure18:01
pekujathe idea is to have a repo in the public_html of my shell account so that I can push through ssh and others can pull through dumb http18:01
pekujaso should I basically do a clone of my repo on my local machine and copy it over to the server? should something like that work?18:02
pekujasorry if this is really obvious. I'm reading the user guide but I'm kinda tired tonight :-/18:03
cody-somervillepekuja, just do a bzr push via the sftp transport layer18:03
pekujathat will create the clone?18:03
cody-somervilleyup18:03
pekujacool, that sounds super easy18:03
cody-somervillepekuja, it is :)18:04
cody-somervillepekuja, you can also use launchpad for hosting your branches if you'd like18:04
pekujaoh, right... I guess that's an option. it's not really a project of any public interest though. just using the vcs for coding a university course project type thing18:06
fynnHi. Suppose I took a .bzr directory renamed it to "foo", and moved it to ~/bar. is there a way to recreate all the monitored from "foo" without changing its name to .bzr?18:11
fynn(I could rename it to .bzr and do "bzr revert", but I'm wondering if there's a solution without the rename stage.)18:12
cody-somervillefynn, What are you *really* trying to accomplish?18:13
fynncody-somerville: I'm backing up file trees by making them into Bazaar branches, then archiving the root .bzr directory.18:14
fynncody-somerville: right now, the final stage of a restore involves a "rename the 'backup' directory to '.bzr'" step.18:14
james_wfynn: it may be possible with some python18:15
fynnI was hoping to eliminate that step, so as to make the process more elegant.18:15
fynnjames_w: OK, thanks. I might hack that then.18:15
james_wfynn: but no, it's not just an environment variable or command line switch or anything18:15
fynn*nod*18:15
fynnalso, as a bzr newbie, just to make sure:18:16
fynnjames_w, cody-somerville: do any of you guys see a problem with using bzr for (version-controlled) backups in that way?18:16
fynne.g. could I possibly encounter any issue with restoring a perfect copy from such a backup?18:17
james_wI don't think so18:17
fynnalright... btw, if I have a source tree ~/foo, and I make it into a Bazaar branch (with "bzr init; bzr add; bzr ci"), the *only* change to ~/foo is the creation of ~/foo/.bzr, and the directories/files under it?18:18
james_wyup18:19
james_w.bzrignore if you do "bzr ignore something"18:19
fynnjames_w: so outside of the creation of ~/foo/.bzr and ~/foo/.bzrignore themselves, any further VCS work, no matter how many subdirectories and files are monitored beneath ~/foo, and no matter how many of them I choose to ignore, will only happen inside ~/foo/.bzr and ~/foo/.bzrignore themselves?18:21
james_wyup18:21
fynnjames_w: thanks a lot. that's such a relief after .svn creating itself in _every monitored subdirectory_.18:22
fynnlooks like my new backup scheme with bzr is viable.18:22
fynnOK, something I don't get: inside the branch ~/foo I have a file ~/foo/bar.py that I now want to ignore.18:43
fynnbut commanding "bzr ignore bar.py" issues a warning about it already being monitored, and doesn't ignore it.18:43
fynnso how should it be done?18:43
fullermdIgnore doesn't unversion a file that's already versioned; it just prevents 'add' from automatically adding it (and 'status' showing it unknown, etc)18:44
fullermdYou'll have to use bzr rm to unversion it.18:44
fullermd(possibly with --keep of course)18:44
fynnfullermd: I see, thanks.18:46
fynn--keep is nice.18:46
fullermdI have it aliased to be the standard 'bzr rm' behavior.18:46
fynnfullermd: apropos aliases: is there a way to make "bzr st -SV" the default behavior of "bzr st"?19:08
fynni.e. set a persistent configuration setting that would implicitly add the -SV flags to every "bzr st" command?19:09
fullermdYou could just alias st to 'stat -SV'19:10
fynnyeah, I guess that's the best solution.19:18
fullermdWell, I've got rm aliased to rm --keep, and missing aliased to missing --line and such   :p19:23
fynnfullermd: "aliased" as in bash alias, right?19:36
fullermdNo, bzr alias.19:36
fullermdbzr help alias19:36
fynnbzr: ERROR: No help could be found for 'alias'. Please use 'bzr help topics' to obtain a list of topics.19:37
fullermdMmm.  What version do you have?19:37
fynn1.519:37
fullermdLooks like the 'alias' command came in with 1.6.  They've been supported for ages before that though; you just have to set them manually in the config file.19:37
fynncool, thanks.19:38
fullermdMake an [ALIASES] section in your ~/.bazaar/bazaar.conf, and add a line that says "st = stat -SV"19:38
fullermdThere's a wiki page about it I think.19:38
lukshttp://doc.bazaar-vcs.org/bzr.dev/en/user-guide/index.html#using-aliases19:38
fynnthat's what I like so much about bzr: so many features, so convenient.19:38
fynnand organized quite elegantly too.19:38
abeaumonthmmm, i have an error with ftp transport and mode, i've seen a bug report and patch https://bugs.launchpad.net/bzr/+bug/259855 , but i'm still getting the same problem :?19:40
ubottuLaunchpad bug 259855 in bzr "Wrong mode of .bzr files when pushed via FTP" [Medium,Fix committed]19:40
fynnfullermd, luks: that worked, thanks a bunch.19:41
abeaumonti also have added a feature to bzr upload plugin, is there any developer of this plugin around?19:56
beunoabeaumont, yes19:59
beunohello19:59
beunoyou can upload the branch19:59
beunofle a merge request19:59
beunoand we'll review it to get it into the tree  :)19:59
fynncan I have a different bazaar.conf apply to different repos?20:00
abeaumontbeuno: ok, I'll do that20:01
beunothanks abeaumont20:01
abeaumontbeuno: done :) i hope i did everything right, otherwise just tell me (i'm new to launchpad)20:21
beunoabeaumont, did you file the merge request against trunk?20:21
awilkinsCan anyone things of commands that should take siblings in the same way that "switch" does (apart from merge, which is the top of my list)20:25
fullermdpull?  missing?  push?  diff?  stat?  bind?  reconfigure?  send?20:27
fullermdReally, pretty much ANYTHING that can refer to a branch.20:27
abeaumontbeuno: oh, no, forgot that20:27
abeaumontbeuno: ok, done20:28
beunoabeaumont, got it!  will get to it in a few hours.  Many thanks!20:28
abeaumontbeuno: perfect, thanks!20:29
awilkins!wake aeris20:30
ubottuSorry, I don't know anything about wake aeris20:30
awilkinsSorry bot20:30
fynncan I have a different bazaar.conf apply to different repos?20:53
Odd_Blokefynn: You might want to look at locations.conf.20:54
fynnOdd_Bloke: thanks, looks to be just what I was looking for.21:00
spsneohey how can I use bzr client behind http proxy?21:31
spsneoplease help21:31
Spazmagic.21:33
spsneoSpaz: hey can u help me ?21:33
Spazset http_proxy in your environment21:33
spsneoya I have already done that21:33
Spazhttp://bazaar-vcs.org/ConfiguringBzr#head-39a4bf80d496af410e013585de6268ca55928d3821:34
Spazif it doesn't work, i don't know what to tell you :p21:34
Spazsorry21:34
spsneoSpaz: do u know anybody who would help me21:35
Spazspsneo, what is your problem with it21:35
Spazif you set http_proxy (export http_proxy="http://proxy.crap.here") then it should work21:35
spsneoi am trying this : bzr branch lp:inx trunk21:36
Spazif not then it sounds like your proxy is either misconfigured or something is broken21:36
Spazthat is a local operation i believe21:36
spsneobut it gives a long list of errors21:36
Spazhm21:37
Spazpastebin them please21:37
spsneoSpaz: i guess this is the command to get the branch from launchpad21:37
Spazhm21:38
spsneoSpaz: http://pastebin.com/d6549284121:38
Spazbzr: ERROR: socket.gaierror: (-5, 'No address associated with hostname') <-- that is all i needed to hear21:38
Spazthe hostname doesn't resolve.21:39
Spazmeaning you're using a hostname that is invalid21:39
spsneonormally what is the method to get a copy of trunk from lp ?21:39
Spazspsneo, depends21:40
Spazwhat project do you wish to check out?21:41
spsneoinx on lp21:41
Spazodd...21:41
Spazspsneo, it sounds like an issue with your proxy21:42
spsneoSpaz: I also thought so21:42
spsneoSpaz: so is there no solution?21:44
Spazspsneo, don't use an http proxy21:46
Spazspsneo, or fix your http_proxy environmental variable21:46
spsneoSpaz: I am in an university21:46
Spazhm21:46
Spazi would bet $10 that your http_proxy variable is set wrong21:46
spsneoactually I am behind a firewall also21:46
spsneohehe no ways21:47
Spazexport http_proxy="http://proxy.url.org:port" ?21:47
spsneosvn is working fine21:47
Spazis it in that format21:47
Spazhm21:47
spsneoyaya21:47
Spazsounds like a possible bug21:47
Spazthat or your DNS server might be down21:48
Spaznot much i can do in either case spsneo21:48
spsneoya its in the format : http_proxy="http://user:pass@proxy.url.org:port"21:48
Spazah ok21:48
Spazis the actual address resolving?21:48
Spazrun host proxy.url.org or such21:48
spsneoSpaz: well I am behind a firewall as well which allows only http and https21:48
james_wbug 18692021:55
james_wtoo late21:55
ubottuLaunchpad bug 186920 in launchpad-bazaar "bzr launchpad does not handle proxy when used for name resolution " [Undecided,Confirmed] https://launchpad.net/bugs/18692021:55
* mwhudson hmms22:19
* mwhudson gruntles22:47
Peng_?22:50
mwhudsonPeng: i want to add a keyword parameter to Branch.open/BzrDir.open_branch without breaking all branch implementations22:57
mwhudson(well, branch format implementations i guess i really mean)22:58
Peng_Oh22:59
jammwhudson: good luck with that23:02
* fullermd would like a pony when you get done with that.23:02
jamI think you have to create a new api that calls back, if you *really* don't want to break compatibility23:02

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