# HG changeset patch # User Pierre-Yves David # Date 1392341625 28800 # Node ID 3af218cf20079a51bfb9df393b3bac334b77b6f9 # Parent 6afbfb9b1af14836532aee9f81c06f6fbd6d5451 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. diff -r 6afbfb9b1af1 -r 3af218cf2007 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 = {}