hgext/convert/cvsps.py
changeset 51129 1625fe807c04
parent 50928 d718eddf01d9
child 51687 1eab9e40c0c8
equal deleted inserted replaced
51124:80bda4254b84 51129:1625fe807c04
   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