ScottK | I have a local bzr branch that has a number of files and directories in it. I would like to export a single file (which has been renamed, if it matters) with the history of just that file into a new bzr repository. Is that possible/how do I do it? | 01:39 |
---|---|---|
bob2 | split, I guess | 02:17 |
bob2 | or bzr-rewrite | 02:17 |
bob2 | (or not bother, and just put the file in a new repo) | 02:17 |
fullermd | split is just a shortcut to rm'ing everything else and committing. | 02:19 |
fullermd | You can't move just one file's history, because there isn't any such thing. Files don't have history; history has files. | 02:19 |
fullermd | With something like rewrite, you could in concept create a new history with just that one file in it that looks a lot like the existing one; whether the tool makes that practical, I have no idea. | 02:19 |
ScottK | OK, put it differently, can I rewrite the history to remove everything else? | 02:37 |
ScottK | Keeping the history is important because bzr blame has saved my behind more than once already. | 02:37 |
fullermd | Yeah, that's what you'd have to do; create a new history that looks pretty much like the existing history of the file. | 03:22 |
fullermd | Sorta a (foreach `bzr log $FILE`; set contents ; commit with same log/committer/date) process. | 03:23 |
fullermd | Which is conceptually in rewrite's domain. Whether such a thing is actually implemented there, I don't know. | 03:23 |
mnn | hi... it seems that there's a bug in bzr log | 17:56 |
mnn | I merged stable branch into trunk, and the tag on the last revision in stable branch is not shown in bzr log -r <rev_with_merge> -n0 | 17:57 |
mnn | however when I want to add it in Bazaar Explorer, it says that the tag already exists and asks me if I want to move it | 17:57 |
mnn | * I run bzr log -r <rev_with_merge> -n0 in trunk of course | 17:58 |
=== herb is now known as herb__ | ||
=== herb__ is now known as herb | ||
mnn | oh no... I wasn't able to reproduce it on new branch :( | 18:06 |
mnn | does anybody know what could cause this behaviour? | 18:14 |
=== r0bby is now known as robbyoconnor |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!