snipt

Ctrl+h for KB shortcuts

Bash

Add all unversioned files

$ svn add --force .
https://snipt.net/embed/2c0f346fe1df99c170c3d327812a8152/
/raw/2c0f346fe1df99c170c3d327812a8152/
2c0f346fe1df99c170c3d327812a8152
bash
Bash
1
2019-06-12T17:14:14
True
False
False
/api/public/snipt/28511/
add-all-unversioned-files
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>$ svn add --force . </span></pre></div> </td></tr></table>
subversion

Bash

Ignore directories on SVN COMMIT, UPDATE, etc

svn propset svn:ignore "*" tool/templates_c
commit -m "ignored tool/templates_c"
https://snipt.net/embed/a04f8c5032d7021ae83c5027da29e8de/
/raw/a04f8c5032d7021ae83c5027da29e8de/
a04f8c5032d7021ae83c5027da29e8de
bash
Bash
2
2019-06-22T12:15:31
True
False
False
/api/public/snipt/18466/
ignore-directories-on-svn-commit-update-etc
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>svn propset svn:ignore <span class="s2">&quot;*&quot;</span> tool/templates_c </span><span id="L-2"><a name="L-2"></a>commit -m <span class="s2">&quot;ignored tool/templates_c&quot;</span> </span></pre></div> </td></tr></table>
commit, subversion, svn, update

Text only

Subversion command to change repo

svn switch --relocation http://existing/url to http://new/url
https://snipt.net/embed/83bbd31666bde55eeb4e2a53939fc2e3/
/raw/83bbd31666bde55eeb4e2a53939fc2e3/
83bbd31666bde55eeb4e2a53939fc2e3
text
Text only
1
2019-06-25T15:29:04
True
False
False
/api/public/snipt/14689/
subversion-command-to-change-repo
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>svn switch --relocation http://existing/url to http://new/url </span></pre></div> </td></tr></table>
subversion, svn

Bash

bashrc aliases for svn add all and svn delete all

alias svnaddall='svn status | grep "^\?" | awk "{print \$2}" | xargs svn add'
alias svndelall='svn status | grep "^\!" | awk "{print \$2}" | xargs svn delete'
https://snipt.net/embed/9d1b127072cd3edf8e5f6461370429f5/
/raw/9d1b127072cd3edf8e5f6461370429f5/
9d1b127072cd3edf8e5f6461370429f5
bash
Bash
2
2019-06-10T14:50:11
True
False
False
/api/public/snipt/4669/
bashrc-aliases-for-svn-add-all-and-svn-delete-all
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nb">alias</span> <span class="nv">svnaddall</span><span class="o">=</span><span class="s1">&#39;svn status | grep &quot;^\?&quot; | awk &quot;{print \$2}&quot; | xargs svn add&#39;</span> </span><span id="L-2"><a name="L-2"></a><span class="nb">alias</span> <span class="nv">svndelall</span><span class="o">=</span><span class="s1">&#39;svn status | grep &quot;^\!&quot; | awk &quot;{print \$2}&quot; | xargs svn delete&#39;</span> </span></pre></div> </td></tr></table>
bash, subversion

Bash

create subversion patch

svn diff > ~/fix_ugly_bug.diff
https://snipt.net/embed/79fab831f950d168045223fdfd7dd078/
/raw/79fab831f950d168045223fdfd7dd078/
79fab831f950d168045223fdfd7dd078
bash
Bash
1
2019-05-28T01:15:20
True
False
False
/api/public/snipt/4523/
create-subversion-patch
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>svn diff &gt; ~/fix_ugly_bug.diff </span></pre></div> </td></tr></table>
subversion

Bash

apply svn patch

patch -p0 -i ~/fix_ugly_bug.diff
https://snipt.net/embed/9bea6be7ba178b282ce9046b93e41a3f/
/raw/9bea6be7ba178b282ce9046b93e41a3f/
9bea6be7ba178b282ce9046b93e41a3f
bash
Bash
1
2019-06-10T16:48:29
True
False
False
/api/public/snipt/3789/
apply-svn-patch-1
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>patch -p0 -i ~/fix_ugly_bug.diff </span></pre></div> </td></tr></table>
subversion

Bash

show subversion updates to be applied before running svn update

svn status --show-updates
https://snipt.net/embed/ed6f5c39307a635440bd6eb92addedb7/
/raw/ed6f5c39307a635440bd6eb92addedb7/
ed6f5c39307a635440bd6eb92addedb7
bash
Bash
1
2019-06-25T06:30:02
True
False
False
/api/public/snipt/2435/
show-subversion-updates-to-be-applied-before-running-svn-update
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>svn status --show-updates </span></pre></div> </td></tr></table>
bash, subversion

Bash

commit working copy changes to subversion

svn commit -m 'adding cvs checkout of image module from drupal.org'
https://snipt.net/embed/1e3bd2e286700605cd2c4589d1081439/
/raw/1e3bd2e286700605cd2c4589d1081439/
1e3bd2e286700605cd2c4589d1081439
bash
Bash
1
2019-06-24T03:34:29
True
False
False
/api/public/snipt/2434/
commit-working-copy-changes-to-subversion
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>svn commit -m <span class="s1">&#39;adding cvs checkout of image module from drupal.org&#39;</span> </span></pre></div> </td></tr></table>
drupal, subversion

Bash

run svn status on working copy

svn status
https://snipt.net/embed/81d897a8cd4baca360e85b9a4bf00d49/
/raw/81d897a8cd4baca360e85b9a4bf00d49/
81d897a8cd4baca360e85b9a4bf00d49
bash
Bash
1
2019-06-01T02:21:30
True
False
False
/api/public/snipt/2433/
run-svn-status-on-working-copy
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>svn status </span></pre></div> </td></tr></table>
subversion