snipt

Ctrl+h for KB shortcuts

Text only

Revert a faulty change SubVersion

1
2
3
4
5
6
7
8
Suppose you have changes that turned out to be broken, but stuff that works
has been committed since. This can fix it:

svn merge -r 673:669 https://host/svn/project/trunk

669 is the version just before the broken stuff was committed and 673 is the start of stuff that works. So The change between revision 669 and 673 is reverted and applied.

don't forget to commit this.
https://snipt.net/embed/ea107abcf34d1f57d7c1002256ce589e/
/raw/ea107abcf34d1f57d7c1002256ce589e/
ea107abcf34d1f57d7c1002256ce589e
text
Text only
8
2019-06-26T02:38:52
True
False
False
/api/public/snipt/33579/
revert-a-faulty-change-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> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Suppose you have changes that turned out to be broken, but stuff that works </span><span id="L-2"><a name="L-2"></a>has been committed since. This can fix it: </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>svn merge -r 673:669 https://host/svn/project/trunk </span><span id="L-5"><a name="L-5"></a> </span><span id="L-6"><a name="L-6"></a>669 is the version just before the broken stuff was committed and 673 is the start of stuff that works. So The change between revision 669 and 673 is reverted and applied. </span><span id="L-7"><a name="L-7"></a> </span><span id="L-8"><a name="L-8"></a>don&#39;t forget to commit this. </span></pre></div> </td></tr></table>
subversion, svn