From cba2e9545ece49ff7f8a7bc00930381ca97486d9 Mon Sep 17 00:00:00 2001 From: "J. Mammele" Date: Sun, 8 May 2022 21:47:13 +0200 Subject: [PATCH 1/5] add check for svn db and cvs directory --- snallygaster | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/snallygaster b/snallygaster index eaadb38..b4a559f 100755 --- a/snallygaster +++ b/snallygaster @@ -273,6 +273,17 @@ def test_svn_dir(url): except ValueError: pass +@DEFAULT +def test_svn_db(url): + r = fetcher(url + '/.svn/wc.db') + if 'FILE' in r and 'DIR' in r: + pout("svn_db", url + "/.svb/wc.db") + +@DEFAULT +def test_cvs_dir(url): + r = fetcher(url + '/CVS/root') + if ':' in r and not '<' in r: + pout("svn_db", url + "/CVS/root") @DEFAULT def test_apache_server_status(url): From 4451cdcf5c62a26c6660bcfb681e8a2b81747cab Mon Sep 17 00:00:00 2001 From: "J. Mammele" Date: Sun, 8 May 2022 21:50:31 +0200 Subject: [PATCH 2/5] fix codestyling --- snallygaster | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snallygaster b/snallygaster index b4a559f..3bcdfb1 100755 --- a/snallygaster +++ b/snallygaster @@ -273,18 +273,21 @@ def test_svn_dir(url): except ValueError: pass + @DEFAULT def test_svn_db(url): r = fetcher(url + '/.svn/wc.db') if 'FILE' in r and 'DIR' in r: pout("svn_db", url + "/.svb/wc.db") + @DEFAULT def test_cvs_dir(url): r = fetcher(url + '/CVS/root') - if ':' in r and not '<' in r: + if ':' in r and '<' not in r: pout("svn_db", url + "/CVS/root") + @DEFAULT def test_apache_server_status(url): r = fetcher(url + '/server-status') From 5ac6f403ced4fb542f76eb2114770b33c70a9d77 Mon Sep 17 00:00:00 2001 From: "J. Mammele" Date: Sun, 8 May 2022 21:58:46 +0200 Subject: [PATCH 3/5] Update Tests.md --- TESTS.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/TESTS.md b/TESTS.md index 9cbdb83..cb237e1 100644 --- a/TESTS.md +++ b/TESTS.md @@ -57,6 +57,20 @@ Identical to git_dir issue, just with Subversion instead of Git. * [svnscaper - script to download .svn directories](https://github.com/hannob/svnscraper) +svn_db +------- + +Identical to git_dir issue, just with Subversion instead of Git. + +* [Version Control with subversion](https://www.oreilly.com/library/view/version-control-with/9780596510336/ch08s02s01.html) + + +cvs_dir +------- + +Identical to git_dir issue, just with CVS instead of Git. + + apache_server_status -------------------- From e2431f7bd96929083210c88f19ee3333e639e8fa Mon Sep 17 00:00:00 2001 From: "J. Mammele" Date: Wed, 18 May 2022 21:40:08 +0200 Subject: [PATCH 4/5] remove cvs test --- snallygaster | 7 ------- 1 file changed, 7 deletions(-) diff --git a/snallygaster b/snallygaster index 3bcdfb1..db9b387 100755 --- a/snallygaster +++ b/snallygaster @@ -281,13 +281,6 @@ def test_svn_db(url): pout("svn_db", url + "/.svb/wc.db") -@DEFAULT -def test_cvs_dir(url): - r = fetcher(url + '/CVS/root') - if ':' in r and '<' not in r: - pout("svn_db", url + "/CVS/root") - - @DEFAULT def test_apache_server_status(url): r = fetcher(url + '/server-status') From 7db46524f6380eecca8e254b1d02d1dedaace45b Mon Sep 17 00:00:00 2001 From: "J. Mammele" Date: Wed, 18 May 2022 21:49:25 +0200 Subject: [PATCH 5/5] Update Tests.md --- TESTS.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/TESTS.md b/TESTS.md index cb237e1..1206226 100644 --- a/TESTS.md +++ b/TESTS.md @@ -65,12 +65,6 @@ Identical to git_dir issue, just with Subversion instead of Git. * [Version Control with subversion](https://www.oreilly.com/library/view/version-control-with/9780596510336/ch08s02s01.html) -cvs_dir -------- - -Identical to git_dir issue, just with CVS instead of Git. - - apache_server_status --------------------