# HG changeset patch # User Siddharth Agarwal # Date 1350412995 25200 # Node ID 446f29d6074926cd4d7f3f6a9502bf897f1470fc # Parent 38b7bb8f1c85458984fe0b326a61d22017598c50 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 ] diff -r 38b7bb8f1c85 -r 446f29d60749 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"