Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph

patchctx: added stub kbfiles methods

The hasattr check in filelistmodel is now no longer needed.

Changeset dee65b2950ca

Parent b97ce07e548c

by David Golub

Changes to 2 files · Browse files at dee65b2950ca Showing diff from parent b97ce07e548c Diff from another changeset...

 
144
145
146
147
148
 
149
150
151
 
144
145
146
 
 
147
148
149
150
@@ -144,8 +144,7 @@
  for lst, flag in ((added, 'A'), (modified, 'M'), (removed, 'R')):   for f in filter(func, lst):   wasmerged = ismerge and f in ctxfiles - if hasattr(self._ctx, 'removeKbf'): - f = self._ctx.removeKbf(f) + f = self._ctx.removeKbf(f)   files.append({'path': f, 'status': flag, 'parent': parent,   'wasmerged': wasmerged})   return files
 
128
129
130
 
 
 
 
 
131
132
133
 
128
129
130
131
132
133
134
135
136
137
138
@@ -128,6 +128,11 @@
  def thgmqunappliedpatch(self): return True   def thgid(self): return self._identity   + # kbfiles methods + def hasBfile(self, file): return False + def isKbf(self, path): return False + def removeKbf(self, path): return path +   def longsummary(self):   summary = hglib.tounicode(self.description())   if self._repo.ui.configbool('tortoisehg', 'longsummary'):