Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jul 232010
 

Creating a simple tag in SVN

Answer:

In SVN, a tag is a “snapshot” of a project in time. By creating a tag of a project, this allow you to easily reference a particular version sometimes later.

To create a tag, use svn copy:

# svn copy http://example.com/svn/repos/demo/trunk \
           http://example.com/svn/repos/demo/tags/release-1.0.0 \
      -m "Tagging the 1.0.0 release of the 'demo' project."

Committed revision 124.
Jun 082010
 

How to ignore dummy files (e.g. from CVS, SVN) during rsync?

Answer:

During rsync, you might want to ignore a lot of dummy files, e.g. .bak, .svn, .old files, you can use the following flag as part of your rsync command.

# rsync --cvs-exclude ...

List of files skipped (rsync 3.06):

RCS SCCS CVS CVS.adm RCSLOG cvslog.* tags TAGS .make.state .nse_depinfo *~ #* .#* ,* _$* *$ *.old *.bak *.BAK *.orig *.rej .del-* *.a *.olb *.o *.obj *.so *.exe *.Z *.elc *.ln core .svn/ .git/ .bzr/

Jan 012010
 

Delete svn folders and files

Answer:

After checkout from the svn repository using the svn checkout command , if you want to remove the svn related files/folders, use the following command under the working directory

find ./ -name ".svn" | xargs rm -rf

On the other hand, you should use svn export, instead of svn checkout if you don't want the svn related files/folders at the beginning.