/srv/irclogs.ubuntu.com/2012/10/11/#bzr.txt

mgrandianyone here? :>04:58
mgrandineed help with merging =(05:03
fullermdVaseline and a crowbar?05:06
mgrandihaha05:07
mgrandiso say we have a branch05:08
mgrandiand then we have newer version of code that we want to merge into this branch05:08
mgrandibut how can we make bzr merge this newer version into the branch? apparently bzr can't do it because the file ids are different in the 'new' code05:09
mgrandiso it just moves the old code to .moved and puts the new stuff in place05:09
bob2why did you do that05:09
mgrandiits 'generated' code05:10
mgrandiwell thats why im asking on how to do it since that isn't working =P05:10
bob2fix your system05:10
bob2so the ids match05:10
fullermdIf the file-id's are different, you're out of luck.  Your choices turn into "remake things so they're the same", "pick one over the other", or "take up cobbling"05:11
mgrandiso there is no way to do it if the ids don't match at the moment?05:11
mgrandihmm.05:11
fullermdIf both branches have nontrivial history, remaking becomes a lot harder.  If they're out in the wild, that verges well into impractical.05:11
bob2fix your things05:11
mgrandiwell its crappy cause its not our code, we are decompiling it05:12
bob2you should have used bzr-load-dirs or similar to get the vendor code in05:12
fullermdIn the wild, one-over-another becomes pretty impractical too, unless you can coordinate the universe.05:12
mgrandiand we are trying to fix it05:12
bob2how did you even make this happen05:12
mgrandiwhat is bzr load dirs?05:12
bob2the thing that you google05:12
bob2did you "bzr rm -r * ; SPLOOSH RANDOM FILES EVERYWHERE ; bzr add . ; bzr commit -m 'teh import'"?05:13
mgrandiwe decompiled the code, and started versioning / editing that05:13
mgrandionly reference i to see about bzr-load-dirs is from you in 2009 o.o05:14
bob2no idea how you got the code into bzr05:15
bob2but even "bzr branch whocares ; SPLOOSH FILES ; bzr add ; bzr commit -m'update import'" mostly works05:15
mgrandibut git-load-dirs looks like what we want, but i dunno where the bzr version is05:15
fullermdYou could transistion stuff into git, do merges, then pull it back into bzr.  But that's a long way around to the "pick one over the other" case too; one of the branches would have to be dead afterward.05:16
bob2what commands did you run05:16
fullermd(or perhaps it's more of a "pick a third over each", and both branches dead afterward)05:16
bob2I can only see you being in this situation if you did a "bzr rm theworld"05:16
bob2is that what happened?05:17
mgrandii mean we haven't commited anything yet, we just got to the 'pending merge' etc05:17
bob2yes you have05:18
bob2you did something to your vendor branch05:18
bob2what did you do?05:18
mgrandijust tried putting the newly decompiled code into a new branch and tried to merge that into the stuff we were walking on05:18
bob2yes a new branch obviously won't work05:18
bob2clone the previous dump05:18
mgrandithere wasn'ta  vendor branch yet, thats what we are going to add soon, which is probably the problem05:18
bob2sploosh your new source tree all over it05:18
bob2bzr add .05:18
fullermdIt's not hard in concept to remake a history with arbitrary id's.  I don't know if anybody's written an automated process for it, and the hard part is it means you have to throw away and forget completely the "old" version, which is hard in an open-source world (easier, though not necessarily easy, in a closed env)05:19
bob2bah05:20
bob2that's insane05:20
bob2full solution:05:20
bob2clone previous dump of crap05:20
bob2mkdir ../keep05:21
bob2mv .bzr* ../keep05:21
bob2rm -r *05:21
bob2mv ../keep/.b* .05:21
bob2sploosh new pile of code into current dir05:21
bob2bzr add .05:21
bob2bzr commit -m "update to SOME VERSION IDENTIFIER OF THIS THING"05:21
bob2then you're done05:21
fullermdWhat previous dump?  The world is full of real cases of parallel imports.  You're kinda flirting with the line between "amusing" and "insulting"...05:22
fullermdIf there's no history on one side or the other, it's easy.  If there is, life gets a lot harder.05:22
bob2?05:22
bob2I'm 99% sure mgrandi is saying "we get dumps of some binary crap from some people on a regular basis, then decompile it, and we'd like each version to be in bzr"05:23
mgrandiyeah05:23
bob2which the above works for05:23
fullermdI read it more as "we've got two different sets of working on the same dumps that started independently, and now we're trying to combine them"05:24
fullermd(FSVO "same")05:24
mgrandiits the "vendor branches" concept pretty much, looking into whatever_load_dirs scripts that bob2 referenced05:25
bob2all bzr-load-dirs does is the above05:26
bob2the above is the complete set of steps required05:26
mgrandido you have a link to that? i cannot find that on google05:26
mgrandionly svn/git/tla load-dirs05:26
bob2nope05:27
bob2but seriously, it's 10 commands to run05:27
mgrandiok05:31
jelmerhi08:14
mgrandihi08:18
mgzmorning08:29
=== mmrazik is now known as mmrazik|lunch
=== mmrazik|lunch is now known as mmrazik
=== yofel_ is now known as yofel
=== deryck is now known as deryck[lunch]
=== deryck[lunch] is now known as deryck
foobazWhat's the best way to include external dependencies in a bzr project? (e.g. like svn:externals)19:23
foobazI'm presently scripting bzr checkout...19:24
foobazmaybe there's a better way.  Thanks.19:25
jelmerfoobaz: there's bzr-externals, or bzr-scmproj I guess19:27
foobazjelmer: thanks!  I'm evaluating those two20:29
tbfam i just biased, or does "bzr merge" sometimes just overwrite local changes instead of creating conflicts?20:30
tbfno. i just caught that guy20:33
tbfhave a merge commit where bzr cleary overwrote a local change20:33
tbfjunk scm20:33
lifelesstbf: by local change, do you mean uncommitted change, or change only on your branch ?20:36
tbflifeless, a change commited to a local branch20:37
lifelesstbf: the former should conflict unless identical to incoming changes; the latter likewise, but if someone has merged you, then reverted that change, and then you merge them, the change will go away.20:37
tbflifeless, ok. checking commit history20:37
tbf(and i please want git style rebasing)20:38
tbflifeless, no. there is only once commit where a team mate change the line above the lost line20:41
tbfbranching the current state for backup, uncommiting, redoing the merge20:42
tbfdouble checking i didn't do a mistake20:42
tbfok. it's late and i am overworked.20:46
tbf...and biased.20:46
fullermdENOTENOUGHCOFFEE   8-}20:46
tbflifeless, sorry for confusion.20:46
tbffullermd :-)20:46
lifelesstbf: np20:46
=== lifeless_ is now known as lifeless

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