Set new_rev var to avoid reference before assignment
Merge pull request #11751 from cachedout/11596

Set new_rev var to avoid reference before assignment