Bruce,
I'm unclear on what you're really trying to accomplish.
In general, you want to tag your entire source tree. Tagging is simply
making a copy of the tree and agreeing by convention that the copy will
not be edited. You want to tag the entire tree so that you can build it
again with the exact same code as you had before. Your developers (in
general) will be working on the trunk, and when you tag you tag the
entire trunk (or a subtree).
If you want to mix revisions of files inside a tag (I don't really know
why you'd want to do that) you can copy specific revisions into the tag
with "svn cp -rXX ...".
Your SVN revisions won't have a whole lot to do with the version of the
file; the revision is just a unique integer that captures the state of
the entire repository at a specific point in time. When you say that
you want to find the "number of different versions of a given file",
it's not clear what you want; "svn log <file>" will give you all of the
revisions in which the file was modified. If you want to see what tags
that file was in, there isn't really a good way to do that with SVN; the
best is probably to look at the latest tag, do a log on that file, and
see where else you branched it. (Thus leading to the rule "always use
good comments" :) )
To copy a file from one place in the repository to another, just use svn
copy. If you want to copy a specific revision, use the "-r" switch.
"svn help copy" will list all the switches available to you.
- Geoff
-----Original Message-----
From: bruce [mailto:bedouglas@earthlink.net]
Sent: Friday, August 27, 2004 12:18 AM
To: users@subversion.tigris.org
Subject: copying versioned files between dirs within a repository
hi...
after reading the docs/reviewing google... i'm still confused as to how
to 'grab' a number of files within my repository/dirs and to place them
into a 'tag' dir....
i also don't know how to find the number of different versions of a
given file, or how to display the different versions, short of doing a
'svn log --versions svn://foo....'
but for the sake of argument, what's the best method for getting
different files/different versions from different dirs within a trunk,
and putting them in a 'tag'?
also, can/how can you do a copy of a file from one dir to another, based
upon the version of the file??
these seem to be pretty basic issues, so i must be missing something
subtle!
thanks for any help/assistance/pointers/examples...
-bruce
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 27 15:11:40 2004