-
Notifications
You must be signed in to change notification settings - Fork 0
/
svn
28 lines (24 loc) · 861 Bytes
/
svn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#see files changed at commit of certain revision
svn log -v -r <revision>
#exclude certain directories from svn update
svn ls | xargs -L 1 svn up --set-depth empty
#revert single commit
svn merge -c -9999 file.c
#svn sparse directories
$ rm -rf mom-empty
$ svn checkout file:///var/svn/repos mom-empty --depth empty
Checked out revision 1.
$ svn update --set-depth empty mom-empty/son
Updating 'mom-empty/son':
A mom-empty/son
Updated to revision 1.
$ svn update --set-depth empty mom-empty/daughter
Updating 'mom-empty/daughter':
A mom-empty/daughter
Updated to revision 1.
$ svn update --set-depth infinity mom-empty/daughter/granddaughter1
Updating 'mom-empty/daughter/granddaughter1':
A mom-empty/daughter/granddaughter1
A mom-empty/daughter/granddaughter1/bunny1.txt
A mom-empty/daughter/granddaughter1/bunny2.txt
Updated to revision 1.