I am new to accurev, used to use SVN earlier. I want to a get diff file consisting of all the changes in kept files in a given directory. I know ac diff -b <file>
gives diff in a file, but if I have many files and I want the diff of all the kept files in a given directory, is there a straight forward command to do this like svn diff?
Asked
Active
Viewed 1,383 times
0

learningtocode
- 755
- 2
- 13
- 27
2 Answers
1
You are going to need to create a script if you only want to diff kept files in a given directory. Basically you will run an 'accurev stat -k' -> parse output for given directory -> 'accurev diff -b'

jstanley
- 2,087
- 15
- 22
-
something like this, ac stat -k TestCases/*|sed -n 's/[\S]*\s.*//p'|xargs ac diff -b..But I ended up using a gui client which made it all much simpler. – learningtocode Mar 17 '14 at 21:52
0
On a *NIX machine the commands below work nicely.
The -k option to AccuRev's stat command says find the file with "(kept)" status. Using the -fal options to stat provides just the Depot relative pathway to the file. No addition filtering needed. So the command line would be:
accurev stat -k -fal | xargs accurev diff -b
Produces output like:
accurev stat -k -fal | xargs accurev diff -b
diffing element /./COPYING
341a342
> Tue Mar 18 08:38:39 EDT 2014
> Change for demo purposes.
diffing element /./INSTALL
3a4,7
> New Change
>
> Another Change
>
Dave

David Howland
- 402
- 2
- 3