Implementing revision operations in `peer.py`.