85 _updatetags(filetags, "local", alltags, tagtypes) |
85 _updatetags(filetags, "local", alltags, tagtypes) |
86 |
86 |
87 def _readtaghist(ui, repo, lines, fn, recode=None, calcnodelines=False): |
87 def _readtaghist(ui, repo, lines, fn, recode=None, calcnodelines=False): |
88 '''Read tag definitions from a file (or any source of lines). |
88 '''Read tag definitions from a file (or any source of lines). |
89 This function returns two sortdicts with similar information: |
89 This function returns two sortdicts with similar information: |
90 - the first dict, bingtaglist, contains the tag information as expected by |
90 - the first dict, bintaghist, contains the tag information as expected by |
91 the _readtags function, i.e. a mapping from tag name to (node, hist): |
91 the _readtags function, i.e. a mapping from tag name to (node, hist): |
92 - node is the node id from the last line read for that name, |
92 - node is the node id from the last line read for that name, |
93 - hist is the list of node ids previously associated with it (in file |
93 - hist is the list of node ids previously associated with it (in file |
94 order). All node ids are binary, not hex. |
94 order). All node ids are binary, not hex. |
95 - the second dict, hextaglines, is a mapping from tag name to a list of |
95 - the second dict, hextaglines, is a mapping from tag name to a list of |