Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/lfcommands.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 | 31f32a96e1e3 |
children | 0fc1ce271ee6 |
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py Mon Oct 15 09:43:34 2012 -0700 +++ b/hgext/largefiles/lfcommands.py Tue Oct 16 11:43:15 2012 -0700 @@ -12,7 +12,7 @@ import shutil from mercurial import util, match as match_, hg, node, context, error, \ - cmdutil, scmutil + cmdutil, scmutil, commands from mercurial.i18n import _ from mercurial.lock import release @@ -549,3 +549,5 @@ ], _('hg lfconvert SOURCE DEST [FILE ...]')), } + +commands.inferrepo += " lfconvert"