obsstore: update create docstring to point to the coder friendly function
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 13 Feb 2014 17:33:45 -0800
changeset 20516 3af218cf2007
parent 20515 6afbfb9b1af1
child 20517 2158e8f3cbd2
obsstore: update create docstring to point to the coder friendly function The `obsstore` class have a `create` method that create new obsolescence marker from node. There is another function in the same module `createmarkers`. This other function is higher level and automatically missing meta data (ultimately calling the first one) We add a new comment in the docstring of `obsstore.create` highlighting that people writing new code probably want to use the top level one.
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Sat Feb 15 18:40:39 2014 +0900
+++ b/mercurial/obsolete.py	Thu Feb 13 17:33:45 2014 -0800
@@ -256,6 +256,9 @@
         * ensuring it is hashable
         * check mandatory metadata
         * encode metadata
+
+        If you are a human writing code creating marker you want to use the
+        `createmarkers` function in this module instead.
         """
         if metadata is None:
             metadata = {}