1

Used rcleartool> diff -g -pred myfile.xml to get the file differences grahically. But is there a way to save this diff file? For me the file save button is disabled. Any hints?

Ravi
  • 239
  • 2
  • 14

2 Answers2

1

I would start by omitting the -g (-graphical) optin of the diff command: that should yield a text result, that you can easily redirect to a file for saving its result.

rcleartool> diff -pred myfile.xm > res

You could do so from a regular CMD/bash session as well using rcleartool directly:

rcleartool diff -pred myfile.xm > res

See also "cleartool: how to write the result from command find to a text file".

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks, this also helped `https://stackoverflow.com/questions/14268596/cleartool-how-to-write-the-result-from-command-find-to-a-text-file` – Ravi Aug 14 '19 at 04:17
  • @Ravi True. I wrote it 6 years ago. – VonC Aug 14 '19 at 04:19
1

Also, the reason the save option is disabled is because the diff tool is also the merge tool. The "save" option is only enabled during a merge, and only when all unresolved merge points have been handled.

Brian Cowan
  • 1,048
  • 6
  • 7