Question

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 $
Was it helpful?

Solution 2

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

OTHER TIPS

What does 'p4 filelog //mydepo/myfile' say?

It sounds like you submitted a second revision with no changes (other than the $Id$ expansion is different since it's a new revision). Are you saying that 'revert -a' didn't revert this otherwise-empty change?

You might want to look into the "revertunchanged" option on the workspace definition to avoid this in the future.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top