Search code examples
patchaccurev

How do I get a patch file in AccuRev?


The man page seems simple enough:

accurev diff -- -p

however I haven't "kept" anything and I absolutely do not want to keep anything. I want a patch file that expresses the changes I've edited into the code. Nope. Apparently you have to keep it first. I guess I need another workspace and diff the files one by one? Please tell me AccuRev is not that brain damaged! :( Thank you!

That's what I'll do for today, but I hope there is a better answer.


Solution

  • list=$(accurev stat -m | awk '{print $1}')
    for f in $list ; do
       accurev diff -b ${f#./} -- -p
    done > patch-file
    

    Too hard. Too non-obvious.