2 :: There is no easy way to avoid using an absolute path here.
\r
3 :: To avoid editing a versioned file you should create a text file
\r
4 :: called DocPath.txt which contains the path to the TSVN doc folder.
\r
5 :: It must use forward slashes and URL escaping if necessary - no spaces!
\r
6 if not exist DocPath.txt echo c:/TortoiseGit/doc > DocPath.txt
\r
7 for /f %%p in (DocPath.txt) do @set docpath=%%p
\r
9 if exist temp rd /s/q temp
\r
17 svnadmin create repos --fs-type fsfs
\r
18 svnadmin create repos2 --fs-type fsfs
\r
19 svn co -q file:///%docpath%/test/temp/repos doc
\r
20 if errorlevel 1 goto checkout_fail
\r
21 svn co -q file:///%docpath%/test/temp/repos docs
\r
22 svn co -q file:///%docpath%/test/temp/repos2 ext
\r
24 :: This is used to add content to the 'external' repository.
\r
26 :: Copy some files from the docs to create content
\r
27 copy ..\..\..\source\en\TortoiseGit\tsvn_server\server*.xml > nul
\r
28 for %%f in (server*.xml) do svn add %%f
\r
29 :: Commit external repos2 r1
\r
30 svn ci -q -m "Document the server" .
\r
35 :: Copy some files from the docs to create content
\r
36 type nul > ..\targets
\r
37 for %%f in (add blame checkout) do (
\r
38 @copy/b ..\..\..\source\en\TortoiseGit\tsvn_dug\dug_%%f.xml+..\..\footnote1.txt dug_%%f.xml> nul
\r
39 @echo dug_%%f.xml >> ..\targets
\r
41 svn add --no-auto-props --targets ..\targets
\r
43 svn ci -q -m "Document some commands" .
\r
44 type nul > ..\targets
\r
45 for %%f in (commit export ignore) do (
\r
46 @copy/b ..\..\..\source\en\TortoiseGit\tsvn_dug\dug_%%f.xml+..\..\footnote1.txt dug_%%f.xml> nul
\r
47 @echo dug_%%f.xml >> ..\targets
\r
49 svn add --no-auto-props --targets ..\targets
\r
51 svn ci -q -m "Document commands group 2" .
\r
52 type nul > ..\targets
\r
53 for %%f in (relocate revert showlog) do (
\r
54 @copy/b ..\..\..\source\en\TortoiseGit\tsvn_dug\dug_%%f.xml+..\..\footnote1.txt dug_%%f.xml> nul
\r
55 @echo dug_%%f.xml >> ..\targets
\r
57 svn add --targets ..\targets
\r
59 svn ci -q -m "Document some more commands" .
\r
61 :: Add a reference to the external repository
\r
62 svn ps -q svn:externals "ext file:///%docpath%/test/temp/repos2/" .
\r
65 svn ci -q -m "create externals reference" .
\r
68 copy ..\..\subwcrev1.txt subwcrev.txt > nul
\r
69 svn add --no-auto-props subwcrev.txt
\r
71 svn ci -q -m "Document the SubWCRev program" .
\r
74 :: Now make some changes that will cause conflicts later.
\r
75 :: Change detection is broken when timestamps are the same.
\r
76 :: Force a current timestamp by using type instead of copy.
\r
77 type ..\..\subwcrev2.txt > subwcrev.txt
\r
78 for %%f in (ignore showlog) do (
\r
79 @copy/b ..\..\..\source\en\TortoiseGit\tsvn_dug\dug_%%f.xml+..\..\footnote2.txt dug_%%f.xml> nul
\r
81 :: Add text which will need merging on next update
\r
82 type ..\..\footnote1.txt >> dug_export.xml
\r
84 svn ci -q -m "Clarify the description of SubWCRev" .
\r
86 :: Add yet more files
\r
87 type nul > ..\targets
\r
88 for %%f in (branchtag conflicts general) do (
\r
89 @copy ..\..\..\source\en\TortoiseGit\tsvn_dug\dug_%%f.xml > nul
\r
90 @echo dug_%%f.xml >> ..\targets
\r
92 type ..\..\footnote1.txt >> dug_ignore.xml
\r
93 svn add --no-auto-props --targets ..\targets
\r
95 svn ci -q -m "Document final commands" .
\r
97 :: Update to just before the latest commit
\r
98 :: This is so CfM has something to work on when checking the repository
\r
101 :: Modify some files
\r
102 for %%f in (add blame relocate) do (
\r
103 @copy/b ..\..\..\source\en\TortoiseGit\tsvn_dug\dug_%%f.xml+..\..\footnote2.txt dug_%%f.xml> nul
\r
105 @copy/b ..\..\..\source\en\TortoiseGit\tsvn_dug\dug_ignore.xml+..\..\footnote3.txt+..\..\footnote1.txt dug_ignore.xml> nul
\r
106 :: Add an unversioned file
\r
107 echo Read Me > readme.txt
\r
110 svn co -q file:///%docpath%/test/temp/repos2 nested
\r
111 :: Change a file property
\r
112 svn ps -q local:property "This is a local property" dug_revert.xml
\r
114 svn lock -m "Major update" dug_add.xml > NUL
\r
117 :: Make changes which conflict with what we did earlier.
\r
118 copy /y ..\..\subwcrev3.txt subwcrev.txt > nul
\r
119 for %%f in (checkout commit export ignore showlog) do (
\r
120 @copy/b ..\..\..\source\en\TortoiseGit\tsvn_dug\dug_%%f.xml+..\..\footnote3.txt dug_%%f.xml> nul
\r
122 svn diff . > ..\docs.patch
\r
128 echo Perhaps you have not set the correct unix-style path in DocPath.txt
\r