To see the change or difference between the commitments, I use the following from the command line:
< Pre> svn diff -r 3000: 3025 & gt; Daychanges.diff I want to modify this order so that it constantly creates a difference between the commands, adds them and outputs the file,
svn diff-r 3000: 3001> Daychanges.diff svn diff -r 3001: 3002 & gt; & Gt; Daychanges.diff svn diff -r 3002: 3003 & gt; & Gt; Daychanges.diff ... svn diff -r 301 9: 3020 & gt; & Gt; Daychanges.diff How can I write such a script?
You can write bash in the for loop:
Given this, it should not be difficult to write a script which calls ends = 3001; Ends & lt; = 3025; Start ++, end ++)); Do svn diff -r $ start: $ finish; Did & gt; Outfile
or if you want, then the smaller version,
for ((i = 3000; i <3025; i ++ )); Do svn diff -r $ i: $ (($ i + 1)); Did & gt; In a multi-script: #! / Bin / bash $ start = $ 1 $ end = $ 2 $ outfile = $ 3 for
((start = $ start, end = $ start + 1; end & lt; = $ End; start ++, finish ++)) svn diff -r $ start: $ done done & gt; $ Outfile
(Skip the & gt; $ outfile if you want to manually redirect the script manually.)
Comments
Post a Comment