/srv/irclogs.ubuntu.com/2008/11/21/#bzr.txt

abentleypoolie: I'm up for a call.00:24
pooliehi00:28
poolieon skype or something, if you like?00:28
abentleypoolie: http://code.aaronbentley.com/bzr/bzrrepo/288751-pack-deltas00:37
jbalinthow do i handle "Contents conflict", the file has been renamed in the current tree00:52
thumperhow do I change the format of a branch from BranchFormat7 to BranchFormat6?00:58
jbalintmaybe bzr upgrade?01:00
spivjbalint: see "bzr help conflicts"01:01
spivjbalint: a contents conflict is when bzr sees conflicting changes to a non-text file.01:01
awilkinsOr the addition of a file with the same path01:02
jbalinthrm, these shouldnt be nontext01:02
awilkinsIn two seperate branches01:02
jbalintone is .h, its the exact files taht are renamted01:02
spivawilkins: Hmm, "bzr help conflicts" suggests that would reported differently.01:04
spivNote that symlinks and directories count as non-text files...01:05
awilkinsI've never seen a "path" conflict, only content ones01:05
awilkinsAnd these are for ASCII text files01:06
awilkinsMaybe it's a windows thing?01:06
spivMaybe, I wouldn't know.01:06
kingfishrwhat is the shortest sequence of commands to give me the equivalent of hg addremove?01:47
spivkingfishr: something like "bzr add; bzr commit" IIRC  (commit will automatically remove missing files by default, I think).01:51
kingfishroh really?01:52
kingfishrthat's convenient01:52
kingfishri wasn't aware of that01:52
spivI think --strict will disable that behaviour.  Try it out, it's easy to experiment :01:53
spiv:)01:53
=== ubott2 is now known as ubottu
pooliejam, are you still around? did you do a patch towards bug 300177, i don't remember02:21
ubottuLaunchpad bug 300177 in bzr "get_record_stream/ContentFactory should expose compression parents" [High,Confirmed] https://launchpad.net/bugs/30017702:21
synicI want to write a clone of gitosis for bzr, I'm just wondering if anyone is already doing this (other than bzr_access)?02:38
james_wI had heard tell that gitosis may support bzr02:39
james_wor maybe I'm thinging of something else02:39
synichrmm, not in it's current state02:40
spivbzr_access is the closest I know if.02:42
spivs/if/of/02:42
synicok, cool02:43
vilaGooood morning all05:22
spivvila: good morning.05:26
spivvila: you seem to be around early today :)05:26
vilaspiv: no, check your clock :)05:26
vilakidding, I dropped my girlfriend to the airport :)05:26
armyhi ,i have a problem with bzr-svn,05:31
armybzr 1.9 bzr-svn 0.4.15, check out http://www.prestashop.com/publicsvn ,error05:33
=== doko_ is now known as doko
kisielk_homeAs a new user to bazaar, I have a few question about repositories. In order to use an sftp:// repository, does bazaar actually have to be installed on the host?08:18
kisielk_homeor is it enough to have it just on the client?08:18
lukskisielk_home: no, it doesn't have to be on the server08:20
lukskisielk_home: only for bzr+ssh or bzr+http protocols08:21
kisielk_homenice08:21
kisielk_homeyeah, I just want to keep some configuration files on my web server08:21
kisielk_homeand sync them to the machines I use08:21
kisielk_homebut it's shared hosting, so no bzr installed there08:21
luksshould work fine08:21
kisielk_homecool08:22
vilajam: When you'll come online, have a look at the last comment in bzrlib.tests.test_log.TestShowlog.test_simple_log :-/08:34
=== thekorn_ is now known as thekorn
=== kiko-afk is now known as kiko
robstahi10:55
robstawhat's the best changelog script with bzr, prepare-ChangeLog.pl seems not to handle it10:55
=== bac is now known as bac_afk
robstajelmer: thanks for the fresh bzr-svn deb on the ppa, i can now clone my svn repo and `bzr check' works11:54
jelmerrobsta: n/p11:56
jelmerrobsta: what's prepare-ChangeLog.pl exactly, is it GNOME-specific?11:57
robstanothing, it doesn't do bzr at all11:57
robsta(my version at least)11:57
jelmerI think there was a plugin that could write GNU-like ChangeLog entries11:58
robstainteresting11:58
robstai'm really only using the script to create commit messages11:58
jelmerah, it creates commit messages from the changelog rather than the other way around?11:59
jelmerin that case, the plugin won't be of much use to you12:00
robstai run prepare-ChangeLog.pl, then paste it when committing12:00
robstathe changelog is just a side-product of that12:00
asabilrobsta: you probably want to use moap instead of prepare-ChangeLog.pl12:13
asabilI have a patched version of moap that produces the exact same output12:13
robstaasabil: with function names?12:13
asabilah, no I don't think so :/12:14
robsta:(12:15
robstaseems like maintainer.py doesn't to bzr either12:15
asabilwell, I only used moap with Vala, so I don't know if it tries to extract function names for C code12:16
robstaheck, how hard can it be to hack prepare-ChangeLog.pl ...12:28
=== kiko is now known as kiko-fud
SadrBazaar is mainly designed for code, correct? But, could it be also used for, say, model/asset revisions tied up with a web-based GUI?14:07
=== kiko-fud is now known as kiko-afk
Sadrsecond try... any examples of Bazaar being used for *files* (e.g. a .blend or .max) ?15:04
Sadrwe're looking into maybe using Bazaar as an advanced file manager for our open source website15:05
jelmerSadr: hi15:05
jelmerSadr: The obvious problem with binary files is merging - bazaar does line-based merging15:05
jelmerother than that, it should work fine15:05
SadrI see15:07
awilkinsOk ; here's a talking point ; tags15:08
awilkinsAll tags are replicated between branches on a push, pull, branch, even if they are on dead revisions15:10
awilkinse.g.15:10
awilkinsbzr init one ; cd one ; echo one > one ; bzr add ; bzr commit -m "One ; bzr tag ONE ; bzr uncommit --force ; bzr commit -m "Two" ; bzr tag TWO ; cd .. ; bzr branch one two ; cd two ; bzr tags15:11
awilkinsDang, missing a quote15:12
jelmerawilkins: I think it's intentional to keep those15:12
awilkinsjelmer: But then you have a tag that marks a revision that potentially does not exist in the target branch / repo15:12
awilkinsjelmer: Dead revisions are not branched to the other branch, what's the sense in identifying them.15:12
awilkinsIn my case, I then ran into tag conflicts with new revisions (the tags are being generated by a script for metadata purposes)15:14
Odd_Blokeawilkins: 'bzr branch -rtag:dead-revision <original branch>'?15:14
awilkinsOdd_Bloke: 'spose... :-)    it does seem rather marginal15:15
Odd_Blokeawilkins: Sure, but if the tag disappears, you don't know that you haven't got all of the revisions that were tagged.15:16
Odd_BlokeAnd presumably the tag still existed for a reason.15:16
awilkinsI shouldn't run into it again, my script now overwrites the tags ; and people shouldn't push before they are sure they are not going to uncommit.15:16
awilkinsThe tag exists to identify live revisions that represent places to do a fancy diff report15:17
jelmerwow, has_revision() really profits from the 1.9 formats..15:17
vilajam: ping15:20
derekShi all. just a quick question. what is the difference between committing to a local branch and pushing to a local folder?15:25
derekSnot used to this dvcs :)15:26
Odd_BlokederekS: You push commits.15:26
Odd_BlokeYou commit changes.15:26
Odd_BlokeSo push recreates your branch wherever you push to.15:27
Odd_BlokeYour branch doesn't include anything that hasn't been committed.15:27
derekSOdd_Bloke: so pushing a commit just merges it upstream?15:27
awilkinsderekS: pushing only works if no merge is required :-)15:28
Odd_BlokeNope, merging is a different concept.15:28
derekSso, pushing just puts my branch upstream?15:28
derekSso it copies my branch to the one i pushed to?15:28
Odd_BlokeWhat do you mean by 'upstream'?  Pushing just puts your branch wherever you're pushing to.15:28
awilkinspushing sends your revisions to the target branch, if it has no revisions that are children of the common ancestor you share15:29
derekShmm gotcha15:29
derekSsorry, i am gjust trying to figure out how i can switch my svn to bzr15:29
derekSthe owrkflow part15:29
derekSi use svn right now as a pseudo document management system :)15:29
derekSfor my personal files15:30
awilkinsHeh, I found it liberated me from the workflow of svn :)15:30
awilkinsNo having-to-be-in-the-office or on-the-vpn15:30
awilkinsStarted off with SVK and when that had a major oops, moved onto bazaar15:30
derekSawilkins: yeah :) i like it15:30
derekSjust trying to create my workflow15:31
awilkinsThat reminds me... I was going to have a crack at bzr-svn 0.5 on this monster repo to see how it does compared to 0.415:32
* awilkins gets busy downloading stuff15:32
derekShave fun!15:32
=== abadger19991 is now known as abagder1999
=== abagder1999 is now known as abadger19991
=== abadger19991 is now known as abadger1999
=== sdboyer is now known as sdboyer|class
pickscrapeIs it possible to create a patch using bzr send which is against an earlier revision on the branch without having to bzr branch -r that revision out temporarily?17:29
pickscrapee.g. I have a branch that I submitted at r50, and I commit 5 more changes (to r51) and want to submit those 5 changes as a new patch but not including the work up to r50.17:30
LeoNerdPresumablly -r50..51 ?17:30
pickscrapeDoesn't defining a range like that create a cherry pick?17:31
LeoNerdYes. But that's what you're doing here17:31
pickscrapeOK, asking my colleague to try that. Thanks :)17:32
pickscrapeRelated question, but when using a loom is there a simple way to say "send this thread" or does that also require looking at log and specifying the relevant revisions?17:33
jamvila: pong, sorry about the delay17:38
vilajam: np, just a quick chat about but #30005517:39
vilajam: np, just a quick chat about bug #30005517:39
ubottuLaunchpad bug 300055 in bzr ""bzr log --forward FILE" crashes for revision range if first revision is not mainline" [Medium,In progress] https://launchpad.net/bugs/30005517:39
vilagee ubottu, can't you see that I mixed up your nick and bug ?17:39
vilajam: So, as said in the bug comments, I commited 2 fixes already, cleaned up the tests (finding a semi-bogus one on the way)17:40
vilaAnd I'm now to the point where I realized there are still problems lying around17:41
jamwell, making things better than they are now is worth merging17:41
jameven if you don't have an absolute solution17:42
vilaThat was my feeling but I wanted to discuss a bit to clarify my mind, I want to send the submission with some explanations to start the discussion17:43
vilaRoughly, we tend to enlarge the revision ranges to include the mainline revisions17:44
vilaI think this is motivated by two facts: 1) that made the programming easier (wrong reason :), 2) we display dotted revnos *after* the mainline revisions they are merge into17:46
vila2) does not play play well for several reasons17:46
vilaa) it makes the code *harder* as soon as the revision ranges are not "complete" (as including the mainline revision and all its merged revisions)17:48
synicwhat is the equivalent of "bzr checkout" in bzrlib?  WorkingTree doesn't have a 'checkout' method17:48
vilab) the display is ill-defined when the range is not complete17:49
jamsynic: Branch.create_checkout, IIRC, you can look in 'builtins.py' for the 'cmd_checkout' class17:49
synicok17:49
vilaThe root cause being that reverse_by_depth works in one direction only and this went unnoticed until now, so many cases are not covered17:50
vilaerr, scratch that17:50
jamso let's start at the beginning17:51
vilaThe root cause being that reverse_by_depth works in one direction only, this went unnoticed until now but it was used in several places ignoring that fact17:51
jam"we tend to enlarge the revision ranges to include the mainline revisions"17:51
vilaok17:51
jamwe want to go from a revision in the ancestry17:51
jamand track where it was merged until we get down to mainline17:51
jammerge-sorted revisions have this information easily available17:51
jamreversed... not so much17:52
jamI couldn't actually work out an obvious answer once they have been reversed.17:52
vilaI argue that we may not want to do that unconditionally17:52
jamvila: perhaps, but for now it was chosen as the best trade off17:53
jambetween showing all cases where the change was merged into17:53
jamand showing none17:53
jamit is logically an optional thing17:53
jambut to make it *actually* optional17:53
jamrequires updating the UI17:53
jamand passing the parameters across the stack17:53
jamwhich is generally non-trivial17:53
jamIt most certainly *can* be done. It wasn't worth my time17:54
jamand I would argue it isn't worth your time *right now*17:54
jamchanging log so that it doesn't have to access as much ancestry would be a better thing to work on17:54
jamand that may restructure the code anwyay17:54
jamanyway17:54
vilajam: sorry, phone, back in a few minutes17:55
vilajam: back17:56
jamnp17:57
vilaOk, I see your point. Yet, the case reported, starting at a dotted revno and fixed as of today allows to avoid showing a bunch of revisions (~50 or 100) so there is some motivation to handle it to respect user request17:57
vilaBut, you're right, I may submit the actual fixes and just add a note that some more work may be needed, the fixes themselves provides a better solution but doesn't address all the cases either17:59
vilaOh, re-reading your comments, I don't argue that we must not include the mainline revs, just that we don't have to include them if they are outside the requested range, i.e. at start/end only. But doing so raises some problems in the way we display them:18:01
vilaWe can display hanging revisions (without their mainline) at start, but we can't to that at end, because there isn't a mainline rev to aggregate them there18:02
jamvila: I don't quite see how you can get a revision that is in the ancestry that never ends up merged to a mainline revision18:02
jamit... wouldn't be in your ancestry if that was the case18:03
vilaSo doing 'log x.n.m..y.p.q' and 'log x.n.m..y.p.q --forward' can't display the same revisions18:03
vilathe revision *is* in the ancestry but the range *excludes* it18:03
jamwell, we only do the projection to mainline revs if you are logging a file18:03
=== jdong_ is now known as jdong
vilaLook at lp:~/vila/bzr/300055-log-forward, bzrlib/tests/test_log.py TestGetViewRevisions.test_file_id_for_range for an example or try the reported case with my fix18:05
vilain the reported case, the first required revision is 1616.70.54 which was merged in 162718:06
vilaYet, with my fix and --forward, we don't display 162718:06
vilabut we display it *without* --forward18:07
vilaA bit hard to explain :-/18:07
jamno, I understand what you mean18:08
jamIMO being consistent would be nice18:08
jamand I would probably go for "always show it"18:08
jambecause I think it would be easier18:09
vila:-)18:09
vilaRight, now, we understand each other I think :-) Easier for the dev may not be what the user is wanting, but the user may want other things first ! Does that summarize the discussion ?18:11
jamvila: yep18:21
jamGetting a "correct if suboptimal" result for log18:21
jamis the most important18:21
jamand getting other stuff done is better than optimizing the rest of log18:21
vilaok. I call it a day then (started a 6h30 this morning :)18:23
vilahave a nice week-end !18:23
LarstiQvila: you too!18:25
jamyou too vila18:37
=== sdboyer|class is now known as sdboyer
jamdoes anyone know if LP can handle 1.9 format branches yet?20:21
beunojam, IIRC, it only has up to 1.820:22
beunoactually, it's on 1.7.1rc120:23
beunoso... only if used through sftp maybe?20:23
beunoI don't know how picky the smart server is about formats it doesn't know20:24
jamI don't think it can mirror branches from sftp => http side if it doesn't understand them20:24
jamand I don't think it can mirror a branch on my webserver if I upgraded it to 1.9 either20:25
beunoright, the puller will probably b0rk20:25
jamyou would be able to *push* to bzr+ssh the first time20:25
jamand then future access will likely give "Unknown Format" errors20:25
Peng_Yeah, the puller can't mirror from 1.9 branches.20:25
Peng_(on external web servers, I mean)20:25
jamPerhaps if you used nosmart+bzr+ssh or some other crazy workaround like that20:25
jamwhich I suppose isn't terrible considering if you were using 1.9 it would trigger the auto-stack from LP, and we know that is a little bit buggy right now20:27
jamI'm trying to finish up Martin's fix and get it merged.20:27
beunooh, that would be great20:29
beunothen we just push everyone to use nightly20:29
jamwell, I think Martin wants to make sure things are going smooth20:36
jamand then have it all in 1.10rc1  which will be on Friday20:36
jam(1 week)20:36
synichow can I create a hook that only runs when a certain branch is pushed to?21:34
freewilly1Client-side? Use post_push. For server-side, you'll have to use post_change_branch_tip21:45
freewilly1I bet there's a way to check which branch is being operated on, but I don't know enough to answer that21:47
=== freewilly1 is now known as kumi1
synicok, yeah, that's what I'm looking for is which branch it is21:48
=== jfroy|work is now known as jfroy
=== jfroy is now known as jfroy|work
synicjam: ping23:29
jfroy|workAnyone here has setup some manner of automated Subversion Bazaar mirroring solution?23:37
jfroy|workCurious about people's experience, solutions, gotchas, and so on.23:38

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