37 | | $ svn {add,del,rm} ${WCPATH} |
38 | | }}} |
39 | | Informations on working copy |
40 | | {{{#!sh |
41 | | $ svn info [{${WCPATH},${URL}}][@${REV}] |
42 | | }}} |
43 | | Local status wrt the repository |
44 | | {{{#!sh |
45 | | $ svn status [-[qu]] [${WCPATH}] |
46 | | }}} |
47 | | Local changes |
48 | | {{{#!sh |
49 | | $ svn {diff,revert} ${WCPATH} |
50 | | }}} |
51 | | Push modififcations to repository |
52 | | {{{#!sh |
53 | | $ svn {ci,commit} [-m 'one-liner message'] [${WCPATH}] |
54 | | }}} |
55 | | For modified externals, add `--include-externals` option |
56 | | List commit messages |
57 | | {{{#!sh |
58 | | $ svn log [{${URL},${WCPATH}}[@${REV}]] |
| 41 | ## Common cmds |
| 42 | svn add ${WCPATH} ## Add item under versioning |
| 43 | svn {delete,remove,rm} ${WCPATH} ## Remove item |
| 44 | svn {st,status} [${WCPATH}] ## List modified items |
| 45 | svn diff [${WCPATH}] ## Differences inside items |
| 46 | svn revert ${WCPATH} ## Give up edits |
| 47 | |
| 48 | ## Straightforward UNIX-like cmds |
| 49 | svn {cat,list,ls} {${URL},${WCPATH}}[@${REV}] |
| 50 | svn mkdir {${URL},${WCPATH}} |
| 51 | |
| 52 | ## Infos |
| 53 | svn log {${URL},${WCPATH}}[@${REV}] ## List commit messages |
| 54 | svn info {${URL},${WCPATH}}[@${REV}] ## Detailed |
| 55 | |
| 56 | ## In case of trouble |
| 57 | svn {resolve,resolved} ${WCPATH} ## Ruling conflicted files |
| 58 | svn cleanup [${WCPATH}] ## Fix corrupted working copy |
64 | | $ svn propset svn:keywords Id on ${WCPATH} |
| 65 | ## {proplist,plist} |
| 66 | ## {propset,pset} |
| 67 | ## {propedit,pedit} |
| 68 | ## {propdel,pdel} |
| 69 | |
| 70 | ## 'svn:keywords Id': record commit infos in routine |
| 71 | svn {propset,pset} svn:keywords Id on ${WCPATH} |
| 72 | |
| 73 | ## 'svn:executable': set permissions for running scripts |
| 74 | svn {propset,pset} svn:executable on ${WCPATH} |
| 75 | |
| 76 | ## 'svn:externals': defining external sources |
| 77 | ## - Single external |
| 78 | svn {propset,pset} svn:externals ${URL}[@${REV}] ${WCPATH} |
| 79 | ## - Multi externals |
| 80 | svn {propset,pedit} svn:externals ${WCPATH} |
68 | | $ svn propset svn:mime-type ... ${WCPATH} |
69 | | }}} |
70 | | `svn:executable`: set permissions for scripts |
71 | | {{{#!sh |
72 | | $ svn propset svn:executable on ${WCPATH} |
73 | | }}} |
74 | | `svn:externals`: defining external sources |
75 | | - Single external |
76 | | {{{#!sh |
77 | | $ svn propset svn:externals ${URL}[@${REV}] ${WCPATH} |
78 | | }}} |
79 | | - Multi externals |
80 | | {{{#!sh |
81 | | $ svn propedit svn:externals ${WCPATH} |
| 84 | ## Create a branch (copying) |
| 85 | svn copy {${URL},${WCPATH}}[@${REV}] {${URL},${WCPATH}} |
| 86 | |
| 87 | ## Merging sources |
| 88 | svn merge {${URL1},${WCPATH1}}[@${REV1}] [{${URL1},${WCPATH2}}[@${REV2}]] [${WCPATH}] |
| 89 | |
| 90 | ## Update WC to a new URL |
| 91 | ## - Mirror a different branch $i.e$ traversing branch in the same repository (__hazardous!! __) |
| 92 | svn switch ${URL}[@${REV}] [${WCPATH}] |
| 93 | ## - Relocate to a different URL $i.e$ keep the same branch but move to a new server or URL scheme |
| 94 | svn switch --relocate ${URL1} ${URL2} |
| 95 | svn relocate ${URL1} ${URL2} |
84 | | {{{#!td |
85 | | Create a branch (copying) |
86 | | {{{#!sh |
87 | | $ svn copy {${URL},${WCPATH}}[@${REV}] {${URL},${WCPATH}} |
88 | | }}} |
89 | | Update WC to a new URL |
90 | | - Mirror a different branch $i.e$ traversing branch in the same repository (__hazardous!! __) |
91 | | {{{#!sh |
92 | | $ svn switch ${URL}[@${REV}] [${WCPATH}] |
93 | | }}} |
94 | | - Relocate to a different URL $i.e$ keep the same branch but move to a new server or URL scheme |
95 | | {{{#!sh |
96 | | $ svn switch --relocate ${URL1} ${URL2} |
97 | | }}} |
98 | | Merging sources |
99 | | {{{#!sh |
100 | | $ svn merge {${URL1},${WCPATH1}}[@${REV1}] [{${URL1},${WCPATH2}}[@${REV2}]] [${WCPATH}] |
101 | | }}} |
102 | | Remove a branch |
103 | | {{{#!sh |
104 | | $ svn rm {${URL},${WCPATH}} |
105 | | }}} |
106 | | }}} |