hgext/convert/cvsps.py
changeset 50928 d718eddf01d9
parent 49904 f3e95e5a5895
child 51129 1625fe807c04
equal deleted inserted replaced
50927:7a8ea1397816 50928:d718eddf01d9
   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                     util.safehasattr(e, b'branchpoints')
   201                     hasattr(e, b'branchpoints')
   202                     and util.safehasattr(e, b'commitid')
   202                     and hasattr(e, b'commitid')
   203                     and util.safehasattr(e, b'mergepoint')
   203                     and hasattr(e, b'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