comparison hgext/convert/cvsps.py @ 18286:762f12b8ebae

cvsps: fix indentation
author Idan Kamara <idankk86@gmail.com>
date Wed, 09 Jan 2013 21:11:00 +0200
parents 246f290e162a
children cfbd33020066
comparison
equal deleted inserted replaced
18285:9589227657bc 18286:762f12b8ebae
170 if cache == 'update': 170 if cache == 'update':
171 try: 171 try:
172 ui.note(_('reading cvs log cache %s\n') % cachefile) 172 ui.note(_('reading cvs log cache %s\n') % cachefile)
173 oldlog = pickle.load(open(cachefile)) 173 oldlog = pickle.load(open(cachefile))
174 for e in oldlog: 174 for e in oldlog:
175 if not (util.safehasattr(e, 'branchpoints') and 175 if not (util.safehasattr(e, 'branchpoints') and
176 util.safehasattr(e, 'commitid') and 176 util.safehasattr(e, 'commitid') and
177 util.safehasattr(e, 'mergepoint')): 177 util.safehasattr(e, 'mergepoint')):
178 ui.status(_('ignoring old cache\n')) 178 ui.status(_('ignoring old cache\n'))
179 oldlog = [] 179 oldlog = []
180 break 180 break
181 181
182 ui.note(_('cache has %d log entries\n') % len(oldlog)) 182 ui.note(_('cache has %d log entries\n') % len(oldlog))
183 except Exception, e: 183 except Exception, e:
184 ui.note(_('error reading cache: %r\n') % e) 184 ui.note(_('error reading cache: %r\n') % e)
185 185