How to place a file in a subdirectory of an ignored directory under revision control?
Marius Kruger
amanic at gmail.com
Mon Apr 26 22:48:07 BST 2010
On 28 March 2010 03:04, Ben DJ <bendj095124367913213465 at gmail.com> wrote:
> Hi,
>
> I've setup two repos
>
> mkdir -p /repos/{core,site}
> bzr init /repos/core
> bzr init /repos/site
>
> I want to include the bzr-managed data in /repos/core as a
> *subdirectory* of /repos/site.
>
> To do that, I exec'd:
>
> cd /repos/site
>
> cat << EOF > .bzignore
> core
> EOF
>
> bzr branch /repos/core core
> cat << EOF > core/.bzignore
> data
> EOF
>
> Now, if I add files to core/data, e.g.,
>
> cd core/data
> touch test.txt
>
> and then,
>
> cd /repos/site
> bzr add
> bzr commit -m ""
>
> will "test.txt" be under revision control, under the "/repos/site" repo home?
no.
You branched core into a directory under site,
but it is still its own branch and will be ignored by the "repos/site" branch.
--
<>< Marius ><>
More information about the bazaar
mailing list