comparison mercurial/dispatch.py @ 14863:1c148e935244 stable

dispatch: don't use request repo if we have --cwd
author Idan Kamara <idankk86@gmail.com>
date Mon, 11 Jul 2011 17:46:55 +0300
parents 1a9256cdf10f
children ad6a58581ecd 41c3a71c318d
comparison
equal deleted inserted replaced
14862:abf915f537be 14863:1c148e935244
631 631
632 repo = None 632 repo = None
633 cmdpats = args[:] 633 cmdpats = args[:]
634 if cmd not in commands.norepo.split(): 634 if cmd not in commands.norepo.split():
635 # use the repo from the request only if we don't have -R 635 # use the repo from the request only if we don't have -R
636 if not rpath: 636 if not rpath and not cwd:
637 repo = req.repo 637 repo = req.repo
638 638
639 if repo: 639 if repo:
640 # set the descriptors of the repo ui to those of ui 640 # set the descriptors of the repo ui to those of ui
641 repo.ui.fin = ui.fin 641 repo.ui.fin = ui.fin