snipt

Ctrl+h for KB shortcuts

Bash

Roll back to a previous revision in Subversion

1
2
3
svn update
svn merge -r <current_revision>:<previous_revision> .
svn commit -m "Rolled back to <previous_revision>"
https://snipt.net/embed/c57cef74727cd13166ea5c64176c10ff/
/raw/c57cef74727cd13166ea5c64176c10ff/
c57cef74727cd13166ea5c64176c10ff
bash
Bash
3
2019-07-16T02:45:38
True
False
False
/api/public/snipt/105516/
roll-back-to-a-previous-revision-in-subversion
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>svn update </span><span id="L-2"><a name="L-2"></a>svn merge -r &lt;current_revision&gt;:&lt;previous_revision&gt; . </span><span id="L-3"><a name="L-3"></a>svn commit -m <span class="s2">&quot;Rolled back to &lt;previous_revision&gt;&quot;</span> </span></pre></div> </td></tr></table>
subversion

Bash

List properties recursively

svn proplist -v -R <directory>
https://snipt.net/embed/bb3bded62d7c60d4520fef426aa0353c/
/raw/bb3bded62d7c60d4520fef426aa0353c/
bb3bded62d7c60d4520fef426aa0353c
bash
Bash
1
2019-07-15T10:55:52
True
False
False
Oct 26, 2012 at 09:05 PM
/api/public/snipt/49130/
list-properties-recursively
<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 proplist -v -R &lt;directory&gt; </span></pre></div> </td></tr></table>
subversion

Bash

Remove missing files

$ svn rm $( svn status | sed -e '/^!/!d' -e 's/^!//' )
https://snipt.net/embed/757e83864a6bcfef4d3ea437578a2e60/
/raw/757e83864a6bcfef4d3ea437578a2e60/
757e83864a6bcfef4d3ea437578a2e60
bash
Bash
1
2019-07-14T17:05:22
True
False
False
/api/public/snipt/44856/
remove-missing-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 rm <span class="k">$(</span> svn status <span class="p">|</span> sed -e <span class="s1">&#39;/^!/!d&#39;</span> -e <span class="s1">&#39;s/^!//&#39;</span> <span class="k">)</span> </span></pre></div> </td></tr></table>
subversion

Bash

Revert to a previous revision

$ svn merge -rHEAD:<revision> .
https://snipt.net/embed/0dc6e4e25b4eddc12d4de9e0e8f245ab/
/raw/0dc6e4e25b4eddc12d4de9e0e8f245ab/
0dc6e4e25b4eddc12d4de9e0e8f245ab
bash
Bash
1
2019-07-12T06:12:43
True
False
False
/api/public/snipt/29359/
revert-to-a-previous-revision
<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 merge -rHEAD:&lt;revision&gt; . </span></pre></div> </td></tr></table>
subversion

Bash

Add all unversioned files

$ svn add --force .
https://snipt.net/embed/2c0f346fe1df99c170c3d327812a8152/
/raw/2c0f346fe1df99c170c3d327812a8152/
2c0f346fe1df99c170c3d327812a8152
bash
Bash
1
2019-07-14T20:05:40
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