2008/11/27 Maciej Katafiasz <span dir="ltr">&lt;<a href="mailto:mathrick@gmail.com">mathrick@gmail.com</a>&gt;</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&#39;m looking for a solution to what I think is a fairly common problem:<br>
I&#39;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&#39;t_ want propagated<br>
into mainline, but which I&#39;d nevertheless like to have versioned (the<br>
changed files are versioned in the mainline, so I sort of don&#39;t have a<br>
choice anyway). However, I can&#39;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&#39;t find a setup that wouldn&#39;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&#39;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&#39;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: &quot;mainline&quot; and &quot;devel&quot;. 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 &quot;bzr commit&quot; for commits. I&#39;m okay with there being<br>
multiple branches internally, as long as it doesn&#39;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>&nbsp;+code/*<br>&nbsp;+conf/.bzr<br>in this case the myproject branch would ignore conf completely.<br>when you do want to commit stuff in conf you&#39;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>