snipt

Ctrl+h for KB shortcuts

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-03T19:05:44
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-14T21:36:02
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

Bash

checkout subversion project into working copy

svn checkout file:///path/to/repos/name-of-project/trunk name-of-destination-directory/
https://snipt.net/embed/7d941597e155755f695697a5a5a9b0f7/
/raw/7d941597e155755f695697a5a5a9b0f7/
7d941597e155755f695697a5a5a9b0f7
bash
Bash
1
2019-06-10T00:10:16
True
False
False
/api/public/snipt/2428/
checkout-subversion-project-into-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 checkout file:///path/to/repos/name-of-project/trunk name-of-destination-directory/ </span></pre></div> </td></tr></table>
bash, subversion

Bash

import directory as a new project into a subversion repository

svn import name-of-folder file:///path/to/repos -m 'First Import'
https://snipt.net/embed/fefcbf4db0e8a1f21910a43bbba7bb77/
/raw/fefcbf4db0e8a1f21910a43bbba7bb77/
fefcbf4db0e8a1f21910a43bbba7bb77
bash
Bash
1
2019-06-05T08:53:13
True
False
False
/api/public/snipt/2427/
import-directory-as-a-new-project-into-a-subversion-repository
<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 import name-of-folder file:///path/to/repos -m <span class="s1">&#39;First Import&#39;</span> </span></pre></div> </td></tr></table>
bash, subversion

Bash

create a subversion repository from the command line

svnadmin create repos
https://snipt.net/embed/b727d9ada23852dfe6ea36bea0b32177/
/raw/b727d9ada23852dfe6ea36bea0b32177/
b727d9ada23852dfe6ea36bea0b32177
bash
Bash
1
2019-06-08T14:53:39
True
False
False
/api/public/snipt/2426/
create-a-subversion-repository-from-the-command-line
<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>svnadmin create repos </span></pre></div> </td></tr></table>
bash, subversion

Bash

add subversion package installation to path

PATH=~/path/to/installation/bin
export PATH
https://snipt.net/embed/8b64e33a449595161794ee459729ec20/
/raw/8b64e33a449595161794ee459729ec20/
8b64e33a449595161794ee459729ec20
bash
Bash
2
2019-06-06T04:21:47
True
False
False
/api/public/snipt/2424/
add-subversion-package-installation-to-path
<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="nv">PATH</span><span class="o">=</span>~/path/to/installation/bin </span><span id="L-2"><a name="L-2"></a><span class="nb">export</span> PATH </span></pre></div> </td></tr></table>
bash, subversion