@hgcommand
def clpatch(ui, repo, clname, **opts):
 if (not workbranch(repo[None].branch())):
  raise hg_util.Abort('cannot run hg clpatch outside default branch')
 err = clpatch_or_undo(ui, repo, clname, opts, mode='clpatch')
 if err:
  raise hg_util.Abort(err)

@ hgcommand def clpatch ( ui , repo , clname , ** opts ) : if ( not workbranch ( repo [ None ] . branch ( ) ) ) : raise hg_util . Abort ( 'cannot run hg clpatch outside default branch' ) err = clpatch_or_undo ( ui , repo , clname , opts , mode = 'clpatch' ) if err : raise hg_util . Abort ( err )
import a patch from the code review server imports a patch from the code review server into the local client .