comparison fetch_command.py @ 237:c90cfa665b81

Cope with date-less revisions.
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Wed, 08 Apr 2009 13:07:23 +0200
parents 33e885f5f86a
children e2214c8fc91f
comparison
equal deleted inserted replaced
236:c34abd2448b7 237:c90cfa665b81
584 if child.branch() == 'closed-branches': 584 if child.branch() == 'closed-branches':
585 is_closed = True 585 is_closed = True
586 break 586 break
587 if not is_closed: 587 if not is_closed:
588 deleted_branches[branch] = branchtip 588 deleted_branches[branch] = branchtip
589 date = r.date.replace('T', ' ').replace('Z', '').split('.')[0] 589
590 date += ' -0000' 590 date = hg_editor.fixdate(r.date)
591 check_deleted_branches = set() 591 check_deleted_branches = set()
592 for b in branches: 592 for b in branches:
593 parentctx = hg_editor.repo[hg_editor.get_parent_revision(r.revnum, b)] 593 parentctx = hg_editor.repo[hg_editor.get_parent_revision(r.revnum, b)]
594 if parentctx.branch() != (b or 'default'): 594 if parentctx.branch() != (b or 'default'):
595 check_deleted_branches.add(b) 595 check_deleted_branches.add(b)