# HG changeset patch # User Mads Kiilerich # Date 2014-10-15 03:08:56 # Node ID 46c5983ce48f15fd5fb20722f380dbef90fe077d # Parent 1350b9170089dab24b1cc0796e984ad4a3c8562d largefiles: the update override only needs lfdirstate and status for --check diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py +++ b/hgext/largefiles/overrides.py @@ -351,11 +351,12 @@ def overrideupdate(orig, ui, repo, *pats # 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)