comparison hgext/record.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 cd73bbc99bdc
children 09a2b6741695
comparison
equal deleted inserted replaced
17772:823a7d79ef82 17773:434e5bd615fc
665 _("interactively select changes to refresh")) 665 _("interactively select changes to refresh"))
666 666
667 def _wrapcmd(cmd, table, wrapfn, msg): 667 def _wrapcmd(cmd, table, wrapfn, msg):
668 entry = extensions.wrapcommand(table, cmd, wrapfn) 668 entry = extensions.wrapcommand(table, cmd, wrapfn)
669 entry[1].append(('i', 'interactive', None, msg)) 669 entry[1].append(('i', 'interactive', None, msg))
670
671 commands.inferrepo += " record qrecord"