##// END OF EJS Templates
largefiles: add examination of exec bit in "hg status --rev REV" case...
FUJIWARA Katsunori -
r23090:24600c9d stable
parent child Browse files
Show More
@@ -174,8 +174,11 b' def reposetup(ui, repo):'
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)
@@ -552,4 +552,31 b' in the target context.'
552 R largeX
552 R largeX
553 $ hg status -A --rev '.^1' largeX
553 $ hg status -A --rev '.^1' largeX
554
554
555 #if execbit
556
557 Test that "hg status" against revisions other than parent notices exec
558 bit changes of largefiles.
559
560 $ hg update -q -C 4
561
562 (the case that large2 doesn't have exec bit in the target context but
563 in the working context)
564
565 $ chmod +x large2
566 $ hg status -A --rev 0 large2
567 M large2
568 $ hg commit -m 'chmod +x large2'
569
570 (the case that large2 has exec bit in the target context but not in
571 the working context)
572
573 $ echo dummy > dummy
574 $ hg add dummy
575 $ hg commit -m 'revision for separation'
576 $ chmod -x large2
577 $ hg status -A --rev '.^1' large2
578 M large2
579
580 #endif
581
555 $ cd ..
582 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now