##// END OF EJS Templates
transaction: drive the aberratant branch special case away...
marmoute -
r51163:ffdfb106 default
parent child Browse files
Show More
@@ -692,10 +692,6 b' class transaction(util.transactional):'
692 if entries:
692 if entries:
693 return False
693 return False
694 for e in self._backupentries:
694 for e in self._backupentries:
695 if e[0] == b'plain' and e[1] == b'branch':
696 # XXX integrate branch to the transaction and get rid of this
697 # aberration
698 continue
699 if e[1]:
695 if e[1]:
700 return False
696 return False
701 return True
697 return True
@@ -705,9 +701,6 b' class transaction(util.transactional):'
705 assert self._can_quick_abort(entries)
701 assert self._can_quick_abort(entries)
706 tmp_files = [e for e in self._backupentries if not e[1]]
702 tmp_files = [e for e in self._backupentries if not e[1]]
707 for vfs_id, old_path, tmp_path, xxx in tmp_files:
703 for vfs_id, old_path, tmp_path, xxx in tmp_files:
708 # XXX integrate branch to the transaction and get rid of this
709 # aberration
710 assert not old_path or old_path == b'branch'
711 vfs = self._vfsmap[vfs_id]
704 vfs = self._vfsmap[vfs_id]
712 try:
705 try:
713 vfs.unlink(tmp_path)
706 vfs.unlink(tmp_path)
General Comments 0
You need to be logged in to leave comments. Login now