##// END OF EJS Templates
merge with stable
Matt Mackall -
r23394:b5e2128c merge default
parent child Browse files
Show More
@@ -170,6 +170,7 def reposetup(ui, repo):
170 else:
170 else:
171 tocheck = unsure + modified + added + clean
171 tocheck = unsure + modified + added + clean
172 modified, added, clean = [], [], []
172 modified, added, clean = [], [], []
173 checkexec = self.dirstate._checkexec
173
174
174 for lfile in tocheck:
175 for lfile in tocheck:
175 standin = lfutil.standin(lfile)
176 standin = lfutil.standin(lfile)
@@ -177,7 +178,8 def reposetup(ui, repo):
177 abslfile = self.wjoin(lfile)
178 abslfile = self.wjoin(lfile)
178 if ((ctx1[standin].data().strip() !=
179 if ((ctx1[standin].data().strip() !=
179 lfutil.hashfile(abslfile)) or
180 lfutil.hashfile(abslfile)) or
180 (('x' in ctx1.flags(standin)) !=
181 (checkexec and
182 ('x' in ctx1.flags(standin)) !=
181 bool(lfutil.getexecutable(abslfile)))):
183 bool(lfutil.getexecutable(abslfile)))):
182 modified.append(lfile)
184 modified.append(lfile)
183 elif listclean:
185 elif listclean:
@@ -608,6 +608,31 the working context)
608 $ hg status -A --rev '.^1' large2
608 $ hg status -A --rev '.^1' large2
609 M large2
609 M large2
610
610
611 #else
612
613 Test that "hg status" against revisions other than parent ignores exec
614 bit correctly on the platform being unaware of it.
615
616 $ hg update -q -C 4
617
618 $ cat > exec-bit.patch <<EOF
619 > # HG changeset patch
620 > # User test
621 > # Date 0 0
622 > # Thu Jan 01 00:00:00 1970 +0000
623 > # Node ID be1b433a65b12b27b5519d92213e14f7e1769b90
624 > # Parent 07d6153b5c04313efb75deec9ba577de7faeb727
625 > chmod +x large2
626 >
627 > diff --git a/.hglf/large2 b/.hglf/large2
628 > old mode 100644
629 > new mode 100755
630 > EOF
631 $ hg import --exact --bypass exec-bit.patch
632 applying exec-bit.patch
633 $ hg status -A --rev tip large2
634 C large2
635
611 #endif
636 #endif
612
637
613 $ cd ..
638 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now