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: |
General Comments 0
You need to be logged in to leave comments.
Login now