2008/11/27 Maciej Katafiasz <span dir="ltr"><<a href="mailto:mathrick@gmail.com">mathrick@gmail.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I'm looking for a solution to what I think is a fairly common problem:<br>
I'm working on a website, and obviously have a local branch. This branch,<br>
in addition to all the development I want to push upstream, has some<br>
changes related to the DB/host settings that I _don't_ want propagated<br>
into mainline, but which I'd nevertheless like to have versioned (the<br>
changed files are versioned in the mainline, so I sort of don't have a<br>
choice anyway). However, I can't see a branch structure/plugin/whatever<br>
that would let me have that.<br>
<br>
I thought about just arranging multiple local branches carefully at<br>
first, but I couldn't find a setup that wouldn't result in either me<br>
having to sync things manually (not good) or having to remember about not<br>
committing things (obviously a no go). For a moment, it looked like loom<br>
might be the solution, but it turns out it's actually sort of opposite of<br>
what I want to achieve (it lets me hide history and the resulting changes<br>
on the fly, whereas I very much want to have them visible, just excluded<br>
from pushes). Therefore I'd like to hear suggestions as to what I should<br>
use.<br>
<br>
To reiterate, the end effect I want to achieve is that I have two<br>
branches: "mainline" and "devel". Devel is branched from mainline, and<br>
synced regularly with it. Additionally, devel has two flavours of<br>
changesets: actual development and local config adjustment. I want<br>
commits to go to the development bag unless I explicitly state otherwise,<br>
and I want to be able to push from devel to mainline at any time and have<br>
_only_ the development changesets merged, without having to remember to<br>
pull to/push from/exclude something, and ideally without having to use<br>
something else than "bzr commit" for commits. I'm okay with there being<br>
multiple branches internally, as long as it doesn't require me to<br>
remember about the fact.<br>
</blockquote></div><br>I normally keep these sort of things in separate directories:<br>myproject_main/.bzr<br>myproject_conf/.bzr<br>where each is versioned separately.<br>As far as I know the one can even be inside the other eg:<br>
myproject/.bzr<br> +code/*<br> +conf/.bzr<br>in this case the myproject branch would ignore conf completely.<br>when you do want to commit stuff in conf you'll need to cd into it.<br><br>I suggest you play a bit with it first, to get a feel for it.<br>
<br>regards<br>marius<br>