~ubuntu-branches/ubuntu/breezy/pysvn/breezy

« back to all changes in this revision

Viewing changes to Tests/test-04.cmd

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-09-08 05:13:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050908051333-qgsa2rksrb4az1h4
Tags: 1.3.0-1
Package from release tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@prompt $P$S$G$S
 
2
@echo WorkDir: %WORKDIR%
 
3
@echo PYTHON: %PYTHON%
 
4
 
 
5
setlocal
 
6
set PYTHONPATH=%WORKDIR%\Source;%WORKDIR%\Examples\Client
 
7
set PYSVN=%PYTHON% %WORKDIR%\Examples\Client\svn_cmd.py --pysvn-testing --config-dir b:\configdir
 
8
mkdir testroot-04
 
9
subst b: %CD%\testroot-04
 
10
cd /d b:\
 
11
 
 
12
svnadmin create b:\repos
 
13
 
 
14
rem mkdir
 
15
%PYSVN% mkdir file:///b:/repos/trunk -m "test-01 add trunk"
 
16
%PYSVN% mkdir file:///b:/repos/trunk/test -m "test-01 add test"
 
17
 
 
18
rem Install hooks
 
19
rem echo echo svnlook info %%1 -t %%2 ^>b:\test_1.output >b:\repos\hooks\pre-commit.cmd
 
20
rem echo svnlook info %%1 -t %%2 ^>^>b:\test_1.output >>b:\repos\hooks\pre-commit.cmd
 
21
rem echo echo svnlook changed %%1 -t %%2 ^>^>b:\test_1.output >>b:\repos\hooks\pre-commit.cmd
 
22
rem echo svnlook changed %%1 -t %%2 ^>^>b:\test_1.output >>b:\repos\hooks\pre-commit.cmd
 
23
echo echo %PYTHON% %WORKDIR%\Tests\test_04_pre_commit_test_1.py %%* ^>b:\test_1.output >>b:\repos\hooks\pre-commit.cmd
 
24
echo set PYTHONPATH=%PYTHONPATH% >>b:\repos\hooks\pre-commit.cmd
 
25
echo %PYTHON% %WORKDIR%\Tests\test_04_pre_commit_test_1.py %%* ^>^>b:\test_1.output >>b:\repos\hooks\pre-commit.cmd
 
26
 
 
27
 
 
28
rem Add one dir
 
29
%PYSVN% mkdir file:///b:/repos/trunk/test/a -m "pre-commit test 1"
 
30
rem test_1.output start ----------------------------------------
 
31
type b:\test_1.output
 
32
rem  test_1.output end ------------------------------------------
 
33
 
 
34
rem Add two files
 
35
%PYSVN% co file:///b:/repos/trunk/test b:\wc
 
36
echo file1 ROOT >b:\wc\file1.txt
 
37
echo file1 A >b:\wc\a\file1.txt
 
38
 
 
39
%PYSVN% add b:\wc\file1.txt
 
40
%PYSVN% add b:\wc\a\file1.txt
 
41
%PYSVN% ci -m "Add two files" b:\wc
 
42
rem test_1.output start ----------------------------------------
 
43
type b:\test_1.output
 
44
rem  test_1.output end ------------------------------------------
 
45
 
 
46
rem Mod one file Mod one prop
 
47
 
 
48
echo file1 ROOT ln 2 >b:\wc\file1.txt
 
49
%PYSVN% propset svn:eol-style native b:\wc\a\file1.txt
 
50
%PYSVN% ci -m "Mod one file Mod one prop" b:\wc
 
51
rem test_1.output start ----------------------------------------
 
52
type b:\test_1.output
 
53
rem  test_1.output end ------------------------------------------
 
54
 
 
55
endlocal