diff hgext/extdiff.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 e7cfe3587ea4
children 2aafd5854243
line wrap: on
line diff
--- a/hgext/extdiff.py	Mon Oct 15 09:43:34 2012 -0700
+++ b/hgext/extdiff.py	Tue Oct 16 11:43:15 2012 -0700
@@ -329,3 +329,5 @@
         cmdtable[cmd] = (save(cmd, path, diffopts),
                          cmdtable['extdiff'][1][1:],
                          _('hg %s [OPTION]... [FILE]...') % cmd)
+
+commands.inferrepo += " extdiff"