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

ldurosso basically I did: bzr import firefox-12.0.tar.bz2 upstream00:04
ldurosthen bzr commit -m'ff12'00:05
ldurosthen bzr import firefox-13.0.tar.bz2 upstream00:05
ldurosbzr commit -m'ff13'00:05
ldurosthen in my other (previously existing branch), I do: bzr merge upstream00:05
ldurosdoes this make all sense?00:06
lduroslooks like the two imports worked00:06
ldurosbut since my own branch is not related to upstream in any kind, since I created it beforehand, I get this when trying to merge:00:07
ldurosbzr: ERROR: Branches have no common ancestor, and no merge base revision was specified.00:07
ldurosso base revision I should probably put 100:08
ldurosi guess00:08
ldurossince a commit in my branch corresponds to Firefox 1200:08
AfClduros: so before you figure out how to fix this,00:09
ldurosAfC: ?00:09
AfClduros: I assume you recognize that if you had *started* with the imports and *then* created your own working branch(es) they would have had said common ancestor and all this would be Just Working™00:10
ldurosyes i know but I started that a while ago00:10
AfCsure00:10
ldurosmy own branch, I mean00:10
AfCjust setting the scene here00:10
AfClots of people don't realize that part00:10
ldurosyes, in retrospect I should have done it00:10
lduros:-)00:10
AfCnow we just need to fix the scenario you've found yourself in00:10
AfClduros: rude question: how much history do you have on your working branch?00:11
lduros112 revisions, not that bad I guess00:11
AfClduros: a lot? only one or two00:11
ldurosI could probably just apply a patch00:11
AfCNo, that's a lot00:11
ldurosand forget about it00:11
AfCso you're not going to want to throw that away.00:11
AfC(sure, you could throw it away, but why should you have to?)00:12
lduroswell, I don't know, if it's easier I could00:12
AfCat this point, as far as I know, you have two options00:12
ldurosok00:12
AfClduros: (it's *certainly* easier)00:12
ldurosok00:12
fullermdI don't see how...00:12
ldurosso what if I do this:00:12
AfClduros: but it's also Wrong and the one thing that Bazaar has going for it over the other DVCSen is that it acts correctly.00:12
lduroshmm, not sure how to interpret this00:13
AfCfullermd: (because just dumping his current tree onto the upstream import will create a single delta that he can commit and then we can all move on and go drink coffee. Easier. More to the point, easier than:)00:13
AfClduros: at this point, as far as I know, you have two options:00:13
AfC1) use bzr rebase00:14
ldurosok00:14
AfC2) use some magic merge that gets around the common ancestor problem.00:14
ldurosthe magic merge seems tricky00:14
fullermdI think it's way easier than either of those two.00:14
AfCI have a feeling that (2) exists, but I don't know the syntax :(00:14
fullermdYou started with FF 12 and then made a pile of changes on top, neh?00:14
AfCfullermd: if you've got (3) please, speak up00:14
ldurosand also I added the upstream files with a non-empty branch already00:14
ldurosmeaning I had files in there00:14
lduroshah00:14
ldurosyeh, so maybe i'll try to take the current version I have (which is IceCat 12)00:15
AfCfullermd: right, so how can he merge a branch with 112 revisions from scratch (and some monster revision as #1 I bet) starting onto a branch with 2 imports of two versions of upstream?00:15
ldurosTake IceCat 12 and take Firefox 12, make a patch using diff00:15
fullermdOh, that wasn't what I read from your descriptions.  That does make it harder.00:15
ldurosthen create an upstream branch, import FF1200:16
fullermdWell, in my mind his r1 was already upstream 12, so he could just make a 'new' branch from that to use as the upstream.  Put 13 on that, then merge it in; done.00:16
ldurosfullermd: it was more like r41 which was upstream 12 + custom stuff00:17
ldurosso it's really a tangled mess00:17
lduros:-)00:17
ldurosI'm willing to just keep it as an archive branch00:17
fullermdIs your custom stuff off on the side, or all intertwined in the existing files?00:17
ldurosmostly on the side I guess00:18
ldurosbut some might be intertwined, not much00:18
ldurosbut I'm a bit lazy also00:18
lduros:-)00:18
ldurosand maybe sometimes it's better to start clean00:18
fullermdIf you can isolate the changes in the existing files into a few small bits, you may be able to create a pure upstream 12 branch, dump the 'old' files you have and merge that in place, put your changes back into them, then go on with later version merges.00:18
ldurosok00:18
fullermdThat would save all the history in your other files, and have the original versions of your changes sitting in the history too.00:19
fullermdIt would bloat up your repo with a giant delete and a giant add though.00:19
fullermdAnd of course the "same" files wouldn't be related to each other historically.00:19
lduroshaha00:19
ldurosright00:19
ldurosalright, let me try00:20
fullermdThe latter is suboptimal ugliness that can be considered historical archive.  The former is some level of added size burden you'd carry forever; whether it's significant I don't know.00:20
fullermdI have vague memories that the groupcompress format will compress content across file identities, in which case it may not be a big bump.00:21
ldurosyeh, I'm not sure, what I want to make sure is that all my custom changes are there00:21
fullermdBut if it doesn't, it would be.00:21
AfCI'd judge the real question to be whether or not you will be continuing to track upstream. If so, then it's worth getting on to a workflow based on their releases, rather than your original tree.00:21
ldurosyes sure i'll keep tracking upstream00:21
AfCotherwise, it's not entirely clear what the goal is00:21
fullermdDefinitely.  Doing a 12->13 merge up manually would suck.  Having a 14 and 15 and 16 after that too would be nightmarish.00:21
ldurosright00:21
fullermd(and anyway, it's FF, so you'd have to do one of those, what, every 36 hours or something, when they make a new major release?)00:21
lduros:-P00:22
ldurosalright, I'll experiment a bit, look again at these advice00:22
ldurosand try to get somewhere :-]00:22
=== AfC is now known as AfC|gym
fullermdYeah.  I'd probably experiment a bit with two or three options, see which seems to work best.00:23
ldurosyeh00:24
ldurosthanks much00:25
lduros:-)00:25
=== r0bby_ is now known as robbyoconnor
=== wgrant_ is now known as wgrant
mgzmorning08:09
fullermdNo, I don't think I'll allow that.08:11
mgzit has been decreed.08:14
fullermdWell, recreed it.08:14
rhitierhi. I've commited many times before discovering my whoami was wrong. Can I edit the "committer" of previous commits ?09:33
mgrandidont think so unless you use one of those rabasing things that basically create new commits09:34
rhitier"rabasing thing" ?09:34
mgrandirebasing*09:36
mgrandii dont know much about how bzr does it, basically edits the history im guessing09:36
LeoNerdIt's a form of history rewriting09:37
LeoNerdIt's rather rude on anyone else who's seen the branch, but if it's a private one currently with no chance anyone else has seen it it should be fine09:37
rhitiermgrandi, LeoNerd : thanks, I'll try that as it is a private before sending.09:40
jelmerbzr rebase isn't particularly useful in that regard09:41
mgzwhat is the easiest way of replaying history? export then import?09:44
jelmerI think so, or shelve + uncommitt09:47
rhitierwhen I merge a contributor's patch, do I imports all its commits history ?09:49
jelmerrhitier: if it's a bundle, yes09:50
mgzor if you're merging a branch, anything using merge before commit basically09:50
rhitierisnt bundle naturally created with bzr send ?09:51
jelmerrhitier: yes09:52
rhitierok. I merged. Should I commit before being able to see history logs of applied patch ?09:53
jelmerrhitier: yep, or you can use e.g. qlog09:53
rhitierI created a branch. I merged the patch. And now the log shows a "Pending Merges". After a commit, contributor's commits appear as a branche of my latest commit. Is that it ?09:58
rhitier(with strange rew numbers, like 50.1.2 )09:59
mgzrhitier: roughly10:02
rhitierthanks all. I go on branching/hacking ;-)10:03
jamjelmer: ping, I think I need a refresher on getting and building source debs13:22
jelmerjam: sure13:26
jelmermumble?13:27
jamjelmer: sounds good13:27
=== zyga is now known as zyga-food
=== zyga-food is now known as zyga
=== zyga_ is now known as zyga
cedeonHi guys.  Can anyone help me , i need to merge two branches which the data is absolutely identical yet for reasons that blow my mind bzr wont merge as it says it doesn't share a common ancestory.  Is there any simple way of doing this without it generating a whole bunch of .moved files in the process?22:00
jelmercedeon: the branches aren't related as far as bzr is concerned22:10
jelmercedeon: the files would all have different unique file identifiers22:10
jelmeryou can see this by running "bzr ls --show-ids" in the two branches22:11
cedeonso its not like git where they have the file contents hashed?22:11
cedeonis there anyway to force copy they file identifiers?22:12
cedeonfrom one branch to the other?22:12
jelmercedeon: when you add a file, you can use "bzr add --file-ids-from <otherbranch>" to make it use the same file ids22:17
cedeoncool thanks , i'll give that a try22:18
bob2I don't think git works the way you think it does either22:50
bob2oh heh22:53
bob2don't quite understand how it works, the branches have no ca22:54
cedeonwell maybe im going about this the wrong way.. i cant 'add' because i have a lot of history on my branch... basically i have a situation where i have 31 revisions and some guy gave me a bzr repo with six revisions and different file ids.  I KNOW that my revision 30 equals his revision 0 yet i cant figure out how to merge these together22:58
cedeonit just seems like this sort of thing should be simple22:59
bob2nah22:59
bob2you can bzr-rewrite his on top of yours though23:00
cedeoni can rollback to rev 30 so im at the stage where the file bits are identicle23:00
bob2how did all the fileids get lost23:00
cedeoni dunno i guess he made a new repo from my files and didn't use my repo23:00
cedeonhow do i rewrite his on top of mine?23:01
cedeoni tried merging his and then deleting all the .moved files.. committing but then i have his file ids so i cant merge my 31 back23:02
jelmercedeon: still there?23:13
jelmercedeon: I would:23:13
cedeonyeah im here23:13
jelmer1) create a copy of the branch at the point where the histories are still shared23:13
cedeoncheck :)23:13
jelmer2) sync his files over the new copy23:13
jelmer3) "bzr add --file-ids-from YOURBRANCH"23:13
cedeonoh wait, they have no shared history if you mean bzr history23:13
jelmer4) remove files that weren't present in his branch23:13
jelmercedeon: in that case, start with an empty branch23:14
jelmeror actually, revision 30 you were referring to earlier23:14
jelmer(but revision 30 from your branch)23:14
cedeonyeah i've rolled back to rev 3023:14
cedeonok i think i get you23:15

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