confused about init-repo and trees

ml.bazaar-ng at donotspam.sent.com ml.bazaar-ng at donotspam.sent.com
Thu May 3 22:29:58 BST 2007


Hi,

So, I've been playing around with init-repo... and apparently I am
confused about --trees and what that actually means.  I *thought* it
means that when using checkouts, when you check something in, the
working tree gets updated (and by working tree, I mean, the stuff
outside of the .bzr folder).  Perhaps my definition of 'working tree' is
inaccurate.

This is what I have done:

rhd at linux:~$ mkdir tmp
rhd at linux:~$ cd tmp/
rhd at linux:~/tmp$ ls
rhd at linux:~/tmp$ bzr init-repo test-repo
rhd at linux:~/tmp/test-repo$ bzr init proj1

rhd at linux:~/tmp/test-repo$ cd ..
rhd at linux:~/tmp$ mkdir test-work

rhd at linux:~/tmp$ cd test-work/
rhd at linux:~/tmp/test-work$ bzr checkout ../test-repo/proj1/ proj1
rhd at linux:~/tmp/test-work$ cd proj1/
rhd at linux:~/tmp/test-work/proj1$ echo "1st change" >> file.c
rhd at linux:~/tmp/test-work/proj1$  bzr add file.c 
added file.c
rhd at linux:~/tmp/test-work/proj1$ bzr commit -m "initial revision"
added file.c
Committed revision 1.
rhd at linux:~/tmp/test-work/proj1$ ls ../../test-repo/proj1/
rhd at linux:~/tmp/test-work/proj1$ 

I would have expected ~/tmp/test-repos/proj1 to have 'file.c'.  Why
doesn't it?  In order to get the files (so I can share them with other
people, so they don't need to use bzr to do a checkout), do I have to
push them to a different location?

My goal is to share my repository (so anyone can branch), but also have
the working files in there so anyone can download if they wanted.

Thanks!
-- 
  
  robd at sent.com




More information about the bazaar mailing list