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

fogcreek patchctx: added stub kbfiles methods

The hasattr check in filelistmodel is now no longer needed.

Changeset 273b179a0014

Parent db8d3f547aa0

by David Golub

Changes to 2 files · Browse files at 273b179a0014 Showing diff from parent db8d3f547aa0 Diff from another changeset...

 
146
147
148
149
150
 
151
152
153
 
146
147
148
 
 
149
150
151
152
@@ -146,8 +146,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'):