docs: document how to strip changesets from a review repository; r?mcote
MozReview-Commit-ID: 9rLbw9zFOac
--- a/docs/hgmo/ops.rst
+++ b/docs/hgmo/ops.rst
@@ -135,16 +135,31 @@ Then, simply enter requested data in the
should be created.
.. note::
This requires root SSH access to reviewboard-hg1.dmz.scl.mozilla.com
and for the specified Bugzilla account to have admin privileges on
reviewboard.mozilla.org.
+Stripping Changesets from a Review Repository
+=============================================
+
+It is sometimes necessary to remove traces of a changeset from a **review**
+repository. This can be accomplished by running a command from a shell on
+a reviewboard-hg server::
+
+ $ cd /repo/hg/mozilla/<repo>
+ $ sudo -u hg /var/hg/venv_pash/bin/hg --config extensions.strip= strip -r <revision>
+
+.. important::
+
+ If the ``hg`` from the ``pash`` virtualenv isn't used, the pushlog may get
+ corrupted when running ``hg strip``.
+
Marking Repositories as Read-only
=================================
Repositories can be marked as read-only. When a repository is read-only,
pushes are denied with a message saying the repository is read-only.
To mark an individual repository as read-only, create a
``.hg/readonlyreason`` file. If the file has content, it will be printed