changeset 1504:c65a7065910c

Patch.shortSummary Ignore-this: 7fc381ee3d868fbebb9d0358c89ed6aa
author drewp@bigasterisk.com
date Sat, 20 Aug 2016 05:39:40 +0000
parents b91e8f26650e
children e917fb4eea3a
files light9/rdfdb/patch.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/light9/rdfdb/patch.py	Thu Jun 16 06:17:13 2016 +0000
+++ b/light9/rdfdb/patch.py	Sat Aug 20 05:39:40 2016 +0000
@@ -62,7 +62,10 @@
         delLines = ["  -%s" % formatQuad(q) for q in self.delQuads]
         addLines = ["  +%s" % formatQuad(q) for q in self.addQuads]
         return "\nPatch:\n" + "\n".join(delLines) + "\n" + "\n".join(addLines)
-                
+
+    def shortSummary(self):
+        return "[-%s +%s]" % (len(self.delQuads), len(self.addQuads))
+        
     @classmethod
     def fromDiff(cls, oldGraph, newGraph):
         """