Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/olpc/datastore/hg_backingstore.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/olpc/datastore/hg_backingstore.py')
-rw-r--r--src/olpc/datastore/hg_backingstore.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/olpc/datastore/hg_backingstore.py b/src/olpc/datastore/hg_backingstore.py
index 7a4d1ba..dad8987 100644
--- a/src/olpc/datastore/hg_backingstore.py
+++ b/src/olpc/datastore/hg_backingstore.py
@@ -315,6 +315,32 @@ class HgBackingStore(FileBackingStore):
return open(target, 'rw')
+ def tags(self, uid, tags):
+ """ apply tags to a version of a document, there are cases
+ where some tags apply to all versions of a document and others
+ where they apply to a specific revision.
+
+ By default tags apply to all revisions but if they end with :0
+ then they are demarked as being version specific
+
+ for example
+
+ >>> ds.tags(uid, "foo bar")
+
+ would mark all instances of uid with the tags foo and bar
+
+ while
+
+ >>> ds.tags(uid, "foo bar:0")
+
+ would mark all instances of this uid with "foo" and this
+ specific instance with "bar". No version changes would be
+ created to any versions using this call.
+ """
+ pass
+
+
+
def checkin(self, props, filelike):
"""create or update the content object, creating a new
version"""