Thanks. But what happens if I do this:
* make some changes to modified-source directory (after i execute
* Use svn_load_dirs.pl to load modified-source and to re-tag it as VERSION2?
* Use svn_load_dirs.pl to load modified-source and to re-tag it as VERSION3?
On 1/15/07, Ryan Schmidt <firstname.lastname@example.org> wrote:
> On Jan 15, 2007, at 22:32, ying lcs wrote:
> > On 1/14/07, Ryan Schmidt wrote:
> >> On Jan 14, 2007, at 10:27, ying lcs wrote:
> >> > 1. create a new repository 'source' in subversion
> >> svnadmin create /srv/svn/repositories/source
> >> > 2. cd to org-source and
> >> > svn import . file:///srv/svn/repositories/source --message
> >> > "Initial import"
> >> For each new project, you should generally set up the recommended
> >> "trunk" / "branches" / "tags" directory structure. The reasons are
> >> explained in the book:
> >> http://svnbook.red-bean.com/en/1.2/svn.branchmerge.using.html
> >> So create these empty directories:
> >> svn mkdir file:///srv/svn/repositories/source/trunk \
> >> -m "Making trunk dir"
> >> svn mkdir file:///srv/svn/repositories/source/branches \
> >> -m "Making branches dir"
> >> svn mkdir file:///srv/svn/repositories/source/tags \
> >> -m "Making tags dir"
> >> Then you can import the original source into the trunk.
> >> svn import /path/to/org-source \
> >> file:///srv/svn/repositories/source/trunk \
> >> -m "Initial import"
> >> > 3: tag all the files in the source with a label called 'VERSION1"
> >> Create the "VERSION1" tag by copying the trunk to a new name in the
> >> tags directory:
> >> svn cp file:///srv/svn/repositories/source/trunk \
> >> file:///srv/svn/repositories/source/tags/VERSION1 \
> >> -m "Creating VERSION1 tag"
> >> > 4: commit all files in the directory 'modified-source' to
> >> subversion
> >> > so that subversion can figure out what files are different. And it
> >> > will create a new version if the files is different and add the
> >> files
> >> > to the repository if it is a new file.
> >> >
> >> > 5. tag all the files in trunk with a label called VERSION2"
> >> Use svn_load_dirs.pl to load modified-source and tag it as VERSION2:
> >> svn_load_dirs.pl \
> >> -t tags/VERSION2 \
> >> file:///srv/svn/repositories/source \
> >> trunk \
> >> /path/to/modified-source
> > After following the last steps of your instruction " Use
> > svn_load_dirs.pl to load modified-source and tag it as VERSION2:",
> > should i execute 'svn update' to make my 'modified-source' directory a
> > 'working directory?
> "svn update" does not make an unversioned directory into a working
> copy. It merely updates a working copy. And it cannot be done in a
> directory that is not already a working copy.
> > Or should i execute 'svn checkout' to a new directory and make that my
> > 'working directory and removing my 'org-source' and 'modified-source'
> > directory.
> Correct, that is what you will need to do.
> > Right now, when i commit a file from my 'modified-source' directory,
> > it said 'svn: modified-source' is not a working copy.
> Right: modified-source is not a working copy, so you cannot "svn
> commit" or "svn update" in it.
> To reply to the mailing list, please use your mailer's Reply To All
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Tue Jan 16 06:11:31 2007