Patchwork [3,of,6] commands: add postincoming docstring for explanation of arguments

login
register
mail settings
Submitter Katsunori FUJIWARA
Date March 11, 2016, 7:41 p.m.
Message ID <bea5e68aafac6a1f2ce9.1457725268@feefifofum>
Download mbox | patch
Permalink /patch/13812/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - March 11, 2016, 7:41 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1457724942 -32400
#      Sat Mar 12 04:35:42 2016 +0900
# Node ID bea5e68aafac6a1f2ce960ff13a9512f8349dd7e
# Parent  11fba7de558eba79a4c80c3bfd0e85113e23eeb8
commands: add postincoming docstring for explanation of arguments

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -5615,6 +5615,15 @@  def phase(ui, repo, *revs, **opts):
     return ret
 
 def postincoming(ui, repo, modheads, optupdate, checkout, brev):
+    """Run after a changegroup has been added via pull/unbundle
+
+    This takes arguments below:
+
+    :modheads: change of heads by pull/unbundle
+    :optupdate: updating working directory is needed or not
+    :checkout: update destination revision (or None to default destination)
+    :brev: a name, which might be a bookmark to be activated after updating
+    """
     if modheads == 0:
         return
     if optupdate: