##// END OF EJS Templates
flags: read flag from dirstate/disk for workingcopyctx (issue5743)...
marmoute -
r45399:4234c9af stable
parent child Browse files
Show More
@@ -1458,6 +1458,18 b' class committablectx(basectx):'
1458 1458 def children(self):
1459 1459 return []
1460 1460
1461 def flags(self, path):
1462 if '_manifest' in self.__dict__:
1463 try:
1464 return self._manifest.flags(path)
1465 except KeyError:
1466 return b''
1467
1468 try:
1469 return self._flagfunc(path)
1470 except OSError:
1471 return b''
1472
1461 1473 def ancestor(self, c2):
1462 1474 """return the "best" ancestor context of self and c2"""
1463 1475 return self._parents[0].ancestor(c2) # punt on two parents for now
@@ -1594,12 +1606,6 b' class workingctx(committablectx):'
1594 1606 return self._repo.dirstate.flagfunc(self._buildflagfunc)
1595 1607
1596 1608 def flags(self, path):
1597 if '_manifest' in self.__dict__:
1598 try:
1599 return self._manifest.flags(path)
1600 except KeyError:
1601 return b''
1602
1603 1609 try:
1604 1610 return self._flagfunc(path)
1605 1611 except OSError:
@@ -209,6 +209,5 b' merge them (from the chmod side)'
209 209 a
210 210 R a
211 211 $ [ -x z ] || echo "executable bit lost"
212 executable bit lost
213 212
214 213 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now