Difference between revisions of "Subversion notes"

From Simson Garfinkel
Jump to navigationJump to search
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<tt>svn move</tt> doesn't preserve edit history. To do that, use:
==File Activities==
  svn copy oldname newname
Make your PDF's binary:
  svn rm oldname
  svn propset svn:mime-type application/pdf *.pdf
Enable the subversion execute bit (so that scripts get checked out with their execute bit set):
  svn ps svn:executable yes filename


To enable the subversion execute bit (so that scripts get checked out with their execute bit set):
==Client Activities==
If the URL of the repository changed, use this:
  svn switch --relocate http://old/url http://new/url


  svn ps svn:executable yes filename
==Directory Activities==
==Repository Activities==
Verify data served in a repository:
  svnadmin verify REPOS_PATH


To make your PDF's binary:
Backup a repository:
  svnadmin dump REPOS_PATH | gzip -9 > svn.dump.gz


  svn propset svn:mime-type application/pdf *.pdf
Restore a backup:
  svnadmin create REPOS_PATH
  gunzip -c svn.dump.gz | svnadmin load REPOS_PATH

Latest revision as of 10:17, 28 January 2013

File Activities

Make your PDF's binary:

 svn propset svn:mime-type application/pdf *.pdf

Enable the subversion execute bit (so that scripts get checked out with their execute bit set):

 svn ps svn:executable yes filename

Client Activities

If the URL of the repository changed, use this:

  svn switch --relocate http://old/url http://new/url

Directory Activities

Repository Activities

Verify data served in a repository:

  svnadmin verify REPOS_PATH

Backup a repository:

  svnadmin dump REPOS_PATH | gzip -9 > svn.dump.gz

Restore a backup:

  svnadmin create REPOS_PATH
  gunzip -c svn.dump.gz | svnadmin load REPOS_PATH