Mercurial > hg
comparison hgext/convert/__init__.py @ 4812:a5209b0487e0
convert: export revmap to source.
Sources may be able to use it to optimise their own log fetching
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Thu, 05 Jul 2007 12:24:26 -0700 |
parents | 169fe1e6104c |
children | d77accdd236e |
comparison
equal
deleted
inserted
replaced
4811:f7c8222920ee | 4812:a5209b0487e0 |
---|---|
214 newnode = self.dest.putcommit(f, r, c) | 214 newnode = self.dest.putcommit(f, r, c) |
215 self.mapentry(rev, newnode) | 215 self.mapentry(rev, newnode) |
216 | 216 |
217 def convert(self): | 217 def convert(self): |
218 try: | 218 try: |
219 self.source.setrevmap(self.map) | |
219 self.ui.status("scanning source...\n") | 220 self.ui.status("scanning source...\n") |
220 heads = self.source.getheads() | 221 heads = self.source.getheads() |
221 parents = self.walktree(heads) | 222 parents = self.walktree(heads) |
222 self.ui.status("sorting...\n") | 223 self.ui.status("sorting...\n") |
223 t = self.toposort(parents) | 224 t = self.toposort(parents) |