mercurial/bookmarks.py
branchstable
changeset 44778 f189c5280d48
parent 44406 8407031f195f
child 45928 9acbe30953e8
equal deleted inserted replaced
44777:edffab2cf0ea 44778:f189c5280d48
   752             )
   752             )
   753 
   753 
   754     if changed:
   754     if changed:
   755         tr = trfunc()
   755         tr = trfunc()
   756         changes = []
   756         changes = []
   757         for b, node, writer, msg in sorted(changed):
   757         key = lambda t: (t[0], t[1] or b'')
       
   758         for b, node, writer, msg in sorted(changed, key=key):
   758             changes.append((b, node))
   759             changes.append((b, node))
   759             writer(msg)
   760             writer(msg)
   760         localmarks.applychanges(repo, tr, changes)
   761         localmarks.applychanges(repo, tr, changes)
   761 
   762 
   762 
   763