Subversion Repositories DevTools

Rev

Rev 4226 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4226 Rev 4918
Line 2... Line 2...
2
REM
2
REM
3
REM Limit the property chnages that a user can make to:
3
REM Limit the property chnages that a user can make to:
4
REM     svn:log (commit comment)
4
REM     svn:log (commit comment)
5
REM     Made by themselves only
5
REM     Made by themselves only
6
REM     On the same day    
6
REM     On the same day    
-
 
7
REM			[Now allow change to log made on any day]
7
REM
8
REM
8
REM Args %1 - Repo Path
9
REM Args %1 - Repo Path
9
REM      %2 - Rev to be changed
10
REM      %2 - Rev to be changed
10
REM      %3 - Authenticated user name
11
REM      %3 - Authenticated user name
11
REM      %4 - Name of property to be changed
12
REM      %4 - Name of property to be changed
Line 28... Line 29...
28
REM     User can only modify his own comments
29
REM     User can only modify his own comments
29
set muser=error
30
set muser=error
30
for /f "delims=" %%a in ('%SVNLOOK%  author -r %2 %1 ') do @set muser=%%a
31
for /f "delims=" %%a in ('%SVNLOOK%  author -r %2 %1 ') do @set muser=%%a
31
if NOT %muser%==%3 goto BADUSER
32
if NOT %muser%==%3 goto BADUSER
32
 
33
 
-
 
34
REM     User is allowed to modify comment [Age not longer considered]
-
 
35
goto OK
-
 
36
 
33
REM     User can only modify comments made on the same day
37
REM     User can only modify comments made on the same day
34
set datestamp=error
38
set datestamp=error
35
set today=error
39
set today=error
36
 
40
 
37
for /f "delims=" %%a in ('%SVNLOOK%  date -r %2 %1 ') do @set datestamp=%%a
41
for /f "delims=" %%a in ('%SVNLOOK%  date -r %2 %1 ') do @set datestamp=%%a