mercurial/bookmarks.py
changeset 49248 63fd0282ad40
parent 49025 f808417db5cc
child 49306 2e726c934fcd
equal deleted inserted replaced
49247:3e5f1fb2aec7 49248:63fd0282ad40
    99                             else:
    99                             else:
   100                                 nrefs.append(refspec)
   100                                 nrefs.append(refspec)
   101                                 if nrefs[-2] > refspec:
   101                                 if nrefs[-2] > refspec:
   102                                     # bookmarks weren't sorted before 4.5
   102                                     # bookmarks weren't sorted before 4.5
   103                                     nrefs.sort()
   103                                     nrefs.sort()
   104                     except (TypeError, ValueError):
   104                     except ValueError:
   105                         # TypeError:
   105                         # binascii.Error (ValueError subclass):
   106                         # - bin(...)
   106                         # - bin(...)
   107                         # ValueError:
   107                         # ValueError:
   108                         # - node in nm, for non-20-bytes entry
   108                         # - node in nm, for non-20-bytes entry
   109                         # - split(...), for string without ' '
   109                         # - split(...), for string without ' '
   110                         bookmarkspath = b'.hg/bookmarks'
   110                         bookmarkspath = b'.hg/bookmarks'