Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/convert/__init__.py @ 4965:4106dde15aed
Merge with crew
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 21 Jul 2007 16:44:38 -0500 |
parents | 71fed370b7a7 |
children | 89fbb0a5e8e3 |
comparison
equal
deleted
inserted
replaced
4964:ee983d0dbea8 | 4965:4106dde15aed |
---|---|
190 afile.close() | 190 afile.close() |
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(c, 'copies') and 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) |
258 def cleanup(self): | 258 def cleanup(self): |
259 if self.mapfilefd: | 259 if self.mapfilefd: |
260 self.mapfilefd.close() | 260 self.mapfilefd.close() |
261 | 261 |
262 def _convert(ui, src, dest=None, mapfile=None, **opts): | 262 def _convert(ui, src, dest=None, mapfile=None, **opts): |
263 '''Convert a foreign SCM repository to a Mercurial one. | 263 """Convert a foreign SCM repository to a Mercurial one. |
264 | 264 |
265 Accepted source formats: | 265 Accepted source formats: |
266 - GIT | 266 - GIT |
267 - CVS | 267 - CVS |
268 - SVN | 268 - SVN |
291 The [username mapping] file is a simple text file that maps each source | 291 The [username mapping] file is a simple text file that maps each source |
292 commit author to a destination commit author. It is handy for source SCMs | 292 commit author to a destination commit author. It is handy for source SCMs |
293 that use unix logins to identify authors (eg: CVS). One line per author | 293 that use unix logins to identify authors (eg: CVS). One line per author |
294 mapping and the line format is: | 294 mapping and the line format is: |
295 srcauthor=whatever string you want | 295 srcauthor=whatever string you want |
296 ''' | 296 """ |
297 | 297 |
298 util._encoding = 'UTF-8' | 298 util._encoding = 'UTF-8' |
299 | 299 |
300 if not dest: | 300 if not dest: |
301 dest = hg.defaultdest(src) + "-hg" | 301 dest = hg.defaultdest(src) + "-hg" |