# HG changeset patch # User Pierre-Yves David # Date 1407833378 25200 # Node ID e75b1a3c1dbcdb0a0ec5018bd233cf7f80952281 # Parent 908c76e84ec5db8c6aa564ac8a56ce9abf2d3ea1 obsstore: add fields attribute to track each field in a marker We are going to increase the amount of data explicitly stored in obsolescence markers. This mean we are going to have a longer tuple and some values will be shuffled around. So we add a ``fields`` attribute to the obsstore class to keep track of what entry is what. This will be useful for extensions and for documentation purpose. diff -r 908c76e84ec5 -r e75b1a3c1dbc mercurial/obsolete.py --- a/mercurial/obsolete.py Wed Aug 13 23:42:36 2014 -0700 +++ b/mercurial/obsolete.py Tue Aug 12 01:49:38 2014 -0700 @@ -238,6 +238,8 @@ - successors[x] -> set(markers on successors edges of x) """ + fields = ('prec', 'succs', 'flag', 'meta') + def __init__(self, sopener): # caches for various obsolescence related cache self.caches = {}