mercurial/dispatch.py
branchstable
changeset 14712 8a62bae94425
parent 14708 8083f4d00bd1
child 14727 d4b9d3b91ce7
equal deleted inserted replaced
14711:ac70f8d5987c 14712:8a62bae94425
   652     d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
   652     d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
   653     try:
   653     try:
   654         return runcommand(lui, repo, cmd, fullargs, ui, options, d,
   654         return runcommand(lui, repo, cmd, fullargs, ui, options, d,
   655                           cmdpats, cmdoptions)
   655                           cmdpats, cmdoptions)
   656     finally:
   656     finally:
   657         if repo:
   657         if repo != req.repo:
   658             repo.close()
   658             repo.close()
   659 
   659 
   660 def _runcommand(ui, options, cmd, cmdfunc):
   660 def _runcommand(ui, options, cmd, cmdfunc):
   661     def checkargs():
   661     def checkargs():
   662         try:
   662         try: