/srv/irclogs.ubuntu.com/2018/04/03/#bzr.txt

gourmorning07:04
gourdo you consider that brz-git is beta now?07:04
jelmerHi gour09:22
jelmerI'm not sure, what does that mean?09:23
gourjelmer: well is it ready to recommend it (as beta) to some users forcing to use git and would be more pleased witz brz09:52
jelmergour: I'm not sure; the software is stable, but things are still changing a lot and you need to keep your brz/brz-git/dulwich synced or things may not work because of API incompatibilities10:06
gourjelmer: ok, i'll wait a bit and using it personally before further recommendation10:19
jelmergour: it should be okay to use, but there will be annoying API incompatibilities issues until breezy hits 3.0 beta11:21
gourjelmer: ok, i got it ;)11:37
LeoNerdHrm... Migrating some commits of a project from bzr to git. Options? I see  `bzr fast-export | git fast-import`  but that appears to be for entire history12:53
LeoNerdI made my bzr branch as a snapshot of current master out of git, made some commits, and now I want to apply those same changes into git12:54
LeoNerdSo my next thought was: checkout from git, cd into it, and use `bzr replay ../path/to/bzr/version` to replay individual commits. That gets upset too:  bzr: ERROR: Push is not yet supported for bzr-git. Try dpush instead.12:55
LeoNerdI don't want it to push. Just to apply12:55
* LeoNerd decides to write a script to do it commit by commit13:07
jelmerLeoNerd: hi13:09
LeoNerdHello13:09
jelmerLeoNerd: probably the thing that comes closest is to use bzr to generate git-am style patches and apply those with 'git apply'13:10
LeoNerdYes. But I couldn't work out how to do that13:10
jelmerif you have bzr-git installed, I believe it's "bzr send --format=git -o dir -r-10"13:11
LeoNerdAh,.. there's a --format option13:12
LeoNerdbzr: ERROR: No submit branch known or specified13:12
jelmeryou can probably just specify the local branch if you specify a range13:14
LeoNerdHrm... it mkdired 'dir' but that's now empty13:14
LeoNerd$ bzr send --format=git -r 2.. -o dir ../Net-Async-SOCKS+bzr1/13:15
LeoNerdbzr: ERROR: exceptions.TypeError: from_trees_options() takes exactly 10 arguments (9 given)13:15
LeoNerdWell that's fun too :)13:16
LeoNerdOoooh this is so close.  bzr log -p  outputs a metadata header + patch. I can almost pipe that into  git apply  except for the fact that git expects file paths to begin with  a/  and  b/13:27
LeoNerdIt doesn't look like there's arguments to bzr log -p to prepend those, nor git apply to not expect them13:27
LeoNerdOh humm... it seems my entire endevour might be for naught :/ turns out what I thought was a clean snapshot of master, wasn't. :/ so I have some spurious other differences to fix up first13:31
mgzhm, the diff arg to set prefixes is amusingly also -p13:32
LeoNerdYes... So I can get it from  bzr diff -pa/:b/13:32
LeoNerdI'll just run two commands, a bzr log without -p to get the metadata, plus bzr diff to get the patch13:33
fullermd_Almost makes one wonder if tailor still works   :)13:36
gourfullermd_: i believe it does not, based on the chat with its author some time (months) ago13:49
fullermd_Wouldn't be surprised.  It was always a neat but finicky hack.14:24
fullermd_Not sure I ever succeeded in using it to really do anything nontrivial, even when it was active.14:25
=== gour_ is now known as gour

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