/srv/irclogs.ubuntu.com/2007/11/22/#bzr.txt

mwhudsonabentley: so previewtree will still need an inventory at some point without more diff refactoring?00:00
abentleyNo, I mean I hope that PreviewTree won't need an inventory, but until it's finished, we can't be sure.00:05
lifelessabentley: so, my diff suggestion, do you think its baked enough ?00:07
abentleyYeah.  The main thing it's silent on is how to handle kind changes, but I've got my own ideas.00:10
lifelessabentley: oh, hmm kind isn't in the signature is it?00:10
abentleyWell, I was going to put it there anyhow.00:11
lifelessthough if each Diff is contructed with the trees, at the start of TreeDiffer00:11
lifelessyou don't need to extend the signature; cross-kind diff could just be a wildcard at the end of the [Diff, Diff, Diff..] list00:12
mwhudsonabentley: fair enough00:12
* mwhudson goes to bed00:12
abentleylifeless: Sure, but the larger issue for me is, what should CrossKindDiffer do?00:14
abentleyMy current idea is that it represents it as an add + delete, and uses the existing list of differs to do it.00:15
lifelessoh, in the UI ?00:17
abentleyWell, the output.00:20
abentleySo if you change a symlink to a file, it shows deletion of a symlink, and a unified diff that adds a file.00:21
lifelessso here's a corner case00:21
lifelesswjhat about subtree -> directory00:21
lifeless(with the same contents under both)00:21
lifelessbut other than that I think it makes sense as you propose; presumably just call diff twice, once as a delete once as an add00:22
abentleyI think the nested-trees code hides tree references from diffs, and presents the referenced directory instead.00:22
lifelessk00:23
abentleyThere's room for improvement, but that's good enough for nested-trees to go beta.00:24
mtaylorstatik: have you actually started programming in erlang? or are you just interested in it?00:25
ubotuNew bug: #164436 in bzr "permissions tests need to be parameterised too" [Medium,Triaged] https://launchpad.net/bugs/16443600:26
=== mw is now known as mw|out\
poolielifeless, hi,00:37
=== me_too is now known as too_short
=== too_short is now known as me_too
lifelesspoolie: oh, had you pung before I rung ?00:51
lifelessmtaylor: erlang is quite nice00:51
jelmerthat would be the ultimate tool01:00
jelmera distributed vcs that can run distributed01:00
Odd_Bloke:D01:04
jelmerah well, g'night01:10
schierbeckgood night :)01:11
warrenhmm, somebody sent me a .patch file that is a bzr bundle01:30
warrenI haven't merged this kind of thing before01:30
warrenany pointer to docs of how to do this?01:30
warren(can I merge it into my tree keeping his metadata?)01:31
Odd_Blokewarren: You can, by and large, treat the file as a branch. (i.e. bzr pull bundle.patch, bzr merge bundle.patch)01:31
warrenOdd_Bloke, ah01:32
warrenOdd_Bloke, for future reference how do I create this kind of bundle myself?01:33
Odd_Blokewarren: 'bzr send' is the command you want to look at.  To create the file, use 'bzr send -o bundle.patch'.01:33
Odd_BlokeThere are craftier ways to use it, but I haven't fully plumbed their depths.01:34
poolie(lunch)01:39
abentleywarren: what platform are you on?01:39
warrenabentley, Fedora01:40
abentleyif you have xdg-utils installed, bzr send will automatically launch your preferred mail client, with the bundle as an attachment and everything.01:41
warrencool01:42
poolie** launchpad is down for maintenance - upgrade to the next version02:32
pygipoolie: in this time of night ... :)02:32
pooliei mean, for an upgrade to the next version02:34
poolieit's midday here...02:34
pooliei think it's designed to correspond with the lowest daily usage - US and EU nighttime02:34
abentleypoolie: It's okay.  I'm amazed you aussies can stand on your heads all day...02:35
lifelesspoolie: patch mailed02:37
lifelesspoolie: its not 'done', but this is a reasonable snapshot of progress; I think the vast ermaining bulk is the smart server verb02:38
=== cprov is now known as cprov-ZzZ
=== Verterok is now known as Verterok_
floamIs it possible for me to have one file in my repository that sort of mirrors some single file from someone elses repository of a completely separate project?03:07
pooliefloam, sorry, no03:13
pooliewell,03:13
pooliewhat i suggest you do is make it a symlink to a file in a checkout of their project03:14
lifelesspoolie: you can set up a branch with that one file merged, and other files will just conflict / could do partial merges all the time03:14
pooliethat too03:14
pooliereading your patch03:15
lifelessthanks03:15
lifelessI'm folding now03:15
abentleyfloam: btw, what you're calling a "repository" we call a "working tree".03:15
floamabentley: sorry, I've used cvs/svn up until three months ago03:16
abentleyWe use "repository" more in the CVS sense.03:16
floamI assume the heart in the right place with the nomenclature wrong is better than the other way around :)03:16
abentleySure.03:17
pooliefolding?03:18
=== abentle1 is now known as abentley
mtaylorlifeless: I've been looking at an erlang project, but I'm looking around for motivation to actually learn erlang :)04:03
mtaylorlifeless: do you know anything about extending erlang with c libraries? (like if I already had one and wanted to wrap it)04:05
abentleylifeless: ping04:31
=== Verterok is now known as Verterok_
ubotuNew bug: #164443 in bzr "can't branch bzr.dev from codehost over bzr+ssh" [Critical,Confirmed] https://launchpad.net/bugs/16444306:45
ubotuNew bug: #164447 in bzr "bzrlib.info.describe_format should be a BzrDirFormat method." [Medium,Triaged] https://launchpad.net/bugs/16444706:45
ubotuNew bug: #164450 in bzr "should show a message when pushing(overwriting?) tags" [Low,Confirmed] https://launchpad.net/bugs/16445008:01
ubotuNew bug: #164453 in bzr "bzr using way too much memory for large file fetch" [Undecided,New] https://launchpad.net/bugs/16445308:11
=== mtaylor is now known as mtaylor|zzz
lifelessabentley: pong08:57
lifelessabentley: I'm guessing you are asleep at this point, but if it was re Differ's, I've replied - I think it's looking good.08:57
pooliethumper, ping?09:01
thumperpoolie: pong09:02
pooliethumper, do you want to come to this call?09:02
thumperwhose number?09:02
poolieconference centre?09:02
thumperI'm there09:03
LarstiQAcro: I wasn't, and I'm going to class now again, but leave a message and I'll try to get back to you09:19
ubotuNew bug: #164466 in bzr "rename packs from knitpack-experimental " [Undecided,New] https://launchpad.net/bugs/16446609:35
=== cprov-ZzZ is now known as cprov
AfCEeek!10:07
AfCI punched up http://bazaar.launchpad.net/~bzr/bzr-gtk/trunk and it says "Not Found The requested URL /00/00/05/32 was not found on this server."10:07
mwhudsonyes, that sucks10:12
fullermdThat'll teach ya.10:14
AfCfullermd: :)10:17
lifelessmwhudson: whats the problem? missing / ?10:30
mwhudsonlifeless: yeah, you get internally redirected to a url that you can't access, or something10:31
lifelessmwhudson: that should be trivial to fix;10:31
lifeless... pretty please?10:31
mwhudsonlifeless: it's an apache config issue, and i really don't know much about that10:32
mwhudsonlifeless: file an RT?10:32
theSoftManHello, is Qbzr a complete GUI for bzr ? giving the possibility of add, commit, create branch,... ?10:40
theSoftManand other question is : how to lauch it ?10:41
lifelessmwhudson: you need a redirect that matches the non/ - ...$ -> .../10:52
lifelessmwhudson: its maintained by the lp-bzr folk as part of the codehosting config10:52
lifelesstheSoftMan: I'm sorry, I haven't used it myself, but yes I understand it to allow those operations10:52
mwhudsonlifeless: so redirect ~blah/blah/blah to ~/blah/blah/blah/ before considering anything else?10:56
AfCmwhudson: yes10:58
ubotuNew bug: #164476 in bzr "packs should be the default format" [Undecided,New] https://launchpad.net/bugs/16447611:00
theSoftManlifeless : i have made the installation on my windows system but i can launch it ? ( thanks for you previous answer )11:04
=== mrevell is now known as mrevell-lunch
=== mrevell-lunch is now known as mrevell
=== mw|out\ is now known as mw
VSpikehi folks - quick question probably.  I tried my first merge (woo!) and it was OK except while resolving some conflicts i had the case where the working tree had deleted the files and the merge source had made changes since the base ...14:26
VSpikeexcept that I didn't understand what it was trying to tell me and so marked them as resolved because i knew the files had been deleted14:27
VSpikeHow can I get the .BASE and .OTHER files back for those items (I can remember which files they were), or how can I check the changes in the merge source against the base that was chosen, given that I don't know what the base chosen was?14:28
fullermdMaybe something with remerge?14:37
=== cprov is now known as cprov-lunch
VSpikefullermd: I was wondering that too, but didn't want to try it without knowing what it might do :)14:51
VSpikeI'm doing it manually and learning how bzr diff and bzr log work properly, so it's all good14:52
fullermdWell, it's unlikely to make demons fly out of your nose  ;)14:52
VSpikeau contraire :)14:52
VSpikehe14:52
* Peng strangles bzr.15:05
fullermdAck!  You squeeze all the vowels out!15:05
* Peng strangles rubygems too.15:07
PengI renamed foo/ to bar/. Bzr thinks everything in foo was removed and everything in bar is unknown. :(15:09
fullermdIsn't that what you'd expect?15:09
PengNoo.15:10
PengThe directory was renamed.15:10
datobut how would bzr know?15:10
PengAs in 'bzr mv'.15:10
fullermdWell, yeah.  But if you didn't tell bzr about it...15:10
PengYes I did.15:10
datoon, `bzr mv`?15:10
* fullermd blinks.15:11
PengWell, it wasn't done by 'bzr mv'15:11
PengBut I ran 'bzr mv' afterwards, and it does know about the rename.15:11
PengI think I give up.15:11
datomaybe you wanted `bzr mv --after`?15:11
Pengdato: I might've done that.15:11
LeoNerdOr just manually mv it back, then bzr mv it again15:11
fullermdDid you have the trailing slash on bar?15:11
LeoNerd"mv foo bar" oh oops I forgot; "mv bar foo; bzr mv foo bar"15:12
fullermdYah.  That can be simpler when you're dealing with dirs.15:12
Peng@_@15:12
PengOkay, I give up.15:14
PengHow do I bzr rm a directory that I've already rm -rfed?15:14
datobzr will mark it as deleted automaticcally15:14
fullermdI don't think you have to...15:14
PengOh, that's right. I forgot.15:14
PengHmm.15:14
PengI think something else is screwy.15:14
fullermdThis would be the week for it.15:15
PengOh, never mind. The something else was user error.15:15
PengForgot I was in a different directory.15:15
PengHmm.15:16
PengPart of this whole mess was probably user error because of that. Not all of it, though.15:16
=== cprov-lunch is now known as cprov
TeTeThow to remove the changes of a specific revision? I'd like to get rid of rev 83, but this doesn't work: bzr merge . --r-83..-8416:23
datobzr merge -r 83..8216:24
TeTeTsays nothing to do16:25
TeTeTdato: ah, thx, made a mistake!16:28
TeTeTdato: I tried 83..84 ...16:29
=== cfbolz_ is now known as cfbolz
gioelehello18:50
gioeleis it dangerous to have a directory /a managed as a tree by bzr and another directory /a/b/c managed as another tree by bzr?18:52
gioele(/a/b/c would be on the ignore list of /a)18:53
PengI don't think it's dangerous.18:53
james_wgioele: no that's fine.18:54
gioelethanks for the info19:13
=== cprov is now known as cprov-away
TeTeTi'm currently pushing a 93MB branch to LP, it's running since once hour and I don't see much progress, still at Fetch phase 0/419:28
TeTeThow can I check if anything is still happening?19:28
james_wTeTeT: ~/.bzr.log might have something19:29
TeTeTjames_w: states 'fetch up to rev {spindler@...}'19:31
TeTeTjames_w: and before that 'Using fetch logic to copy between KnitRepository(....)'19:31
james_wI thought it might say what it was doing as it worked, but it doesn't.19:32
TeTeTjames_w: just finished :)19:32
james_w\o/19:32
james_wTeTeT: did you ever get bzr-builddeb working for you?19:32
TeTeTjames_w: I honestly haven't tried, the packages I patched were not in bazaar anywhere19:33
TeTeTjames_w: but I'll give it a whirl on a package for training I'm supposed to do19:33
james_wthat's cool. I was being pretty useless trying to help you anyway, so I can't blame you.19:33
TeTeTyou were most helpful, it just took a while to figure out where the problem was19:35
james_wwell, if you need any help you know where to find me.19:37
TeTeTthanks for the offer :)19:37
lifeless'lo19:39
james_whi lifeless19:41
woeihmm, I've merged a branch, it added some revisions, great. How do I get the log message and the diff of the new (but not yet committed) revisions in chronological order ?. Something like svn log|diff -rBASE:HEAD.19:49
james_wwoei: if I understand what you mean 'bzr diff' should give you the diff. 'bzr status' will show a summary of each merged revision.19:50
james_wIf you want the full log then that is a bit harder, one easy way that might not work would be 'bzr missing --theirs-only .../otherbranch'19:51
dato.oO( bzr commit; poke; bzr uncommit ;)19:51
james_wThere will be a way to get the log with the log command, but my brain fails me once again.19:52
woeiI'm looking for something like gitk, where you can see the log and the diff of what happened at each commit19:52
woeibzr diff does give me the diff, but it gives me the diff of all the revisions I just merged19:52
woeiwhen getting revision 3, 4, 5, I'd like to see the log of rev.3, the patch of rev.3, the log of rev.4, patch of rev.4, etc.19:54
datowoei: after you've committed the merge, it's easy to do that with bzr log and bzr diff, or visually with `bzr viz` (from bzr-gtk)19:55
gioelewoei: maybe you're looking for bzr gtk (olive)19:55
datowoei: without committing the merge, I don't think you can, at least I wouldn't know how.19:56
woeiok, so I'd branch a working copy, merge from upstream, use a graphical tool to go over each patch, and then merge that pulled branch back to the real working copy19:56
james_wwoei: that would work.19:59
james_wwoei: there is a bug to allow you to access the merged revisions, but no-one has worked on it yet.19:59
woeihmm, and is there an easy way to refer to the revision prior to the last merge ? So bzr log and bzr diff only shows that interval ?19:59
james_walso bzr-gtk doesn't deal with merged in stuff at all.19:59
james_wwoei: the last merge in which direction?20:00
woeithe stuff I pulled from upstream20:00
woeiand then committed20:00
woeiprior to merging it back to the real working area20:00
james_wso you want to see the stuff that you did in your branch since the last time you merged from the other branch?20:01
woeiafter committing, bzr log does show the new revisions indented, but how do I tell it to show only those revisions with bzr log ?20:01
datowoei: try bzr log -r -120:01
datoit will show them still indented, but *only* them. if I understood correctly.20:02
woeino, I made a branch to merge in changes from upstream. I did a bzr merge. I'd like to see the log and patch for each commit. That's not possible (yet) on the command line. Okay, so I commit that merge (from upstream). How can I get just the log (and diff) from the point where I branched from my working copy (to receive new revisions from upstream), and the head of what's in the (now synchronized) branch ?20:03
woeidato: excellent, bzr log -r -1 does just that20:04
woeibut bzr diff -r -1 does not20:04
datofor the diff, bzr diff -c -1 will give you the whole diff20:04
AmanicAor bzr diff -r -2..-120:05
woeidato: ok, great20:05
james_wwoei: bzr-gtk will now be able to give you diff for each commit. For the command line you can use bzr diff -c x.y or bzr diff -c revid:xxx20:05
woeiok, I'm starting to get the picture on why I needed to commit20:06
datowoei: also, it's not strictly necessary that you make a separate branch and merge there; you could merge in your branch, commit, and if for some reason you don't like the result, do `bzr uncommit`20:08
woeiand that extra branch to receive new revisions is not really needed, if you use bzr commit; bzr viz; bzr uncommit20:08
woeidato: exactly :)20:08
dato:)20:08
woeiok, thanks all for pointers20:09
ubotuNew bug: #164567 in bzr "FTP push does not work without specifying password" [Undecided,New] https://launchpad.net/bugs/16456720:15
jelmerabentley: ping20:56
jelmerodd, I seem to be missing emails on bazaar@lists.canonical.com :-(21:00
keiris there a way use a GUI of some sort to go through a diff, and accept or reject chunks?21:40
lifelesskeir: at commit time ?21:45
keirso, what i have done, is checked in an external library into my tree, and made several changes21:46
keirbut now upstream has moved forward21:46
keirso what i've done is just copied upstream over top of my working tree21:46
keirwhen i do diff, my changes show up as -'d21:46
keiri want to revert just those chunks, then check in the changes21:46
lifelessdo you know of 'bzr shelve' ?21:46
=== Verterok_ is now known as Verterok
keiri thought that is just for uncommitted changes?21:47
keirin my case, i committed my changes ages ago21:47
lifelessthese are uncommitted changes :)21:47
lifelessyou have an uncommitted reversal of your change21:47
keiroh, i see21:47
keirnow, the slight problem, is that these changes are close in proximity to mine21:47
lifelessok21:48
datokeir: for some other time, why don't you apply the new version in a separate branch, and merge that?21:48
keirso in multiple places, the hunks show up as a single hunk, with an add and a remove21:48
lifelessheres a different and more scalable approach21:48
lifelessbranch -r <when you imported the code> upstream21:48
lifelesscd upstream21:48
keirah yes, i see21:48
lifelessunpack upstream stuff; bzr add; bzr commit21:48
lifelesscd your-branch21:48
lifelessbzr merge upstream21:48
keiryes, ok.21:48
keirwait, but i only want to merge the particular changes to the extern/ lib; not the other changes21:49
keirso isn't this a cherry pick?21:49
lifelessno21:49
lifelesswhat other changes will be in that branch than those to lib from upstrea?21:50
keirhmm21:50
keirsorry, thinko, i got it21:50
=== cfbolz is now known as verwirrt
keirdist vc is so nice :)21:54
keiri'm itching to implement the faster index layer... stupid RL21:59
lifelessyah21:59
lifelesssame21:59
lifeless:)21:59
keiran aside: why is it that bzr 'detects' deletions?22:00
lifelessthere is a bug22:00
keirrather than svn's behaviour22:00
lifelessit should be a flag like -A to automatically add and delete new paths22:00
lifelessand by default error on deletes22:00
keiryeah, i totally agree. though there is a case that it is the 'wrong' way to use a vc, i like in svn that if i do something silly, i can just delete and svn up22:01
keiri know that's what revert is for22:01
keiryet somehow i prefer delet and update22:01
lifelessits really very strange for me that svn update restores files rather than preserving your changes - its inconsistent.22:02
keiron a completely logical level, i agree22:03
keiryet somehow, i feel like the vc is my 'barrier against stupidity'... if i go and delete stuff, without informing bzr, i probably didn't mean it22:03
AfCAnd lord knows preserving the broken behaviour of previous generations of tools is not the primary goal around here22:03
fullermdOn the other hand, if I delete stuff, I do mean it...22:04
datofullermd: alias commit=commit -A ;)22:04
dato(when that exists)22:05
fullermdBut just because a file exists, doesn't mean I want to add it.22:05
keirfullermd, i feel the same way about deletes :)22:05
datoyeah, I'm not sure why lifeless mentioned additions for commit -A22:05
keirperhaps commit -D22:05
datoyeah22:05
keiror bzr delete --missing22:06
lifelessA for automatic22:06
lifelesscommit --automatic22:06
keirlifeless, but it may be the case that you want to delete missing files, but not add unversioned files22:06
lifelesskeir: so the question is22:07
lifelessis it worth having two flags22:07
lifelessthe main use case for commit --automatic is automated scripts22:08
keirlifeless, aah, i see22:08
lifelessbut bzr rm --missing/--gone etc is a good way to have the equivalent of 'bzr add'22:08
lifelessOTOH why not have 'bzr rm' do what bzr add does :)22:08
lifelessbut in reverse - rm everything that is not here22:09
keirlifeless, exactly, that's what i meant by bzr delete --missing. i guess there is no bzr delete. heh22:09
lifelessabentley: patch reviewed22:09
keirdoes bzr internally support a status which is 'file is missing from WT' without having the 'delete at commit' bit set?22:10
fullermdI don't think the delete bit is set until commit runs.22:11
keirso status just shows it as a pending delete?22:11
fullermdYah.  Put a file back on that name, and it'll just show up changed (or unchanged, if the file's the same).22:11
keirbut it would involve extending WT model to allow a new 'state' for deleted files which is missing, but not deleted?22:12
fullermdYou lost me...22:12
keiri'm trying to think of how hard it is to implement the following:22:13
keir1) deleting a file in local repo does not mean it will be deleted at commit22:13
keir2) files which are to be deleted must be explicitcly bzr rm'd22:13
keir3) bzr st supports showing either explicitly deleted, or missing but not deleted, states22:14
keir4) bzr rm --missing does what you expect22:14
keiri don't know anything about the WT's data model so that's why i'm asking these qns22:15
fullermdI imagine 1/2 are just changes in commit, and 3 is just a change in status.  The file isn't _deleted_, as putting it back will show.  It just says it's deleted.22:15
keirthis would make rm consistent with add22:16
keirwould a patch to do this be rejected immediately because it changes behaviour?22:17
fullermdRejected?  Doubt it.  But it probably calls for a list discussion.22:17
keiralrighty.22:18
lifelesskeir: 1) I would not like unless you mean 'will error at commit'; 2) would be good as long as there is an option for ocommit to get deletes back. 3) is already done I thought, 4) would be nice22:27
lifelessI'd send an RFC, get some consensus, then patch22:27
lifelessthere is a bug already as I mentioned22:27
lifelessabentley: ping, is there a inventory delta to iter_changes adapter around somewhere ?22:34
lifelessabentley: I'd like to make bzr-email use the inventory delta generated by commit22:35
cbx33hi guys22:40
cbx33I've been happily push changes to my branch on LP22:41
keirlifeless, ok. i'll probably wait.. realistically, if i'm going to do bzr hacking i should write the index layer22:41
cbx33today I merged with someone, did some chages, pushed them successfuly, did some more changes....now I get an error that the branch has DIVERGED?22:41
cbx33what is going on?22:41
cbx33it suggests trying a merge then a push22:42
cbx33but who do i merge with....my own older branch?22:42
cbx33it doesnt make sense22:42
lifelesscbx33: did you do the second set of changes in your branch ?22:43
cbx33yes22:43
lifelesswhat command gives you the error ?22:43
cbx33bzr push22:43
* fullermd suggests checking 'missing'.22:43
cbx33it committed fine22:43
lifelesscbx33: as fullermd says, what does 'bzr missing URLYOUPUSHTO' do ?22:45
cbx33i was missing a merge22:45
cbx33with myself22:45
cbx33ok fixed22:45
cbx33but not sure why;)22:46
lifelessdid you push there from more than one place ?22:46
cbx33hmmm22:46
cbx33possibly22:46
cbx33yes that may have been it22:46
cbx33thanks lifeless22:46
igcmorning all22:56
lifelesshi22:57
pooliehi22:58
pooliecall in 2m?22:58
igcyes22:58
poolielifeless, igc: ping23:00
abentleylifeless: I don't think we have an adaptor like that.23:04
abentleyjelmer: pong23:06
lifelessabentley: ok23:12

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