##// END OF EJS Templates
workingctx: add explicit status method, add ignored and fix clean...
Steve Borho -
r11098:380ab78d default
parent child Browse files
Show More
@@ -642,6 +642,15 b' class workingctx(changectx):'
642 642 self._parents = [changectx(self._repo, x) for x in p]
643 643 return self._parents
644 644
645 def status(self, ignored=False, clean=False, unknown=False):
646 """Explicit status query
647 Unless this method is used to query the working copy status, the
648 _status property will implicitly read the status using its default
649 arguments."""
650 self._status = self._repo.status(ignored=ignored, clean=clean,
651 unknown=unknown)
652 return self._status
653
645 654 def manifest(self):
646 655 return self._manifest
647 656 def user(self):
@@ -663,8 +672,10 b' class workingctx(changectx):'
663 672 return self._status[3]
664 673 def unknown(self):
665 674 return self._status[4]
675 def ignored(self):
676 return self._status[5]
666 677 def clean(self):
667 return self._status[5]
678 return self._status[6]
668 679 def branch(self):
669 680 return self._extra['branch']
670 681 def extra(self):
@@ -878,8 +889,10 b' class memctx(object):'
878 889 return self._status[3]
879 890 def unknown(self):
880 891 return self._status[4]
892 def ignored(self):
893 return self._status[5]
881 894 def clean(self):
882 return self._status[5]
895 return self._status[6]
883 896 def branch(self):
884 897 return self._extra['branch']
885 898 def extra(self):
General Comments 0
You need to be logged in to leave comments. Login now