##// END OF EJS Templates
basectx: move flags from changectx
Sean Farley -
r19561:7806e635 default
parent child Browse files
Show More
@@ -113,6 +113,12 b' class basectx(object):'
113 def filenode(self, path):
113 def filenode(self, path):
114 return self._fileinfo(path)[0]
114 return self._fileinfo(path)[0]
115
115
116 def flags(self, path):
117 try:
118 return self._fileinfo(path)[1]
119 except error.LookupError:
120 return ''
121
116 class changectx(basectx):
122 class changectx(basectx):
117 """A changecontext object makes access to data related to a particular
123 """A changecontext object makes access to data related to a particular
118 changeset convenient. It represents a read-only context already presnt in
124 changeset convenient. It represents a read-only context already presnt in
@@ -334,12 +340,6 b' class changectx(basectx):'
334 troubles.append('divergent')
340 troubles.append('divergent')
335 return troubles
341 return troubles
336
342
337 def flags(self, path):
338 try:
339 return self._fileinfo(path)[1]
340 except error.LookupError:
341 return ''
342
343 def filectx(self, path, fileid=None, filelog=None):
343 def filectx(self, path, fileid=None, filelog=None):
344 """get a file context from this changeset"""
344 """get a file context from this changeset"""
345 if fileid is None:
345 if fileid is None:
General Comments 0
You need to be logged in to leave comments. Login now