Mercurial > hg
comparison hgext/convert/__init__.py @ 5012:be25decfdb13
convert: make commit constructor clearer and less magical
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Thu, 26 Jul 2007 13:34:36 -0700 |
parents | 89fbb0a5e8e3 |
children | 6c1029aacc9a |
comparison
equal
deleted
inserted
replaced
5011:89fbb0a5e8e3 | 5012:be25decfdb13 |
---|---|
191 | 191 |
192 def copy(self, rev): | 192 def copy(self, rev): |
193 c = self.commitcache[rev] | 193 c = self.commitcache[rev] |
194 files = self.source.getchanges(rev) | 194 files = self.source.getchanges(rev) |
195 | 195 |
196 do_copies = (hasattr(c, 'copies') and hasattr(self.dest, 'copyfile')) | 196 do_copies = hasattr(self.dest, 'copyfile') |
197 | 197 |
198 for f, v in files: | 198 for f, v in files: |
199 try: | 199 try: |
200 data = self.source.getfile(f, v) | 200 data = self.source.getfile(f, v) |
201 except IOError, inst: | 201 except IOError, inst: |