Mercurial > hgsubversion
comparison hg_delta_editor.py @ 38:9ee7ce0505eb
Fixes so that I can clone the melange repository successfully. Fixes a bug that
caused running out of file handles if there were a lot of ra calls.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sun, 26 Oct 2008 13:55:57 -0500 |
parents | 50d55c3e0d85 |
children | b3c7b844b782 |
comparison
equal
deleted
inserted
replaced
37:2d319e162598 | 38:9ee7ce0505eb |
---|---|
165 br = p.split('/')[0] | 165 br = p.split('/')[0] |
166 p = p[len(br)+1:] | 166 p = p[len(br)+1:] |
167 if p and p[0] == '/': | 167 if p and p[0] == '/': |
168 p = p[1:] | 168 p = p[1:] |
169 return p, br | 169 return p, br |
170 return None, None | |
170 raise Exception,'Things went boom: ' + path | 171 raise Exception,'Things went boom: ' + path |
171 | 172 |
172 def set_current_rev(self, rev): | 173 def set_current_rev(self, rev): |
173 '''Set the revision we're currently converting. | 174 '''Set the revision we're currently converting. |
174 ''' | 175 ''' |
494 copyfrom_revision, file_pool=None): | 495 copyfrom_revision, file_pool=None): |
495 self.current_file = 'foobaz' | 496 self.current_file = 'foobaz' |
496 self.base_revision = None | 497 self.base_revision = None |
497 if path in self.deleted_files: | 498 if path in self.deleted_files: |
498 del self.deleted_files[path] | 499 del self.deleted_files[path] |
499 if self._is_path_valid(path): | 500 if (self._is_path_valid(path) and |
501 self._path_and_branch_for_path(path)[0]): | |
500 self.current_file = path | 502 self.current_file = path |
501 self.should_edit_most_recent_plaintext = False | 503 self.should_edit_most_recent_plaintext = False |
502 if copyfrom_path: | 504 if copyfrom_path: |
503 self.ui.status('A+ %s\n' % path) | 505 self.ui.status('A+ %s\n' % path) |
504 # TODO(augie) handle this better, actually mark a copy | 506 # TODO(augie) handle this better, actually mark a copy |