hgext/convert/cvsps.py
branchstable
changeset 51130 de9cbc5a1450
parent 50951 d718eddf01d9
equal deleted inserted replaced
51129:d45afa07564c 51130:de9cbc5a1450
   196         try:
   196         try:
   197             ui.note(_(b'reading cvs log cache %s\n') % cachefile)
   197             ui.note(_(b'reading cvs log cache %s\n') % cachefile)
   198             oldlog = pickle.load(open(cachefile, b'rb'))
   198             oldlog = pickle.load(open(cachefile, b'rb'))
   199             for e in oldlog:
   199             for e in oldlog:
   200                 if not (
   200                 if not (
   201                     hasattr(e, b'branchpoints')
   201                     hasattr(e, 'branchpoints')
   202                     and hasattr(e, b'commitid')
   202                     and hasattr(e, 'commitid')
   203                     and hasattr(e, b'mergepoint')
   203                     and hasattr(e, 'mergepoint')
   204                 ):
   204                 ):
   205                     ui.status(_(b'ignoring old cache\n'))
   205                     ui.status(_(b'ignoring old cache\n'))
   206                     oldlog = []
   206                     oldlog = []
   207                     break
   207                     break
   208 
   208