commands: don't infer repo for commands like update (issue2748) stable
authorSiddharth Agarwal <sid0@fb.com>
Tue, 16 Oct 2012 11:43:15 -0700
branchstable
changeset 1145 446f29d60749
parent 1143 38b7bb8f1c85
child 1146 4139577a1e2a
child 1148 c4e68bf38b1a
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. [ original upstream message ]
hgkw/keyword.py
--- a/hgkw/keyword.py	Thu Oct 11 16:05:14 2012 -0700
+++ b/hgkw/keyword.py	Tue Oct 16 11:43:15 2012 -0700
@@ -728,3 +728,5 @@
             pass
 
     repo.__class__ = kwrepo
+
+commands.inferrepo += " kwexpand kwfiles kwshrink"