perforcerevertversion-control-keywords

Revert files with only keywords changed in Perforce


Is it possible to automatically revert a file in Perforce if there are only keyword changes? "p4 revert -a" will revert only those file that do not have any diff, but is it actually possible to revert if diff is similar to:

< @version $Id: //mydepo/myfile#1 $
> @version $Id: //mydepo/myfile#2 $

Solution

  • Well, I think I found a solution in a custom diff: http://pesche.schlau.ch/2007/07/03/merge-down-copy-up/