# HG changeset patch # User Mads Kiilerich # Date 2014-10-15 03:08:56 # Node ID 244dbb646ab7c90d09bf8bd60ffa7ca576823001 # Parent 2cd3fa4412dc059a4f11bdfa0f1339180a671c86 largefiles: inline redundant inctx function in status diff --git a/hgext/largefiles/reposetup.py b/hgext/largefiles/reposetup.py --- a/hgext/largefiles/reposetup.py +++ b/hgext/largefiles/reposetup.py @@ -90,15 +90,6 @@ def reposetup(ui, repo): working = ctx2.rev() is None parentworking = working and ctx1 == self['.'] - def inctx(file, ctx): - try: - if ctx.rev() is None: - return file in ctx.manifest() - ctx[file] - return True - except KeyError: - return False - if match is None: match = match_.always(self.root, self.getcwd()) @@ -182,7 +173,7 @@ def reposetup(ui, repo): for lfile in tocheck: standin = lfutil.standin(lfile) - if inctx(standin, ctx1): + if standin in ctx1: if ctx1[standin].data().strip() != \ lfutil.hashfile(self.wjoin(lfile)): modified.append(lfile)