diff mercurial/commands.py @ 17773:434e5bd615fc

commands: don't infer repo for commands like update (issue2748) Maintain a whitelist of commands to infer the repo for instead. The whitelist contains those commands that take file(s) in the working dir as arguments.
author Siddharth Agarwal <sid0@fb.com>
date Tue, 16 Oct 2012 11:43:15 -0700
parents 1c523c4008f7
children 9912baaae7df
line wrap: on
line diff
--- a/mercurial/commands.py	Mon Oct 15 09:43:34 2012 -0700
+++ b/mercurial/commands.py	Tue Oct 16 11:43:15 2012 -0700
@@ -5911,3 +5911,5 @@
           " debugknown debuggetbundle debugbundle")
 optionalrepo = ("identify paths serve showconfig debugancestor debugdag"
                 " debugdata debugindex debugindexdot debugrevlog")
+inferrepo = ("add addremove annotate cat commit diff grep forget log parents"
+             " remove resolve status debugwalk")