comparison 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
comparison
equal deleted inserted replaced
17772:823a7d79ef82 17773:434e5bd615fc
10 10
11 import os 11 import os
12 import shutil 12 import shutil
13 13
14 from mercurial import util, match as match_, hg, node, context, error, \ 14 from mercurial import util, match as match_, hg, node, context, error, \
15 cmdutil, scmutil 15 cmdutil, scmutil, commands
16 from mercurial.i18n import _ 16 from mercurial.i18n import _
17 from mercurial.lock import release 17 from mercurial.lock import release
18 18
19 import lfutil 19 import lfutil
20 import basestore 20 import basestore
547 ('', 'to-normal', False, 547 ('', 'to-normal', False,
548 _('convert from a largefiles repo to a normal repo')), 548 _('convert from a largefiles repo to a normal repo')),
549 ], 549 ],
550 _('hg lfconvert SOURCE DEST [FILE ...]')), 550 _('hg lfconvert SOURCE DEST [FILE ...]')),
551 } 551 }
552
553 commands.inferrepo += " lfconvert"