Mercurial > hg > hg-fastimport
comparison hgfastimport/hgimport.py @ 40:0eb03c70c8f0
HgImportProcessor: comments; remove unused instance attrs.
| author | Greg Ward <greg-hg@gerg.ca> |
|---|---|
| date | Sun, 10 May 2009 10:23:54 -0400 |
| parents | 177a133519bc |
| children | a1ccf1817b65 |
comparison
equal
deleted
inserted
replaced
| 39:177a133519bc | 40:0eb03c70c8f0 |
|---|---|
| 37 | 37 |
| 38 def __init__(self, ui, repo, **opts): | 38 def __init__(self, ui, repo, **opts): |
| 39 self.ui = ui | 39 self.ui = ui |
| 40 self.repo = repo | 40 self.repo = repo |
| 41 self.opts = opts | 41 self.opts = opts |
| 42 self.last_mark = None | |
| 43 self.mark_map = {} | |
| 44 self.branch_map = {} | |
| 45 self.last_commit = None # CommitCommand object | 42 self.last_commit = None # CommitCommand object |
| 46 #self.tag_map = {} | 43 self.mark_map = {} # map mark (e.g. ":1") to changelog node ID(?) |
| 47 #self.tag_back_map = {} | 44 self.branch_map = {} # map git branch name to changelog node ID(?) |
| 48 self.finished = False | |
| 49 | 45 |
| 50 self.numblobs = 0 # for progress reporting | 46 self.numblobs = 0 # for progress reporting |
| 51 self.blobdir = None | 47 self.blobdir = None |
| 52 | 48 |
| 53 def setup(self): | 49 def setup(self): |
| 181 def reset_handler(self, cmd): | 177 def reset_handler(self, cmd): |
| 182 if cmd.from_ is not None: | 178 if cmd.from_ is not None: |
| 183 self.branch_map[cmd.ref] = self.committish_rev(cmd.from_) | 179 self.branch_map[cmd.ref] = self.committish_rev(cmd.from_) |
| 184 | 180 |
| 185 def tag_handler(self, cmd): | 181 def tag_handler(self, cmd): |
| 186 # self.tag_map[cmd.id] = self.tag_back_map[cmd.from_] | |
| 187 pass | 182 pass |
| 188 | 183 |
| 189 class HgImportCommitHandler(processor.CommitHandler): | 184 class HgImportCommitHandler(processor.CommitHandler): |
| 190 | 185 |
| 191 def __init__(self, parent, command, ui, repo, **opts): | 186 def __init__(self, parent, command, ui, repo, **opts): |
