comparison mercurial/commands.py @ 28502:e0d19d955608

commands: add postincoming docstring for explanation of arguments
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Sat, 12 Mar 2016 04:35:42 +0900
parents 66513f6ca038
children b7a31068cc80
comparison
equal deleted inserted replaced
28501:66513f6ca038 28502:e0d19d955608
5613 else: 5613 else:
5614 ui.warn(_('no phases changed\n')) 5614 ui.warn(_('no phases changed\n'))
5615 return ret 5615 return ret
5616 5616
5617 def postincoming(ui, repo, modheads, optupdate, checkout, brev): 5617 def postincoming(ui, repo, modheads, optupdate, checkout, brev):
5618 """Run after a changegroup has been added via pull/unbundle
5619
5620 This takes arguments below:
5621
5622 :modheads: change of heads by pull/unbundle
5623 :optupdate: updating working directory is needed or not
5624 :checkout: update destination revision (or None to default destination)
5625 :brev: a name, which might be a bookmark to be activated after updating
5626 """
5618 if modheads == 0: 5627 if modheads == 0:
5619 return 5628 return
5620 if optupdate: 5629 if optupdate:
5621 try: 5630 try:
5622 return hg.updatetotally(ui, repo, checkout, brev) 5631 return hg.updatetotally(ui, repo, checkout, brev)