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

lifelessfuding00:16
Pieter*funding00:19
=== kiko is now known as kiko-afk
lifelessabentley: ping00:35
lifelessPieter: it was a reference to a cartoon, wherein a dog has written 'Cat fud' on the door of a tumble dryer00:36
jonoxerAnother noob question: how do I get a list of files changed in a commit? With svn it's something like "svnlook changed MyRepo -r 123"00:49
lifelessbzr st -c revno00:50
lifelessor bzr st -r x..y for arbitrary ranges00:50
jonoxerlifeless: perfect, thanks!00:50
Pieterhow does bazaar show a diff with conflicts?00:53
lifelessPieter: I don't know what you mean by that00:53
Pieterwell, what does it look like?00:53
Pieter(can I get an example somewhere)00:53
lifelessdo you mean 'if I run "bzr diff" when I have conflicts, what do I see?' ?00:54
james_wPieter: you can only get them in your working tree, but it will just show the addition of the conflict markers and the "OTHER" block00:54
Pieterlifeless: yes00:54
Pieterjames_w: ok, so no double +'s like git does?00:54
lifelessPieter: bzr diff doesn't report on conflicts at all, so as james_w says you just see the herringbone markers00:54
james_wPieter: you mean with diff --c etc?00:55
Pieterjames_w: I guess.. git does it with --cc, which is a compacted version00:56
Pieterjames_w: like in http://pastie.org/29166900:56
PieterI was wondering if bazaar did the same thing with triple @'s00:57
james_wthere's --c and --cc I think00:57
james_wit doesn't currently00:57
james_wI played with adding it once00:57
Pieterok.. I want to use that to detect conflicting diffs in my app00:57
lifelessso, it marks the whole region, not just one side?00:57
PieterSo I thought I'd check other VCS's do that too00:58
lifelessjames_w: file a bug please :P00:58
james_wPieter already did: bug 25078301:00
ubottuLaunchpad bug 250783 in bzr "Add a combined diff view" [Wishlist,Confirmed] https://launchpad.net/bugs/25078301:00
PieterAh right, I thought bzr did the --c, but not the --cc01:01
lifelesswe have the code internally to do it01:02
lifelessmultiparent diffs01:02
lifelessbut we don't have a UI01:02
james_wah, didn't think of that, I was trying to do it around SequenceMatcher01:03
=== mwhudson_ is now known as mwhudson
=== mwhudson is now known as mwh
=== mwh is now known as mwhudson
=== mw is now known as mw|out
akahn_Does bazaar make it easy to collaborate with a co-worker on a lan the way git does?02:28
arjenAUakahn_: evenif they're 10k high and offline, yes02:29
akahn_i'm thinking bazaar might be easier for the two of us to manage our work (web development) and put it online02:30
arjenAUbzr rocks. and i'm not just saying that because it's the #bzr chan02:30
lifelessakahn_: yes; we have avahi integration, a built in server and other such things02:34
akahn_avahi?02:35
lifelesszeroconf02:35
akahn_not familiar with that02:35
lifelessits for completely adhoc networking02:35
lifelessno servers at all sort of thing02:35
akahn_i see02:36
akahn_ah, what apple calls bonjour02:36
akahn_thanks people02:40
abentleylifeless: pong03:07
lifelessabentley: I had a weird revert failure03:07
lifelessabentley: I suspect I did something to find a new corner case; so I filed a bug with the dirstate that caused it03:07
abentleylifeless: Okay.03:07
abentleylifeless: Is it possible reverting would have changed the root-id?03:10
lifelessabentley: non-rich-root trees *as far as I know*03:10
lifelessabentley: what I did was a parallel import of mysql, the pulled rev 1 of the import john did over that03:10
lifelessabentley: (which conflicted on everything, moving them 'to the root'). Then a 'bzr revert' and boom.03:11
abentleylifeless: I don't know whether that importer would create unique root-ids.  Can't say it wouldn't.03:12
lifelessabentley: indeed. I know the parallel import didn't.03:12
lifelessabentley: I can check one sec03:12
poolielifeless: re your earlier question, if the previous job is still running the new one will just exit03:13
lifelessabentley: the mysql import has a unique root id, even though its not a rich roots repo:03:13
lifeless>>> r = b.last_revision()03:13
lifeless>>> t = b.repository.revision_tree(r)03:13
lifeless>>> t.path2id('')03:13
lifeless'sp1f-changeset-20000731191004-fzqw7vgyzfnpbmw6f5gziiclvgyq4nc4'03:13
abentleylifeless: Sounds like we have a corner case with root ids changing.  I thought I had a test for that, but..03:14
lifelessabentley: yah03:15
abentleyvila: ping03:16
abentleylifeless: Could you review http://bundlebuggy.aaronbentley.com/project/bzr/request/<48EFE285.7090402%40aaronbentley.com> please?03:18
lifelessabentley: I think it needs a default on the if03:21
lifelessin create_from_tree03:21
lifelesselse:03:21
lifeless    raise AssertionError("unknown kind %r" % kind)03:21
lifelessall the rest has been reviewed by folk already03:22
lifelessso I don't think you need a review of the other parts of the patch03:22
abentleylifeless: I'm not sure the rest has been reviewed by others.03:24
lifelessabentley: poolie did the initial review saying that the iter_entries_by_dir hack was funky03:25
abentleylifeless: That was on another patch.03:25
lifelessabentley: which lead through the iterations to where we are today; I'm happy with the rest of the branch anyhow03:25
poolie(well, i was just noticing that fairly long repeated expression)03:25
abentleylifeless: Thanks.  I'll fix and submit.03:26
=== Spaz is now known as {^}
=== timchen1` is now known as nasloc__
=== {^} is now known as Spaz
lifelesspoolie: ping05:51
vilahi all07:25
vilaabentley: pong07:30
nubbunCan one use the Intrepid APT repository for Debian Lenny systems?  or is there a more suitable repository?08:06
jmlbazaar really can chew up memory when it wants too.08:09
jmls/too/to/08:09
jmloh wow, it's greying out my terminal :)08:11
lifelesspoolie: ping08:17
haoyuis TortoiseBZR  included in bzr installer?08:42
lifelessfor windows, yes I believe so08:48
lifelesspoolie: on the off chance that you look at this tonight; usertest's in progress log has stopped at the set stage, the actual test run is progressing but not visible anywhere08:48
haoyuI have download bzr-setup-1.8rc1.exe08:50
haoyubut seems tortoisebzr not included..08:50
haoyushould I restart after install?08:51
speakmanyo folks :)08:56
speakman(I was thinking of asking about PQM, but now I found the linuxfoundation.org article)08:58
Odd_Blokepoolie: What's "Kerguelen"?09:09
pooliekerguelen is (a) an island in the southern ocean, and (b) a windows virtual server for testing and building packages09:56
speakmanhow is bzrbashprompt.sh supposed to work?09:57
Odd_Blokepoolie: Ah, right.09:57
pooliespeakman: do you mean what's it meant to do or how does it do it?09:57
Odd_BlokeGoogle told me the former, but not the latter. :D09:57
speakmanoh, I loaded it wrong, now it works :)09:58
speakman(god it makes bash slow though...)09:58
speakmanare there any generic ways to speed up bzr?09:59
pooliefirst you should make sure you're using the compiled extensions10:00
poolie(ie are running from a package or have run make)10:00
pooliethen there is 'bzr shell' (in bzrtools) and bzr-client (a plugin)10:00
lifelesspoolie: any thoughts on usertest ?10:01
speakmanI'm running from ppa apt repo10:01
speakmanbzr shell doesn't load my .bashrc or .bash_profile, and seems to lack tab completion :/10:03
lifelessspeakman: in the last round of discussions folk were saying bzr is plenty fast for them; modulo really-big-trees10:04
lifelessspeakman: are you talking basic response time10:04
lifelessspeakman: or time to clone/do network stuff/etc ?10:04
speakmanbasic response time mostly, but the thought was more to make the bzrbashprompt.sh works a bit faster (it's a cool thing though!)10:07
speakmanI do not have a problem with bzr in general (doing bzr commit and stuff), else I wouldn't promote it the way I do ;)10:09
lifelessl12:03
guilhembiabentley: hello! I am reading12:37
guilhembihttp://doc.bazaar-vcs.org/bzr.dev/en/release-notes/NEWS.html#bzr-1-8rc1-2008-10-0712:37
guilhembiand wondering: does 1.8rc1 include all of 1.7.1?12:37
guilhembiand is there a way to tell (for next time I wonder :) ?12:38
guilhembiTo rephrase: 1.7.1 contained fixes to --weave, are they in 1.8rc1 too?12:38
abentleyguilhembi: Yes, 1.8rc1 includes everything in 1.7.1.  They always do.12:39
guilhembiabentley: thanks!12:39
abentleyguilhembi: Anything in the NEWS file for a given release will pertain to that release.  If 1.7.1 wasn't listed in the NEWS, you might wonder.12:40
guilhembiabentley: the NEWS file, you mean I should download the tar.gz of the release and read NEWS?12:41
abentleyguilhembi: No, you can look at http://doc.bazaar-vcs.org/bzr.1.8/en/release-notes/NEWS.html#bzr-1-8rc1-2008-10-0712:43
guilhembiabentley: how did you arrive to the link above? I was able to find http://doc.bazaar-vcs.org/bzr.dev/en/release-notes/NEWS.html#bzr-1-8rc1-2008-10-07 .12:47
abentleyguilhembi: I went to http://doc.bazaar-vcs.org/12:48
guilhembiabentley: thanks!12:49
=== tchan1 is now known as tchan
=== kiko-afk is now known as kiko
=== mw|out is now known as mw
ngnpcan I push/pull between server/debian bzr (0.11.0) together with laptop/ubuntu bzr (1.3.1) ... I guess not but how to solve this?14:50
pysquaredHelp please: I emailed someone a bzr branch.  They made changes and emailed me a merge-directive (MD). I merged the MD, made more changes, and I want to send back to them another MD.14:51
beunooleavr, what's the problem?14:52
pysquaredIf I create a copy of the branch I originally emailed them and "bzr pull" their MD, I can then do "bzr send ../original_plus_pulled_md"14:52
pysquaredBut can I do this without creating a copy of what their branch looks like?14:52
oleavrbeuno: ?14:53
pysquarede.g. something like "bzr send -r-2.. ." (which does not work by the way)14:53
beunooleavr, misstyped, meant pysquared   :)14:53
oleavrbeuno: ah :)14:54
beunopysquared, so, you want to create a merge directive, without creating a branch?14:54
beunoI don't think you can do that, because you need to have his revisions in the ancestry14:55
beunoso you do actually have to create the branch14:55
beunobut abentley is the expert on the subject14:55
abentleypysquared: The only way to calculate which revisions need to be sent is using a branch that lacks the revisions they lack.14:57
pysquaredOr specifying which is the last revision of the current branch they have??14:57
pysquared(Or am I being dumb?)14:57
abentleypysquared: No, that's a way of specifying what merge you want them to perform, not which revisions need to be sent.14:57
pysquaredSorry, please could you elaborate on "what merge" means.14:58
abentleyMerge is a bzr command.  It combines two lines of development.  It can merge either from a branch or from a merge directive.  When it uses a merge directive, it performs the merge that was specified in the merge directive.15:00
abentleySo when you specify bzr send -r 53..54, you're saying "merge just the changes from 53..54, even if you haven't merged 52"15:01
pysquaredI have used merge before (just a beginner though).  I'm just testing some merges now...15:03
pysquaredIs this correct: If I specify bzr send -r 10-30, and they are already at revision 20, then part of the merge directive is ignored, and they get the latest 10 revs?15:04
abentleyThat is true.15:05
pysquaredGood, so it seems like I can do what I want: generate a merge-directive without having access to their branch, as long as I know what is a common ancestor revid?15:06
abentleypysquared: Do they already have copies of your revisions?15:07
pysquaredHmmm?  I think that is what I am trying to send them in the merge directive no?15:08
abentleypysquared: No, you're telling them *what* to merge.15:10
pysquaredI basically want to find the most efficient way to generate the smallest merge directive which contains the work I have done since merging the work they did.15:10
abentleypysquared: In your example, if they already have revision 20, bzr only needs to send revisions 21..30.15:11
pysquaredCool.  What is the incantation?15:11
abentleypysquared: In my example, if they don't have 52, it needs to be sent, because it will be used indirectly.15:11
abentleypysquared: bzr send path/to/mirror/of/their/branch15:12
pysquaredI cannot find a way to produce a merge directive using a standalone branch which matches the one generated using a copy of their branch.15:12
pysquaredI think using path/to/mirror/of/their/branch should be unnecessary, but perhaps I am missing something important.15:13
abentleypysquared: If you use your own branch as the submit location, you will always get an empty bundle, and that will never be what you want.15:13
abentleypysquared: It is used to calculate which revisions need to be sent.15:13
pysquared*Yes* that was what I was getting - empty bundles15:13
abentleypysquared: By default, it is also used to calculate the merge to be performed, though you can override this with -r.15:14
pysquaredCan I tell "bzr send" which revisions need to be sent and the merge to be performed, and therefore lose the dependency on path/to/mirror/of/their/branch?15:15
abentleypysquared: No.15:15
pysquaredOh :-(15:16
pysquaredThat felt strangely like chasing my own tail :-)15:16
abentleypysquared: I said that at the start.  You need to use a branch that lacks the revisions they lack.15:16
ahasenackbzr is giving me a weird url to break a lock, does this look right?15:17
ahasenackbzr break-lock chroot--1217453396:///some/path/trunk/.bzr/branch/lock15:17
abentleyahasenack: No.  Just use the normal URL for that branch.15:17
pysquaredabentley: Is it possible do you think to add this feature?15:18
ahasenackabadger1999: thanks15:18
ahasenacker15:18
ahasenackabentley: thanks. Known bug? Should I open one?15:19
abadger1999heh.  I need to change the first two letters of my nick.15:19
abentleypysquared: It is possible, but pretty pointless.  Branches are ~44k15:19
abentleypysquared: And the overhead of keeping track of their branch manually instead of letting bzr do it seems not worth it.15:20
pysquaredabentley: thanks for your patience and help.15:26
abentleyvila: I'd like lp-login to set the username that is used whenever bzr+ssh://bazaar.launchpad.net is specified.  It seems like the best way to achieve this is to use AuthenticationConfig.  Does that make sense to you?15:40
vilaabentley: yes15:41
abentleyvila: Where would be the best place for this?  In the SSHVendor code, or the individual transports?15:42
vilaI didn't address it at times because... can't remember exactly, lack of test infra or shyness to touch the launchpad plugin code15:43
vilaWell, if you do declare bazaar.launchpad.net in the file, it should already work15:43
vilaThat is the intent at least :)15:44
abentleyvila: Really?  I see that for paramiko, but I thought the rest didn't use it.15:44
vilahmm, let me refresh my memory15:44
vilaHa yes, only paramiko implement access to auth15:48
vilaThe sub process ones are alien to me (I use only paramiko), but I guess the right place is in connect_[ssh_sftp] for SubprocessVendor, LoopbackVendor doesn't care15:49
abentleyvila: Any suggestions how to test that?15:50
vilaTricky :)15:51
vilaI think we lack the infrastructure for authenticating test servers15:51
vilaSo... the closest existing code will be in test_http/http_utils/http_server I guess15:52
vilaI tested the AuthConfig in test_config.py and then there are some full stack tests in test_http (test_prompt_for_password, test_no_prompt_for_password_when_using_auth_config)15:54
jamvila: do we actually use AuthenticationConfig for ssh ?15:54
vilaOnly for paramiko apparently15:55
vilascratch apparently15:55
jamwell, we would like it there15:55
jamI'm not sure if we should be more consistent15:55
jambut as paramiko doesn't have another way to configure it15:55
abentleyjam: My motivating example is Launchpad.15:55
jamthat is at least a start15:55
jamabentley: I understand what you are after, and I've read the bugs as well15:55
vilajam: more consistent ?15:55
jamI think that having a way to configure the username for paramiko is a good thing15:56
jamand perhaps "launchpad-login" is good enough15:56
jamvila: If we are going to use AuthConfig for paramiko, shouldn't we also use it for ssh and plink?15:56
jamarguable either way15:56
abentleyjam: launchpad-login doesn't do enough.  It doesn't allow users to use "bzr+ssh://bazaar.launchpad.net" URLs that have no username.15:57
abentleyjam: If we are going to insist that people specify their username via launchpad-login, not .ssh/config, we should ensure that it works all the time.15:57
vilaabentley: well, I'd argue that either you use lp: or you use bzr+ssh://user@bazaar.launchpad.net... No ?15:58
abentleyvila: That's not a shareable URL, so it can't function as a public URL.15:58
* vila should stop editing branch.conf and put lp: urls there ? :-)15:59
abentleyvila: I think that forcing a username into bzr+ssh urls is a bad choice because the resulting URLs can't be shared with other users.15:59
vilaHaaa, misunderstood15:59
vilabut then use lp: !16:00
abentleyvila: That's not usable by people who don't have the launchpad plugin.16:00
vilaand propagate it to .conf files so I can stop editing them :)16:00
abentleyAnd it's not a real URL.16:00
vilathere are people who don't have the lp plugin and want to use lp, oook. Fair enough :)16:01
vilaabentley: shaking the tree, don't take it personally :)16:01
abentleyI've implemented lp as a directory service.  This makes much more sense than implementing it as a transport.  But it means that the canonical url is whatever lp resolves to.16:01
jamabentley: the number of users that are going to be using launchpad with bzr but not have the launchpad plugin is roughly -10% at the moment16:01
jam(yes negative)16:01
jam:)16:01
abentleyjam: Are you proposing to make it part of the core, not a plugin?16:02
vilaon the subject of AuthConfig with ssh, we decided to refuse to handle passwords, pointing people to agents instead (just a reminder)16:02
jamabentley, vila: care to comment on bug #283123, I don't really want it to be just me versus bialix16:02
ubottuLaunchpad bug 283123 in bzr "Wrong result of cherrypicking merge" [Undecided,Won't fix] https://launchpad.net/bugs/28312316:02
jamabentley: well, how many installs *right now* don't have the plugin... 016:03
jamhow many installs in the future to we expect to not have it16:03
jamroughly 016:03
jamunless something changes dramatically16:03
abentleyjam: If we're going to require it, it shouldn't be a plugin.  If it's a plugin, we shouldn't require it.16:03
jamabentley: I think requiring it for people using lp: urls is just fine16:03
jamas private urls won't resolve for everyone anyway16:04
jamsome people won't be able to reach your server, etc.16:04
jamand branches move from time to time, servers disappear16:04
jamI think we can make a "reasonable effort" without having to turn the world around16:04
jamObviously you feel stronger about it, and you're welcome to feel that way16:04
jamI think using "lp:" urls is a nice pretty way to do things16:05
jamthat actually helps more than hurts16:05
jamthat said, I agree that I'd rather not have "bzr+ssh://myuser@"16:05
abentleyI really dislike lp urls, because they mask what's really happening.16:05
abentleyHaving a way to look up URLs is great.16:05
abentleyPretending it's the actual url... gross.16:05
jamanyway bbiab, taking my son to day-care16:06
Verterokmornin' all16:12
abentleyjam: I think that if a user specifies a username in authentication.conf, Bazaar should respect that.  I think it simplifies documentation and knowledge transfer to have this work for all SSH vendors.  However, if they haven't specified something in authentication.conf and the SSH vendor has its own configuration mechanism, that should be respected.  Do you disagree?16:18
=== kiko is now known as kiko-phone
jamabentley: so I think it should be "URL username", "auth.conf", "ssh/config", in that order16:37
jamI'm a bit concerned about "accidental" entries in authentication.conf16:37
jambecause we put them there, rather than just users16:37
jamhowever, if we are careful, it should be finee16:37
jamoh, and I wanted to point out an advantage of using lp:...16:37
jamusers who *don't* have an lp account or haven't issued 'lp-login' can still get the public branch16:38
abentleyjam: I agree with your order.16:38
jam(the only bug I know of is problems behind an http_proxy, because xmlrpc doesn't support it)16:38
abentleyjam: We currently do add entries to auth.conf, or we would?16:39
jamabentley: probably "we would", though I thought vila had some specs about adding things automatically when we connect to a server for the first time and prompt the user16:39
jamI'm not sure what has been implemented16:40
abentleyjam: Okay.16:40
vilaabentley: we currently don't add entries to auth.conf, but we would16:41
abentleyjam: Certainly it would be possible supply credentials via AuthenticationConfig without touching auth.conf if we decided we wanted to.16:42
abentleySomething like that would happen if we supported native keychains/seahorses anyway.  But I doubt it's the right choice here.16:44
vilajfroy is working on supporting OS X keychain16:44
vilaI made an attempt to accept pluggable credential stores at: lp:~bzr/bzr/pluggable-credential-stores16:45
vilabut that doesn't address your need which is to provide a *user* name (not a password)16:46
vilaAnd if we want to provide more public URLs, that may be needed16:48
=== Verterok is now known as Verterok|lunch
=== Verterok|lunch is now known as Verterok
abentleyvila: I took a look at lp:~bzr/bzr/pluggable-credential-stores.  I'm confused because it says "We don't use the netrc ability to provide a user since this is not handled by authentication.conf".  AIUI, authentication.conf can provide users.17:36
abentleyvila: Do you mean that only authentication.conf should provide users, not .netrc?17:37
vilaabentley: netrc can provide a default user, but we don't get it17:37
vilaabentley: yes17:37
vilabadly phrased, AuthConfig can't handle it, of course authentication.conf can17:37
vilaMay be we should rename 'password_encoding' to 'credential_store' and allows the user to be provided :)17:39
vilamay be that 'we' is really an 'I' :)17:39
abentleyI'm confused.  AuthConfig has a get_username method.17:39
* jfroy|work listens to the conversation17:40
abentleyMaybe I don't understand the intended layering.17:41
vilabut it doesn't delegate to the credential stores so it can't get the user provided by netrc in that case17:41
vilait just get the ones that are declared in authentication.conf17:41
vilaas described in the spec, only the password was intended to stored outside of authentication.conf17:42
vilas/to/to be/17:42
abentleyvila: So I think you want authentication.conf to specify the user, and then to allow credential stores to provide credentials for that user.17:42
vilaWell, either the user is specified in authentication.conf or provided by the credential store, otherwise users would get confused17:44
vilacredentials are for user at a host, optionally at a path and so far is only a password17:45
vilaat a path or at a realm even17:45
vilarephrasing: now, the user in authentication.conf only and credential stores can provides passwords17:46
=== kiko-phone is now known as kiko
vilaWe can change that so that credential stores can provide user and password. But in that case the user shouldn't appear in authentication.conf (IMHO)17:46
vilaabentley: is the following clearer :17:55
vila                # We don't use the netrc ability to provide a user since there17:55
vila                # is no way to give it back to AuthConfig. So if the user17:55
vila                # doesn't match, we don't return a password.17:55
abentleyvila: That's better.  But it implies a flaw in AuthConfig, rather than a design decision.17:57
vilaabentley: agreed, especially with your new use case17:58
abentleyvila: Oh.  I thought you believed that AuthConfig should not allow a user to be specified.  So I thought you should say something like "To reduce confusion, users are specified only on AuthConfig.  So we don't use netrc to choose a default user."18:01
abentleyvila: But if you now think it makes sense for credential providers to specify a user, then your revised comment is good.18:02
vilaIt makes sense for credential stores to be able to provide user, in which case the user shouldn't be specified in authentication.conf. If the credential store doesn't provide user then it should be specified in .conf.18:04
vilaSo I will work in that direction in that branch which is  work-in-progress with a nick that perfectly fits :)18:04
vilaabentley: Thanks for the feedback18:05
abentleyvila: No problem.18:06
=== kiko is now known as kiko-fud
=== Verterok_ is now known as Verterok
=== kiko-fud is now known as kiko
woutc__hello19:03
woutc__i am trying to use the bzrlib in my application19:04
LarstiQevening woutc__19:04
=== mw is now known as mw|food
woutc__but now i want to know the best function to check if a branch was changed by other people (somebody pushed the branch to a new rev)19:05
woutc__so i would like the log and the new rev number19:05
woutc__without pulling the branch19:05
LarstiQwoutc__: are the two branches the same (same url), or do you have one local branch you want to check against a remote one?19:06
LarstiQwoutc__: ala `bzr missing`19:06
woutc__i want to check a local branch to a remote one19:06
LarstiQok19:06
rockyjelmer: bzr-svn 0.4.13 is for bzr 1.7.x right?19:06
jelmerrocky, also for 1.819:07
rockyah cool19:07
woutc__bzr missing does what i need?19:07
jelmerrocky, I'll probably release a 0.4.14 that silences the compatibility warning at some point19:07
rockyjelmer: am i better off playing with bzr-svn 0.4.x branch (bzr 1.7.1 here) or bzr-svn 0.4.13 ?19:07
LarstiQwoutc__: yes. Looking at that code, it seems to be find_unmerged(local_branch, remote_branch, ...)19:08
jelmerthe 0.4 branch is for bzr 1.9.x19:08
LarstiQwoutc__: see bzrlib/builtins.py, search for cmd_missing19:08
woutc__thank you so much! :)19:08
LarstiQwoutc__: let me have a look at the IDE integration page btw19:08
LarstiQwoutc__: if it isn't on there, it should be19:08
rockyjelmer: huh? so no more releases for bzr 1.7.x or 1.8.x ?19:08
jelmerrocky, not for 1.7, maybe one for 1.8 that is 0.4.13 + silences the compatibility warning19:09
woutc__LarstiQ: it seems that it isn't listed on the integration page19:09
rockyjelmer: i take that to mean bzr 1.8 is right around the corner?19:09
LarstiQwoutc__: right. When you figure out exactly what to do, could you add it to http://bazaar-vcs.org/Integrating_with_Bazaar?19:09
LarstiQwoutc__: I'm happy to review or help otherwise19:10
woutc__ok, i am the developer from specto (http://specto.sf.net) and i am trying to create a watch that notifies you when somebody committed to a branch :)19:11
LarstiQwoutc__: do you also support events instead of polling? Would need the help of the remote branch to work though, but would be less intensive.19:15
woutc__the current specto design works only with polling19:18
woutc__so if the refresh (or poll) time is not set too low, it is not really a problem19:19
LarstiQk19:23
rockyjelmer: looks like that ghost revision bug thing i talked to you about before is back (it went away there for a bit) .... http://cluebin.appspot.com/pasted/240119:24
woutc__i found the function but i get an error19:39
woutc__>>> local_branch = Branch.open_containing(u".")[0]19:39
woutc__>>> parent = local_branch.get_parent()19:39
woutc__>>> local_extra, remote_extra = find_unmerged(local_branch,parent)19:39
woutc__Traceback (most recent call last):19:39
woutc__  File "<stdin>", line 1, in <module>19:39
woutc__  File "/usr/lib/python2.5/site-packages/bzrlib/missing.py", line 62, in find_unmerged19:39
woutc__    remote_branch.lock_read()19:39
woutc__AttributeError: 'unicode' object has no attribute 'lock_read'19:39
=== mw|food is now known as mw
abentleywoutc__: You have the location of a branch as a unicode string, and you're treating it like a Branch object.19:47
woutc__but the variable local_branch is a Branch object, no?19:49
woutc__>>> type(local_branch)19:49
woutc__<class 'bzrlib.branch.BzrBranch6'>19:49
LarstiQwoutc__: but 'parent' is not19:50
the-geek-insideProgramming Python, O'Reilly, Mark Lutz, ISBN-10: 0-596-51398-419:50
LarstiQwoutc__: the two first arguments to find_unmerged are the two branches you want to compare19:50
LarstiQwoutc__: and branch.get_parent() returns a url, not a branch19:50
woutc__haha so i have to create a branch object with the url :)19:51
woutc__ok that did the trick19:52
the-geek-insideOSamaK: Learning Python is good when you don't know about the language, so I guess thath you find some a little more advanced20:01
jelmerrocky, yeah, afaik 1.8 should be released soon20:03
* rocky finds it odd that he's the only person in the world to have such a glaring problem20:04
jelmerrocky, ?20:09
rockyjelmer: well this is preventing me from using bzr-svn (whether it's bzr's fault or not) ... just seems strange that this "showstopper" isn't severe enough to have fixed for bzr 1.7.120:10
jelmerrocky, which showstopper?20:10
LarstiQjelmer: http://cluebin.appspot.com/pasted/240120:10
rockyjelmer: you didn't see my paste above?  http://cluebin.appspot.com/pasted/240120:10
* LarstiQ does drive by pasting and leaves the house20:10
rockylol20:11
jelmerLarstiQ, :-)20:11
jelmerrocky, :-(20:11
jelmerrocky, That's a bzr-svn bug primarily, unfortunately (IIRC caused by older versions of bzr-svn that wrote incorrect data)20:18
rockyjelmer: old data shouldn't be an issue... how do i get rid of old data?20:19
jelmerrocky, the old data in the svn repository, if you do a fresh checkout (remove ~/.bazaar/svn-cache) outside of your existing shared repo it should work20:22
jelmerjames_w, ping20:34
james_whey jearl20:34
james_wer, jelmer20:34
james_whow are you?20:34
jelmerVery good, thanks (-:20:34
jelmerjames_w, You asked about bzr-notify crashes earlier20:34
james_wcool20:34
jelmerI've uploaded a new snapshot of bzr-gtk that should fix those issues20:35
james_wyeah, apport has shown that it affects a few people20:35
james_wah, great20:35
james_wto experimental?20:35
james_wbug 283294 arrived today, but I'm not sure why that only seems to affect Ted20:35
ubottuLaunchpad bug 283294 in bzr-gtk "bzr-notify crashed with RuntimeError in add_signal_receiver()" [Undecided,New] https://launchpad.net/bugs/28329420:35
jelmeryep, I uploaded to experimental20:36
jelmerI'm not sure what Ted's bug is about either20:36
james_wI mean no mainloop is defined as far as I can see, so it's right20:37
james_wbut why isn't that always a crash?20:37
jelmerI think it (used to ?) creates a mainloop implicitly20:39
=== thumper_laptop is now known as thumper
james_wjelmer: I'd like to just cherry-pick the fixes out, as we're two days from RC freeze, and it will avoid a freeze exception request20:42
jelmerjames_w, One sec, I'll look up the relevant revnums20:43
james_wjelmer: there are a couple of fixes missing that I put in to the Ubuntu package, I'm sure I checked they were fixed in trunk though20:44
james_whttp://paste.ubuntu.com/57563/ for a start20:44
james_wthanks for the heads up, I'm going to eat now, I'll work on it after that20:47
jelmerjames_w: http://people.samba.org/bzr/jelmer/bzr-gtk/trunk, revisions 607-61120:47
james_wthanks20:47
jelmerjames_w, bon appetit20:48
jelmerjames_w, I think we may not have those changes, will check20:48
rockyjelmer: i'll take a crack at that as soon as i finish preparing supper for the kids )21:07
rocky:)21:07
ryanakcacould somebody help me figure out the mess I got myself into please? bzr is telling me to resolve a file that isn't conflicted: http://paste.ubuntu.com/57581/21:20
=== BasicPRO is now known as BasicOSX
pooliehello all21:27
poolieryanakca: maybe you're not in the base directory of the tree?21:28
poolielike you're already in ./debian/?21:28
pooliein which case you just want 'resolve changelog'21:28
pooliejam, ping?21:28
jampoolie: pong21:28
ryanakcapoolie: nope21:29
pooliehey, Shang was just checking about bug 24251021:29
ubottuLaunchpad bug 242510 in bzr "Pack already exists when pushing/autopacking" [High,Fix released] https://launchpad.net/bugs/24251021:29
pooliethat is definitely fixed in 1.8 right?21:29
pooliewell, news says so21:29
poolielp is unreachable atm21:29
jampoolie: that one should indeed be fixed in 1.821:30
jambug 153786 is not, though21:31
ubottuLaunchpad bug 153786 in bzr "pack repositories do not retry when concurrent operations pack" [High,Triaged] https://launchpad.net/bugs/15378621:31
poolieryanakca: what does 'bzr st' show21:32
ryanakcapoolie: http://paste.ubuntu.com/57588/21:39
poolieoh, i see21:39
poolieso someone has actually committed three files called changelog.BASE .OTHER and .THIS21:40
pooliemaybe you :)21:40
pooliethat might not really be what you want?21:40
ryanakcapoolie: bzr ls debian/ doesn't show those files?21:41
pooliewhat about plain ls?21:43
ryanakcapoolie: same21:44
pooliehow about just 'bzr resolve' then21:45
ryanakcapoolie: it tells me it auto-resolved nothing and then it spewed out the same as the conflicts part of bzr status21:47
GhostFreemanIs there a channel for tortoisebzr?21:47
poolieno, just ask here21:47
GhostFreemanOk. Well I installed Bazaar on my windows vista machine (1.8rc1) and while bzr works, I can't get TortoiseBzr to show up in Windows Explorer21:49
=== kiko is now known as kiko-afk
poolieGhostFreeman: using the python-based 1.8rc1 installer?21:50
poolieGhostFreeman: i think that only includes bzr, not any plugins21:50
pooliethe person who normally makes windows builds, mhammond, is on holidays21:50
pooliei'm getting set up to build 1.8 myself21:50
GhostFreemanI did install using win32-py2.521:50
pooliein the meantime you could try 1.7-setup.exe, which does have it21:51
poolies/it/tbzr21:51
GhostFreemanAlright. Should I remove 1.8 before I revert to 1.7?21:51
poolie probably a good idea22:10
pooliejam, yeah it'd be good to fix 15378622:10
mwhudsonis it expected that you can call branch.set_stacked_on_url() on a branch that is write-locked by another process?22:32
lifelessmwhudson: no, bugger a file please22:35
mwhudsonlifeless: okidoke22:35
jampoolie: when it comes time for the standup, ping me. If I don't respond, call my cell phone22:36
poolieok22:36
pooliethat sounds painful22:36
lifelesspoolie: did you see my query re usertest log ?22:40
pooliemm, i did22:40
lifelesshttp://benchmark.bazaar-vcs.org/usertest/log/usertest.log.inprogress <- shows only the pull phase22:40
poolieand then i fell asleep :)22:40
lifelessfair enuff22:40
* poolie looks22:41
mwhudsonlifeless: https://bugs.edge.launchpad.net/bzr/+bug/28345722:41
ubottuLaunchpad bug 283457 in bzr "set_stacked_on_location doesn't take a write lock" [Undecided,New]22:41
lifelessmwhudson: I suspect its really 'config objects don't honour lock status of their branch'22:42
mwhudsonmm, that would make sense22:42
jfroy|workjelmer: ping22:47
jfroy|work(and hi!)22:47
jelmerjfroy|work, pong!22:47
jfroy|workSo, I have mostly addressed the issues I've (suddently) been having with bzr-svn, at the cost of a rather large performance problem.22:48
jfroy|workWhat showed up as corrupted knit exceptions in bzr 1.7.1 and bzr-svn 0.4.3 became not-a-branch exceptions or problems in top of tree (both for bzr and bzr-svn).22:49
jfroy|workThe svn repository I'm working with has ... a tortured history of projects being moved around several times, not always following svn conventions.22:49
jfroy|workAnd it was clearly tripping bzr-svn up.22:50
jfroy|workSo I managed to write up a list of branch paths in subversion.conf that made it mostly work (some branches in certain projects no longer can be checked out, the entire project (e.g. the root containing trunk, branches, tags) has to be checked out).22:51
jfroy|workHowever, now, sending a changeset takes upward of 15 seconds to complete, pegging Python to 100% of the core it's running on.22:51
jfroy|workAny ideas why that might be?22:52
jfroy|workAlso, how reasonable would it be to have an option to force a specific svn revno to be considered the "baseline", from bzr-svn's POV. E.g. it wouldn't look in the Subversion history earlier than that revno, to help deal with old svn repositories that have had a less than ideal history.22:53
jonoxerjfroy|work: you could dump from a specific revision using svnadmin, populate a new repo with just that history, then convert that22:55
jfroy|workNot viable in this case, I do not control or own the subversion repository in question.22:55
jonoxerAh, right22:55
jonoxerIt's kinda brute-force, but I did something nasty once where I scripted a sequence of "svn up -r $i" updates to let me pull a sequence of commits from a remote repo and run analysis on them. Maybe something similar?22:58
jfroy|workWell my understanding is bzr-svn has to map svn paths to branches (since svn has no formal notion of branches), and when a svn repository is really messed up, bzr-svn blows up :p22:59
jfroy|workYou can grab its hand by specifying a custom list of branches, but that has limits, and apparently bad performance implications for commit operations.23:00
jelmerre23:02
jelmerjfroy|work, 0.5 will be a lot of better in that regard23:03
jfroy|workjelmer: 0.5 is "working" for the most part, commits are exceedingly slow though23:03
jfroy|workAnd for one project the branches trick didn't quite work because of a svn mv operation (IIRC my analysis of the bzr log)23:04
=== kiko-afk is now known as kiko
jfroy|workif log files can help, I'd be happy to provide them to you, just let me know the debug flags you need23:05
jelmerjfroy|work, s/0.5/0.4 ?23:05
jfroy|workI'm using bzr and bzr-svn mainline23:05
jfroy|workI'm bleeding-edge :p23:05
jelmerjfroy|work, trunk or 0.4 ?23:05
jfroy|work0.4 just explodes, and 0.5 needs what appear to be 1.9 API23:05
jfroy|worktrunk23:05
jelmerjfroy|work, Please be careful with that, you wouldn't want to use it with production-type stuff23:06
jelmerjfroy|work, how does 0.4 blow up?23:06
jfroy|workI am using it on production stuff, I trust it to not delete every file :p23:07
jfroy|work0.4 throws corrupted knit errors23:07
jfroy|workI haven't, though, tried 0.4 with the custom branches option23:07
jfroy|workI never would have found out what the problem even was without 0.5's much more helpful errors.23:08
jfroy|workSo yeah, if there's anything useful I can do, let me know.23:13
jfroy|workI have, incidentally, a small change to trunk that addresses assertions (usually on branch names) that checked if certain parameters were str objects, also allowing unicode objects23:14
jamlifeless: for bzr.dev, 'time bzr pack' w/ normal compression: 39.5s & 5.7MB, w/ max compression: 42.7s and 4.5MB23:21
jamI'm off for now23:21
lifelessjam: ciao23:21
lifelessjam: I do wonder about just turning it on; indices are never done in isolation23:22
lifelessjam: and the proportion to data written should be roughly constant23:23
lifelessjam: (we'd want spill indices to have it off)23:23
awilkinsjelmer: The trunk of bzr-svn is the not-tied-to-a-fixed-concept-of-branch-mapping branch, yes?23:23
jelmerawilkins, yes23:24
awilkinsjelmer: E.g. - if you have a wacky repo layout it's ok23:24
jelmerjfroy|work, any chance you can send me those patches?23:24
jamlifeless: so for 'bzr pack' it is 10% more time for 25% less space. I was tuning it to be minimal by request for 'bzr commit' time.23:24
jamWhich seemed reasonable23:24
awilkinsjelmer: How stable is that now?23:24
jelmerawilkins, not recommended for use with production code23:24
awilkinsjelmer: I have some really horrible repos I can run it on :-)23:24
awilkinsjelmer: I don't mind it not being OK for production at the moment but I'm happy to devote a few CPU cycles to trying it out23:25
awilkinsjelmer: We are moving to another office that may have limited bandwidth and I think people might appreciate something that can buffer the gap to the server a bit23:26
awilkinsjelmer: 0.4 struggled with the repo layout of our main repo the last time I tried it (large revisions where there should have been tiny ones for branches)23:26
awilkinsjelmer: And of course, there's that KeyError thing (is that fixed?)23:27
jfroy|workjelmer: can I bzr send that to some email address?23:27
jfroy|workawilkins: I saw those key errors a bunch of times too23:28
jfroy|workI had to experiment a few times on my branches setting to get bzr-svn to checkout.23:29
jelmerjfroy|work, just "bzr send" against the main branch should do the right thing23:29
jfroy|workcommits are also exceedingly slow23:29
jelmerawilkins, use of trunk may silently break the ability to use bzr-svn in the future on those branches23:29
jfroy|workjelmer: bzr send complains it wants a mail-to address23:30
jfroy|workwhoa, really?23:30
jelmerjfroy|work, are you using http://people.samba.org/bzr/jelmer/bzr-svn/trunk ?23:30
jfroy|workjelmer: ah no, that was against the launchpad mirror23:30
jfroy|workComplained against that branch too :/23:31
jelmerAh, looks like I've only got it set on 0.423:32
jelmerone sec23:32
jfroy|workI didn't know a branch could specify a mail-to address, that's kind of very cool :)23:32
jelmerjfroy|work, please try again23:33
jelmerjfroy|work, you can set "child_submit_to = email@address" in .bzr/branch/branch.conf23:34
mwhudson_something doesn't seem right here: http://pastebin.ubuntu.com/57627/23:36
mwhudson_lifeless: more set_stacked_on_url/write lock interaction nasties :(23:36
mwhudson_^23:36
awilkinsjelmer: Do you mean the ability to use bzr-svn on the actual SVN branches?23:36
awilkinsjelmer: Or just the bzr branches?23:36
jelmerawilkins, the ability to use bzr-svn on the actual SVN branches23:37
awilkinsjelmer: That down to the bzr: properties?23:37
jelmerawilkins, yep23:37
awilkinsjelmer: Is this because experimental progression is neglecting to put migration steps for the properties in?23:37
jelmerawilkins, that, and the fact that several corner cases are not well tested yet for trunk23:38
jelmerand so may set invalid values for the properties23:38
awilkinsjelmer: Is this only a problem if you push?23:38
jelmerawilkins, generally, yes23:39
jelmerawilkins, however, if you use trunk for pulling you may also corrupt your local bzr branch23:39
jelmerawilkins, since trunk may sometimes be broken (it warns you every time you use it for a reason)23:39
awilkinsjelmer: Fair enough - less of a risk if you are just pulling branches on a particular trunk revision for experimental purposes?23:40
awilkinsjelmer: Since 0.4 can't pull the trunk of my "big nasty" repo, it's not too much of a loss23:41
jfroy|workack, this is kind of scary -- to never be able to use bzr-svn again on a repository.23:41
awilkinsjelmer: If you dropped the bzr: properties, and re-pulled your branches, you'd lose some metadata but the compatibility problem would be fixed, yes?23:42
jelmerawilkins, you can'y drop them without taking the repository down23:43
awilkinsjelmer: Are they all revprops or are there fileprops there too?23:44
jelmerall fileprops at this point23:45
awilkinsjelmer: So you'd need a dump | filter | load ?23:45
jelmerawilkins, yep23:45
jfroy|workjelmer: do you think a "baseline" revno option would be a suitable workaround for the extreme case of a broken subversion repository that is not under your control?23:45
awilkinsHappily, I am the server admin :-)23:46
jelmerjfroy|work, that means you can't allow dir push to svn23:46
jelmers/dir/direct/23:46
jfroy|workI don't know enough about how this stuff is working to understand why that is, but I'll trust you on that23:46
jfroy|workUrg, I might have owned myself for all time :|23:47
jfroy|work(patch sent, btw)23:47
* mwhudson_ bounces23:47
mwhudson_lifeless, poolie: could one of you look at http://pastebin.ubuntu.com/57627/ for me?23:48
=== mwhudson_ is now known as mwhudson
pooliemwhudson: really23:56
pooliemwhudson: and where is the repository for them?23:57
pooliei presume they're in the same repository?23:57
pooliethat's probably the bug, can you file it?23:57
mwhudsonpoolie: i don't think that matters, actually, it seems you get this when the branches are both standalone23:58
mwhudsonpoolie: i can check though23:58

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