diff -r 1350b9170089 -r 46c5983ce48f hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py Fri Oct 03 00:42:40 2014 +0200 +++ b/hgext/largefiles/overrides.py Wed Oct 15 05:08:56 2014 +0200 @@ -351,11 +351,12 @@ # largefiles getting updated wlock = repo.wlock() try: - lfdirstate = lfutil.openlfdirstate(ui, repo) - unsure, s = lfdirstate.status(match_.always(repo.root, repo.getcwd()), - [], False, False, False) + if opts['check']: + lfdirstate = lfutil.openlfdirstate(ui, repo) + unsure, s = lfdirstate.status( + match_.always(repo.root, repo.getcwd()), + [], False, False, False) - if opts['check']: mod = len(s.modified) > 0 for lfile in unsure: standin = lfutil.standin(lfile)