Merge change 10282

* changes:
  Don't allow commits to replace in wrong project