##// 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 self._parents = [changectx(self._repo, x) for x in p]
642 self._parents = [changectx(self._repo, x) for x in p]
643 return self._parents
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 def manifest(self):
654 def manifest(self):
646 return self._manifest
655 return self._manifest
647 def user(self):
656 def user(self):
@@ -663,8 +672,10 b' class workingctx(changectx):'
663 return self._status[3]
672 return self._status[3]
664 def unknown(self):
673 def unknown(self):
665 return self._status[4]
674 return self._status[4]
675 def ignored(self):
676 return self._status[5]
666 def clean(self):
677 def clean(self):
667 return self._status[5]
678 return self._status[6]
668 def branch(self):
679 def branch(self):
669 return self._extra['branch']
680 return self._extra['branch']
670 def extra(self):
681 def extra(self):
@@ -878,8 +889,10 b' class memctx(object):'
878 return self._status[3]
889 return self._status[3]
879 def unknown(self):
890 def unknown(self):
880 return self._status[4]
891 return self._status[4]
892 def ignored(self):
893 return self._status[5]
881 def clean(self):
894 def clean(self):
882 return self._status[5]
895 return self._status[6]
883 def branch(self):
896 def branch(self):
884 return self._extra['branch']
897 return self._extra['branch']
885 def extra(self):
898 def extra(self):
General Comments 0
You need to be logged in to leave comments. Login now