onsdag 29 augusti 2012

tar: Skip directories when creating archive

Skip subversion / svn directories when creating a tar archive

>> tar -cvf patch.tar --exclude=.svn try2

where try2 is the directory that will be in the tar achive

tisdag 28 augusti 2012

Subversion: How do I create a svn tag / branch from a specific revision

Open a shell
>> svn copy -r r72664 http://svn.sitevision.net/repos/sitevision/trunk http://svn.sitevision.net/repos/sitevision/tags/STAGING_INIT
Subversion: What svn revision was this branch created in?
Open a shell in the project root

>> svn log --stop-on-copy .

Returns a list of revisions. The first will be at the end of the list


Staging: initial logging
------------------------------------------------------------------------
r72664 | mikael | 2012-05-28 09:44:57 +0200 (Mon, 28 May 2012) | 1 line