mercurial/tags.py
changeset 24143 7b09dbbbd502
parent 23877 7cc77030c557
child 24445 c71edbafe603
equal deleted inserted replaced
24142:be7cb25186be 24143:7b09dbbbd502
   335     # Tag names in the cache are in UTF-8 -- which is the whole reason
   335     # Tag names in the cache are in UTF-8 -- which is the whole reason
   336     # we keep them in UTF-8 throughout this module.  If we converted
   336     # we keep them in UTF-8 throughout this module.  If we converted
   337     # them local encoding on input, we would lose info writing them to
   337     # them local encoding on input, we would lose info writing them to
   338     # the cache.
   338     # the cache.
   339     cachefile.write('\n')
   339     cachefile.write('\n')
   340     for (name, (node, hist)) in cachetags.iteritems():
   340     for (name, (node, hist)) in sorted(cachetags.iteritems()):
   341         for n in hist:
   341         for n in hist:
   342             cachefile.write("%s %s\n" % (hex(n), name))
   342             cachefile.write("%s %s\n" % (hex(n), name))
   343         cachefile.write("%s %s\n" % (hex(node), name))
   343         cachefile.write("%s %s\n" % (hex(node), name))
   344 
   344 
   345     try:
   345     try: