Rename git-remote-testgit to git-remote-testpy

This script is not really exercising the remote-helper functionality, but more the python framework for remote helpers that live in git_remote_helpers. It's also not a good example of how to write remote-helpers, unless you are planning to use python, and even then you might not want to use this framework. So let's use a more appropriate name: git-remote-testpy. A patch that replaces git-remote-testgit with a simpler version is on the way. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed Nov 28, 2012 at 23:11 UTC d0ac3ffd9da8d1c3e629129030f74e1927faf575
4 files changed +9 -9
.gitignore
+1 -1
@@ -124,7 +124,7 @@
124 /git-remote-ftps
125 /git-remote-fd
126 /git-remote-ext
127 -/git-remote-testgit
127 +/git-remote-testpy
128 /git-remote-testsvn
129 /git-repack
130 /git-replace
Makefile
+1 -1
@@ -470,7 +470,7 @@ SCRIPT_PERL += git-relink.perl
470 SCRIPT_PERL += git-send-email.perl
471 SCRIPT_PERL += git-svn.perl
472
473 -SCRIPT_PYTHON += git-remote-testgit.py
473 +SCRIPT_PYTHON += git-remote-testpy.py
474 SCRIPT_PYTHON += git-p4.py
475
476 SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
git-remote-testpy.py renamed
t/t5800-remote-testpy.sh renamed
+7 -7
@@ -3,12 +3,12 @@
3 # Copyright (c) 2010 Sverre Rabbelier
4 #
5
6 -test_description='Test remote-helper import and export commands'
6 +test_description='Test python remote-helper framework'
7
8 . ./test-lib.sh
9
10 if ! test_have_prereq PYTHON ; then
11 - skip_all='skipping remote-testgit tests, python not available'
11 + skip_all='skipping python remote-helper tests, python not available'
12 test_done
13 fi
14
@@ -17,7 +17,7 @@ import sys
17 if sys.hexversion < 0x02040000:
18 sys.exit(1)
19 ' || {
20 - skip_all='skipping remote-testgit tests, python version < 2.4'
20 + skip_all='skipping python remote-helper tests, python version < 2.4'
21 test_done
22 }
23
@@ -38,12 +38,12 @@ test_expect_success 'setup repository' '
38 '
39
40 test_expect_success 'cloning from local repo' '
41 - git clone "testgit::${PWD}/server" localclone &&
41 + git clone "testpy::${PWD}/server" localclone &&
42 test_cmp public/file localclone/file
43 '
44
45 test_expect_success 'cloning from remote repo' '
46 - git clone "testgit::file://${PWD}/server" clone &&
46 + git clone "testpy::file://${PWD}/server" clone &&
47 test_cmp public/file clone/file
48 '
49
@@ -73,11 +73,11 @@ test_expect_success 'pushing to local repo' '
73 '
74
75 # Generally, skip this test. It demonstrates a now-fixed race in
76 -# git-remote-testgit, but is too slow to leave in for general use.
76 +# git-remote-testpy, but is too slow to leave in for general use.
77 : test_expect_success 'racily pushing to local repo' '
78 test_when_finished "rm -rf server2 localclone2" &&
79 cp -R server server2 &&
80 - git clone "testgit::${PWD}/server2" localclone2 &&
80 + git clone "testpy::${PWD}/server2" localclone2 &&
81 (cd localclone2 &&
82 echo content >>file &&
83 git commit -a -m three &&