+
+ @with_working_copy_locked
+ def add_page_tag(self, title, rev, tag, user = "<wiki>", doctag = True):
+ if doctag:
+ tag = "{title}#{tag}".format(**locals())
+
+ message = "Assigned tag {tag} to version {rev} of {title}".format(**locals())
+
+ fctx = self._find_filectx(title, rev)
+ self.repo.tag(
+ names = tag, node = fctx.node(), local = False,
+ user = user, message = message, date = None
+ )