equal
deleted
inserted
replaced
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: |