comparison hgext/largefiles/reposetup.py @ 23090:24600c9d7f4e stable

largefiles: add examination of exec bit in "hg status --rev REV" case Before this patch, "hg status --rev REV" doesn't list largefiles up with "M" mark, even if exec bit of them is changed, because "lfilesrepo.status" doesn't examine exec bit in such case.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Tue, 28 Oct 2014 01:14:12 +0900
parents 197dc4580da2
children e53f6b72a0e4 7f8d27e1f862
comparison
equal deleted inserted replaced
23089:197dc4580da2 23090:24600c9d7f4e
172 modified, added, clean = [], [], [] 172 modified, added, clean = [], [], []
173 173
174 for lfile in tocheck: 174 for lfile in tocheck:
175 standin = lfutil.standin(lfile) 175 standin = lfutil.standin(lfile)
176 if standin in ctx1: 176 if standin in ctx1:
177 if ctx1[standin].data().strip() != \ 177 abslfile = self.wjoin(lfile)
178 lfutil.hashfile(self.wjoin(lfile)): 178 if ((ctx1[standin].data().strip() !=
179 lfutil.hashfile(abslfile)) or
180 (('x' in ctx1.flags(standin)) !=
181 bool(lfutil.getexecutable(abslfile)))):
179 modified.append(lfile) 182 modified.append(lfile)
180 elif listclean: 183 elif listclean:
181 clean.append(lfile) 184 clean.append(lfile)
182 else: 185 else:
183 added.append(lfile) 186 added.append(lfile)