snipt

Ctrl+h for KB shortcuts

Text only

create bzr repo branch on jungle disk

bzr branch . j:/code/new-folder --no-tree
bzr bind j:/code/new-folder
https://snipt.net/embed/d04e9d7b70d9023dc84ad3c438b1b798/
/raw/d04e9d7b70d9023dc84ad3c438b1b798/
d04e9d7b70d9023dc84ad3c438b1b798
text
Text only
2
2019-06-16T16:58:55
True
False
False
Feb 23, 2013 at 07:07 PM
/api/public/snipt/5455/
create-bzr-repo-branch-on-jungle-disk
<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>bzr branch . j:/code/new-folder --no-tree </span><span id="L-2"><a name="L-2"></a>bzr bind j:/code/new-folder </span></pre></div> </td></tr></table>
backup, bazaar, bzr, dvcs, svn

Text only

svn revert to previous revision

svn up -r 1234 filename
https://snipt.net/embed/3bedd80129b259fbc3780631b7d0826f/
/raw/3bedd80129b259fbc3780631b7d0826f/
3bedd80129b259fbc3780631b7d0826f
text
Text only
1
2019-06-08T01:13:57
True
False
False
/api/public/snipt/5406/
svn-revert-to-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 up -r 1234 filename </span></pre></div> </td></tr></table>
svn

Bash

Globally ignore .pyc files

1
2
3
nano ~/.subversion/config
global-ignores = *.pyc
ctrl-x-z
https://snipt.net/embed/e3ebb456ace0c2321aa13434354355dc/
/raw/e3ebb456ace0c2321aa13434354355dc/
e3ebb456ace0c2321aa13434354355dc
bash
Bash
3
2019-05-29T14:51:10
True
False
False
/api/public/snipt/5133/
globally-ignore-pyc-files
<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>nano ~/.subversion/config </span><span id="L-2"><a name="L-2"></a>global-ignores <span class="o">=</span> *.pyc </span><span id="L-3"><a name="L-3"></a>ctrl-x-z </span></pre></div> </td></tr></table>
svn

Bash

Remove .svn directories recursively

find -name .svn -delete
https://snipt.net/embed/12d182d2adecb7887be0fc79ea4cb505/
/raw/12d182d2adecb7887be0fc79ea4cb505/
12d182d2adecb7887be0fc79ea4cb505
bash
Bash
1
2019-06-20T10:14:58
True
False
False
/api/public/snipt/5048/
remove-svn-directories-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>find -name .svn -delete </span></pre></div> </td></tr></table>
bash, find, linux, rm, svn

Bash

Recursively delete .svn directories

rm -rf `find . -type d -name .svn`
https://snipt.net/embed/1e38ec7b976f864c08a5705c5092c8c6/
/raw/1e38ec7b976f864c08a5705c5092c8c6/
1e38ec7b976f864c08a5705c5092c8c6
bash
Bash
2
2019-06-16T01:37:01
True
False
False
/api/public/snipt/4482/
recursively-delete-svn-directories-2
<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>rm -rf <span class="sb">`</span>find . -type d -name .svn<span class="sb">`</span> </span></pre></div> </td></tr></table>
delete, svn

Bash

svn import

svn import -m "initial import" foldername https://subdomain.springloops.com/source/reponame
https://snipt.net/embed/42f9c5f2b3034a9e5be5cf8310baf19a/
/raw/42f9c5f2b3034a9e5be5cf8310baf19a/
42f9c5f2b3034a9e5be5cf8310baf19a
bash
Bash
1
2019-05-24T15:19:26
True
False
False
Feb 23, 2013 at 07:04 PM
/api/public/snipt/4366/
svn-import
<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 -m <span class="s2">&quot;initial import&quot;</span> foldername https://subdomain.springloops.com/source/reponame </span></pre></div> </td></tr></table>
import, linux, svn

Bash

svn checkout

svn checkout --username sean --password 12345 https://subdomain.springloops.com/source/reponame svn
https://snipt.net/embed/fd65f5d8aae40e73ae087e29d077eef5/
/raw/fd65f5d8aae40e73ae087e29d077eef5/
fd65f5d8aae40e73ae087e29d077eef5
bash
Bash
1
2019-06-10T15:29:34
True
False
False
Feb 23, 2013 at 07:04 PM
/api/public/snipt/4217/
svn-checkout-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>svn checkout --username sean --password <span class="m">12345</span> https://subdomain.springloops.com/source/reponame svn </span></pre></div> </td></tr></table>
checkout, linux, svn

Batchfile

batchfile to remove .svn dirs in all subdirs

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q "%%G"
https://snipt.net/embed/4488a37ce158d21987bbe702af1ee97e/
/raw/4488a37ce158d21987bbe702af1ee97e/
4488a37ce158d21987bbe702af1ee97e
bat
Batchfile
1
2019-06-17T07:45:44
True
False
False
/api/public/snipt/3722/
batchfile-to-remove-svn-dirs-in-all-subdirs
<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><span class="k">FOR</span> <span class="k">/F</span> <span class="s2">&quot;tokens=*&quot;</span> <span class="se">%%</span>G <span class="k">IN</span> <span class="p">(</span><span class="s1">&#39;DIR /B /AD /S *.svn*&#39;</span><span class="p">)</span> <span class="k">DO</span> <span class="k">RMDIR</span> /S /Q <span class="s2">&quot;</span><span class="se">%%</span><span class="s2">G&quot;</span> </span></pre></div> </td></tr></table>
batch, batchfile, dir, svn