You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Robert Sfeir <yo...@gmail.com> on 2005/01/10 20:53:11 UTC

tagging is too heavy, any alternative?

Been reading the svn manual, but can't seem to find the answer, and
perhaps it doesn't exist.

In CVS we used to be able to tag our repository on a certain day when
we do a release, this effectively acted more like a marker to let us
know we did something there, and we keep going.  In Subversion tagging
is like branching, except you don't write code to a tag beause then it
becomes a branch, but it seems that it copies our whole repository
into the tag part of the subversion repository.  This is REALLY heavy
considering our repository is some 20 gigs, and we do this process 3-4
times a month.

Is there no other way to put a 'marker' of some type in the head which
lets us know for example that: "At tag (or marker) 011004 we deployed
revision 6004", so that at a future point we can check out that
particular revision, and know that we had the code as it stood then,
but without having to copy the whole directory.

Thanks
R

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: tagging is too heavy, any alternative?

Posted by David Kramer <da...@thekramers.net>.
On Mon, 10 Jan 2005, Robert Sfeir wrote:

> ROFL... yes I got that after firing off, and Patrick Burleson popped
> up on IM asking me, and realized my retard switch blew a fuse for a few.  
> 
> Sorry for the MAJORLY rookie question.
> 
> In fact it is much much better than CVS, and you can actually turn the
> tag into a branch by making a change in it, and then merging in if
> need me.
> 
> And no, repo did not grow, and process took 0.25 seconds.
> 
> <will go off and wipe eggs off my face>

We just went through this at my company.  For about a month before we do 
releases, we do daily builds which we need to track.  Our project is over 
10,000 files, so I thought even the cheap copies would add up after doing 
that for a few revs.

We did some automated testing, making hundreds of copies of all 10,000 
files, and the overhead was minimal, both in space and checkout time.

What I learned from the wonderful people on this list is that doing the 
copy from one complete revision to another url (ex svn cp trunk tags/1.5), 
is one single record in the database, it's not even a record for each 
file.  As files get modified in tags/1.5, new records are created, of 
course.  And mix-revision copies take more space, but only proportional to 
the number of back-revisioned files, not all of the files.

So tag away.

-------------------------------------------------------------------
DDDD   David Kramer                   http://thekramers.net
DK KD  
DKK D  
DK KD  Pretense and adversity are inversely proportional;
DDDD   Adversity reveals the true nature of all things.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: tagging is too heavy, any alternative?

Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.

On Mon, 10 Jan 2005, Robert Guico wrote:

> Just to be sure... it would be accurate to say that when I branch or
> tag, the size of my working copy would increase by the factor of the
> content of a repository, right? (I suppose I could avoid space issues
> by not checking out tags or branches, though.)
>
If you check out the root of a repository, yes. You don't (or we at least
don't) normally do that, though. Normally, you just check out trunk or a
particular branch or tag that you want. Note that you can quickly switch
between trunk, branches and tags with the svn switch command.

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: tagging is too heavy, any alternative?

Posted by Bryan Donlan <bd...@gmail.com>.
On Mon, 10 Jan 2005 15:24:59 -0600, Robert Guico <rg...@gmail.com> wrote:
> Just to be sure... it would be accurate to say that when I branch or
> tag, the size of my working copy would increase by the factor of the
> content of a repository, right? (I suppose I could avoid space issues
> by not checking out tags or branches, though.)

It's common to simply check out one tag or branch at a time (or
trunk/), and use svn switch to move between them efficiently.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: tagging is too heavy, any alternative?

Posted by Shawn Harrison <ha...@tbc.net>.
Robert Sfeir wrote [01/10/05 6:17 PM]:
>>The tag happens in the repository - it doesn't affect your working copy
>>at all (in fact, you have to "switch" separately if you want to make
>>changes to the tag -- now, branch).
> 
> 
> And we must be careful to clarify that though the tag is now a branch,
> it doesn't mean that it MOVED to the branches directory, it's still in
> the Tags directory, but is treated like a branch with its own set of
> changed files, and hence can cause much confusion among your peers if
> you're not careful.
> 
> R
> 

Good point.

It might be easier for newbies if there were only one label for it - a 
"copy". But it does make sense to me that the documentation uses "tags" 
and "branches", because they are addressing the nomenclature of the CVS 
community and of developers in general.

In our publishing house, we have a single publication that goes out in 
dozens of different editions, typesettings, printings, etc. We're 
beginning to use "copies" to tag each specific edition, so that when a 
given edition is reprinted we know exactly what needs to be changed in 
the typeset files (by diffing the sources with TRUNK) in order to bring 
that edition up to date. For that purpose, the labels "tag" and "branch" 
are not really useful. Instead, it makes sense just to have "editions". 
But they're all just "copies" at heart.

Take care,

Shawn Harrison
-- 
________________
harrison@tbc.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: tagging is too heavy, any alternative?

Posted by Robert Sfeir <yo...@gmail.com>.
> The tag happens in the repository - it doesn't affect your working copy
> at all (in fact, you have to "switch" separately if you want to make
> changes to the tag -- now, branch).

And we must be careful to clarify that though the tag is now a branch,
it doesn't mean that it MOVED to the branches directory, it's still in
the Tags directory, but is treated like a branch with its own set of
changed files, and hence can cause much confusion among your peers if
you're not careful.

R

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: tagging is too heavy, any alternative?

Posted by Shawn Harrison <ha...@tbc.net>.
Robert Guico wrote [01/10/05 3:24 PM]:
> Just to be sure... it would be accurate to say that when I branch or
> tag, the size of my working copy would increase by the factor of the
> content of a repository, right? (I suppose I could avoid space issues
> by not checking out tags or branches, though.)

The tag happens in the repository - it doesn't affect your working copy 
at all (in fact, you have to "switch" separately if you want to make 
changes to the tag -- now, branch).
-- 
________________
harrison@tbc.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: tagging is too heavy, any alternative?

Posted by Robert Guico <rg...@gmail.com>.
Just to be sure... it would be accurate to say that when I branch or
tag, the size of my working copy would increase by the factor of the
content of a repository, right? (I suppose I could avoid space issues
by not checking out tags or branches, though.)

-Rob

On Mon, 10 Jan 2005 16:17:40 -0500, Robert Sfeir <yo...@gmail.com> wrote:
> ROFL... yes I got that after firing off, and Patrick Burleson popped
> up on IM asking me, and realized my retard switch blew a fuse for a few.  
> 
> Sorry for the MAJORLY rookie question.
> 
> In fact it is much much better than CVS, and you can actually turn the
> tag into a branch by making a change in it, and then merging in if
> need me.
> 
> And no, repo did not grow, and process took 0.25 seconds.
> 
> <will go off and wipe eggs off my face>
> 
> R
> 
> ---------------------------------------------------------------------
> 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

Re: tagging is too heavy, any alternative?

Posted by Robert Sfeir <yo...@gmail.com>.
ROFL... yes I got that after firing off, and Patrick Burleson popped
up on IM asking me, and realized my retard switch blew a fuse for a few.  

Sorry for the MAJORLY rookie question.

In fact it is much much better than CVS, and you can actually turn the
tag into a branch by making a change in it, and then merging in if
need me.

And no, repo did not grow, and process took 0.25 seconds.

<will go off and wipe eggs off my face>

R

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: tagging is too heavy, any alternative?

Posted by Tom Mornini <tm...@infomania.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Jan 10, 2005, at 12:53 PM, Robert Sfeir wrote:

> Been reading the svn manual, but can't seem to find the answer, and
> perhaps it doesn't exist.
>
> In CVS we used to be able to tag our repository on a certain day when
> we do a release, this effectively acted more like a marker to let us
> know we did something there, and we keep going.  In Subversion tagging
> is like branching, except you don't write code to a tag beause then it
> becomes a branch, but it seems that it copies our whole repository
> into the tag part of the subversion repository.  This is REALLY heavy
> considering our repository is some 20 gigs, and we do this process 3-4
> times a month.
>
> Is there no other way to put a 'marker' of some type in the head which
> lets us know for example that: "At tag (or marker) 011004 we deployed
> revision 6004", so that at a future point we can check out that
> particular revision, and know that we had the code as it stood then,
> but without having to copy the whole directory.

The "heaviness" that you perceive is just a misperception.

Tagging in Subversion is actually a LOT lighter an operation than
tagging in CVS.

Within the repository, very little work is done, and very little
storage is required. Consider all those "copies" of files in the
repository to be just a reflection in a mirror, because they only
exist upon checkout or export.

- -- 
- -- Tom Mornini

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFB4u3EzaKkuvKwKvcRAqFwAKClOgLj0qf1qnNCJ47LZHdryn5XjACgsX8u
hcouXP2XBfT0ETvWyX5wpYQ=
=5fth
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: tagging is too heavy, any alternative?

Posted by Patrick Burleson <pb...@gmail.com>.
On Mon, 10 Jan 2005 15:53:11 -0500, Robert Sfeir <yo...@gmail.com> wrote:
> Been reading the svn manual, but can't seem to find the answer, and
> perhaps it doesn't exist.
> 
> In CVS we used to be able to tag our repository on a certain day when
> we do a release, this effectively acted more like a marker to let us
> know we did something there, and we keep going.  In Subversion tagging
> is like branching, except you don't write code to a tag beause then it
> becomes a branch, but it seems that it copies our whole repository
> into the tag part of the subversion repository.  This is REALLY heavy
> considering our repository is some 20 gigs, and we do this process 3-4
> times a month.
> 
> Is there no other way to put a 'marker' of some type in the head which
> lets us know for example that: "At tag (or marker) 011004 we deployed
> revision 6004", so that at a future point we can check out that
> particular revision, and know that we had the code as it stood then,
> but without having to copy the whole directory.
> 
> Thanks
> R
> 

As far as I understand things, a tag is just a "cheap" copy. Meaning
just the revision numbers are copied. It's not until you actually do
stuff there (say on a branch) that things start to diverge and take up
more space. Even then, it's just the delta (AFAIK).

Are you seeing huge space usages when you tag?

Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: tagging is too heavy, any alternative?

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
Robert Sfeir wrote:
> Been reading the svn manual, but can't seem to find the answer, and
> perhaps it doesn't exist.
> 
> In CVS we used to be able to tag our repository on a certain day when
> we do a release, this effectively acted more like a marker to let us
> know we did something there, and we keep going.  In Subversion tagging
> is like branching, except you don't write code to a tag beause then it
> becomes a branch, but it seems that it copies our whole repository
> into the tag part of the subversion repository.  This is REALLY heavy
> considering our repository is some 20 gigs, and we do this process 3-4
> times a month.

It's a cheap copy, it doesn't really copy the entire 20 gigs, it's just 
creating a pointer to the previous versions.  Seriously, make a tag and 
then look at the actual size of your repository on disk, it's not 
actually doubling.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: tagging is too heavy, any alternative?

Posted by Mark Phippard <Ma...@softlanding.com>.
Robert Sfeir <yo...@gmail.com> wrote on 01/10/2005 03:53:11 PM:

> Been reading the svn manual, but can't seem to find the answer, and
> perhaps it doesn't exist.
> 
> In CVS we used to be able to tag our repository on a certain day when
> we do a release, this effectively acted more like a marker to let us
> know we did something there, and we keep going.  In Subversion tagging
> is like branching, except you don't write code to a tag beause then it
> becomes a branch, but it seems that it copies our whole repository
> into the tag part of the subversion repository.  This is REALLY heavy
> considering our repository is some 20 gigs, and we do this process 3-4
> times a month.
> 
> Is there no other way to put a 'marker' of some type in the head which
> lets us know for example that: "At tag (or marker) 011004 we deployed
> revision 6004", so that at a future point we can check out that
> particular revision, and know that we had the code as it stood then,
> but without having to copy the whole directory.

How are you defining "heavy"?  The svn tag consumes very little space in 
the repository and runs in a very short, constant time, that has nothing 
to do with the number of files being tagged.  CVS, on the other hand, can 
take quite a long period of time to perform the tag operation and the tag 
information is carried in every file within your repository.

So why is an svn tag "heavy"?  My guess is that because the UI is showing 
you the files under the tag folder you are thinking the tag did more than 
it actually did.

Also, keep in mind that if you have some way of knowing your revision 
number, for example, I embed it in my builds, then you really do not even 
need a tag as you can just use the revision number to checkout the code as 
it existed.

Mark


_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs. 
_____________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org