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

jelmerchandlerc, do you use any fancy compiler flags on Gentoo?00:06
ferringbI'm getting a revision_id from a file w/in a branch that isn't in said branches revision_history()... I'm assuming this is a submerge of some sort, but how should I go about tracing it back to a rev in the branches revision_history?00:26
chandlerc[g]jelmer: not really00:28
chandlerc[g]jelmer: -O3 -fomit-frame-pointer.. i really only aim for inlining and reducing register pressure00:29
chandlerc[g]jelmer: and bzr-svn is compiled with nothing, and lots of debugging, i don't install it via gentoo tools00:30
jelmerchandlerc[g], what about the compile flags for python itself?00:42
chandlerc[g]i reproduced it with a hand built, debugging enabled python00:47
chandlerc[g]was still using the system installed subversion libs and bindings tho00:48
teratornI repository A, which has been in use for a long time. Now recently I've created repository B to hold some related work, and I've committed many revisions to it. I would like to import repo B in to a sub-directory of repo A, including all revision history.. is this possible?02:06
teratorn*I have02:06
bob2sure02:10
teratornbob2: OK, how? :)02:12
bob2cd A/somewhere ; for branch in `bzr branches ~/B` ; bzr branch ~/B/$branch $branch ; done02:13
bob2but that breaks for  branches in nested dirs - I think you'd need to use push --create-prefix02:13
bob2cd ~/b ; for branch in $(bzr branches) ; do (cd $branch ; echo bzr --create-prefix push ~/a/somewhere/$branch) ; done02:15
teratornbob2: thanks, I'll experiment02:16
bob2repo-push would be ideal. but I don't think it can push into a subdir of a repository02:16
fullermdWell, I would read the question as asking rather about merge...02:17
teratornbob2: "bzr branches" just prints a single newline when run on either of my repos02:37
teratornbob2: and besides.. I don't wish to have a separate branch existing within a subdirectory of another branch... I wish to merge revisions from repo B in to A, except I want the files in repo B to appear inside a subdir of repo A02:38
teratornI'm going to delete repo B once this is done02:39
bob2I think we're conflating branches and repositories02:39
teratornok, probably so :)02:39
bob2in bzr, repositories are just places where branches live and share storage.  you can not ever use a repository, and it'll only cost you some disk (and maybe bandwidth).02:41
teratornok02:42
bob2are A and B branches (ie contain files you've commited etc)?02:42
teratornyes02:42
teratornso yeah, I was using the wrong terminology02:43
bob2are A and B related at all (ie is one a branch of the other)?02:45
teratornno02:45
teratornbut I've decided that the content is logically related, and so I've decided to merge the branches02:45
teratorns/merge/combine/02:46
teratornand I have no idea what that means in terms of BZR02:46
bob2I think the trick would be: (in B) "bzr mkdir subdirwhereyouwantthefilestoappearinA ; bzr mv * subdirwhereyouwantthefilestoappearinA" (in A) "bzr merge -r0..-1 ../b ; bzr commit -m 'merge in B.'"02:47
bob2er, commiting in B after the mv02:47
bob2fullermd: right?02:47
teratornsounds like we're getting there... the thought that I would have to "mirror" the directory structure occured to me02:48
bob2(you could do the mv after the merge, but it'd be fiddler if any of the names collided)02:48
fullermdPretty much, yeah.  With rich roots, 'bzr join' should be able to automate some of that.  Ditto for the 'merge-into' plugin.  But it's not that hard to do it manually.02:51
fullermd(don't forget to commit after the mv in B before you merge)02:51
teratornbob2: OK, well yes what you suggested did work.02:53
teratornlooking at 'bzr log' in A it seems that all the revisions from B are now sub-revisions of the revision I committed to A after merging02:53
teratornand I suppose when I push to SVN it will only go through as a single commit02:53
teratornso Trac won't have my actual history...02:54
teratornis this always how bzr merges work?02:54
fullermdWell, when you try and shove it into a round hole like SVN...  ;)02:55
=== sdboyer is now known as sdboyer|zzz
=== beaumonta is now known as abeaumont
dereinehow can i rename files?13:36
james_wdereine: is "bzr mv" what you are after?13:39
dereinethx i tought mv would be do easy ^^13:43
=== fta_ is now known as fta
=== lamont` is now known as lamont
=== sdboyer|zzz is now known as sdboyer
lifelessspiv: call?23:02
spivlifeless: sure.  I'm on skype if you want to use that.23:02
lifelessits trying ...23:03
lifelessfooding23:07
poolielifeless, spiv, anyhow today i was going to finish setting up kerguelen to the point it can at least manually build correct packages23:32
poolieand then do 1.8final and 1.8rc123:32
arjenAUpoolie: morning! hey quick q... I did mv of a version controlled file (without bzr mv), then mistakenly did bzr commit but aborted it, renamed back, then bzr mv but then bzr says it's not under revision control. I think that something does get committed at least as far as the live state is concerned?23:33
arjenAUI can run through it in a fake repo to reproduce ... this is 1.7 I think23:33
poolieif you can write a reproduction script that would be good23:34
arjenAUon it. no worries.23:34
lifelesspoolie: cool23:34
pooliewhen you say "aborted" do you mean you uncommitted, or you pressed ^C during the commit?23:34
lifelesspoolie: I'm working on  fetching inventories faster23:34
poolieif the latter, it's possible that you caught it after the workingtree was updated but before the branch was updated23:35
pooliesince it is not precisely atomic across those objects23:35
poolielifeless: and doing something on usertest? writing more scripts?23:35
poolielifeless: btw i looked yesterday and orcadas was still running the same job23:35
arjenAUand we have a hit. ok wraping up the script23:35
pooliesince it runs bzr branch several times23:35
poolieyou can reproduce it?23:38
arjenAUpoolie: https://bugs.launchpad.net/bzr/+bug/28240223:41
ubottuLaunchpad bug 282402 in bzr "bzr losing track of file in aborted commit of rename" [Undecided,New]23:41
arjenAUye that ;-)23:41
* arjenAU forgot about the bot23:41
lifelesspoolie: no, I mentioned usertest to andrew in the context of 'usertest is still fetching'23:41
poolieis that meant to be an 'uncommit'?23:41
arjenAUnop23:42
lifelesspoolie: it only clones the full repo once23:42
pooliearjenAU: ??23:42
poolie# abort the following commit, because we realise we should've done the rename through bzr23:42
pooliebzr commit23:42
pooliewhat does that mean?23:42
arjenAUpoolie: exit out of the changelog editor without saving, so it does not commit23:42
poolieoh i see23:43
arjenAUexcept SOMETHING is stored anyway...23:43
arjenAUyea. and veyr common possibly, it's so easy for the fingers to type mv and late realise that it was wrong - you realise when you see the changelog in commit, so you back out, ....blahdiblah and there you are, a murdered history23:43
arjenAUI haven't tracked what is actually mucked up where, but since you guys will fix this I won't bother ;)23:44
poolie:)23:44
lifelessarjenAU: so you've done 'mv foo bar'23:44
* arjenAU hugs all bzr devs - great work everybody, thanks! sooooo easy. kinda feels like bk when I first got to use it years ago23:45
pooliei answered it23:45
lifelessarjenAU: and "bzr commit -m ''" loses the fact foo existed23:45
lifeless?23:45
lifelessI bet its the implicit delete code23:45
poolieyes, it is23:45
lifeless6ok cool23:46
arjenAUnever use -m23:46
lifeless-> repository code23:46
poolielifeless: i remember you have an opinion about that but i can't remember which way it points :)23:46
poolieagainst or in favor of implicit delete?23:46
lifelesspoolie: I want auto-add and auto-delete in commit, for symettry23:46
lifelesspoolie: I wrote a patch to do auto-add in commit, it was .. contentious23:46
poolieok23:47
arjenAUoh hmm... well commit doesn't auto-add things, so I don't want it to auto-rm things either23:47
lifelessbut yeah, I'm fine with the functionality23:47
pooliei agree they should be symmetrical but i suspect it should default off23:47
arjenAUbut it should be either or none23:47
arjenAUyou know you could make it even more nifty23:47
lifelesspoolie: the thread is there on the list :>23:47
arjenAUif a file vanishes, grab a hash of the alst revision and see if any of thenew files is the same?23:48
arjenAUsuggesting a rename!23:48
arjenAUwon't work if it was also edited, but...23:48
pooliei think there's a bzr-autorename plugin that does this?23:48
arjenAUplugins, plugins...23:48
lifelesspoolie: I'm really quite happy with the behaviour of 'bzr rm' now23:50
lifelesspoolie: I'm thinking of going back to it and removing some of the extra knobs23:50
arjenAUok so anyway you guys have an angle on what's going on. that's good, then I can move on and see the update soon!23:51
lifelessarjenAU: you do know you can 'bzr revert foo' too, to restore bzr's tracking of it after it was renamed23:52
arjenAUlifeless: so it's kinda half committed?23:52
arjenAUlifeless: I'm just trying to get my head round what bzr is thinking there23:52
lifelessarjenAU: no; the commit is writing an update to the staging area23:52
lifelessarjenAU: there is a thing called dirstate that lists what is versioned in your current tree23:53
arjenAUye, so autoremoves shouldn't be written there before the commi is confirmed, then eh?23:53
lifelessarjenAU: commit has two major tasks: to add a new revision to the repository, and to update the dirstate to record what was committed so it doesn't show as changed anymore23:53
lifelessarjenAU: and its just unlocking rather than rolling back the change to the dirstate23:54
arjenAUgotcha. so it's kinda half committed23:54
lifelessarjenAU: so its precisely equivalent to 'mv foo bar' && 'bzr rm'23:54
arjenAUye ok. so with bzr revert I can undestroy my world. but you're going to fix it anyway ;-)23:54
lifelessarjenAU: to restore the data for 'foo', you can do 'bzr revert foo'  (which will restore the dirstate entry) and then 'mv bar foo'23:55
arjenAUfoo bar. yea23:55
lifelessoh sure, its a bug, but its kinda cosmetic compared to some of the performance and functionality stuff23:55
arjenAUlifeless: dude this is serious, I keep tripping over it23:55
lifeless(no, bar foo, to put your copy of bar back)23:55
MattCampbellDoes bzr work with Python 2.6 yet?23:55
lifelessMattCampbell: there is a patch, I don't know if its landed yet23:55
poolieMattCampbell: it is landed, it should work in 1.8rc123:56
pooliebug reports welcome23:57
jonoxerHi ppl! After all the assistance on Friday to reset the svn hard-wiring in my brain I'm back with another question. One that will make ArjenAU very happy23:57
jonoxerI've successfully switched a few svn repos to bzr by doing something like: "bzr branch file:///home/jon/temp/svn/blah blah" (with the bzr-svn plugin installed)23:58
arjenAUjonoxer: go for it, grasshopper. your world will be better23:58
jonoxerBut it runs out of memory about 3 hours and 11,000 commits into converting a 21,000 commit, 4.4G repo23:58
jonoxerI get a traceback from bzr23:58
jonoxerThis is on a machine with 2G RAM, 4G swap, and it doesn't ever fill the swap23:59
lifelessjonoxer: well, whats the traceback23:59
jonoxerIs there any recommended way to convert a large repo?23:59
jonoxerlifeless: I'll pastebin it, gimme a sec...23:59

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