[PATCH] dispatch: don't use request repo if we have --cwd

Idan Kamara idankk86 at gmail.com
Mon Jul 11 09:47:34 CDT 2011


# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1310395615 -10800
# Node ID 2f3e7fc16f69a36832f67dc588dbeb0ff40015eb
# Parent  09c9c120a817eae47152ab527ac0dad24016b268
dispatch: don't use request repo if we have --cwd

diff -r 09c9c120a817 -r 2f3e7fc16f69 mercurial/dispatch.py
--- a/mercurial/dispatch.py	Wed Jul 06 19:25:56 2011 -0500
+++ b/mercurial/dispatch.py	Mon Jul 11 17:46:55 2011 +0300
@@ -633,7 +633,7 @@
     cmdpats = args[:]
     if cmd not in commands.norepo.split():
         # use the repo from the request only if we don't have -R
-        if not rpath:
+        if not rpath and not cwd:
             repo = req.repo
 
         if repo:


More information about the Mercurial-devel mailing list