Mercurial > hg-git
diff git_handler.py @ 10:66860f141788
update todo file and removed outdated TODO comments
author | Scott Chacon <schacon@gmail.com> |
---|---|
date | Sat, 25 Apr 2009 20:59:53 -0700 |
parents | 7e776864b301 |
children | f2826f7b1ae5 |
line wrap: on
line diff
--- a/git_handler.py Sat Apr 25 20:56:03 2009 -0700 +++ b/git_handler.py Sat Apr 25 20:59:53 2009 -0700 @@ -76,7 +76,7 @@ convert_list[sha] = commit todo.extend([p for p in commit.parents if p not in done]) - # sort the commits by commit date (TODO: change to topo sort) + # sort the commits commits = TopoSort(convert_list).items() # import each of the commits, oldest first @@ -84,13 +84,13 @@ commit = convert_list[csha] self.import_git_commit(commit) - # TODO : update Hg bookmarks (possibly named heads?) + # TODO : update Hg bookmarks print bookmarks.parse(self.repo) def import_git_commit(self, commit): print "importing: " + commit.id - # TODO : have to handle merge contexts at some point (two parent files, etc) + # TODO : (?) have to handle merge contexts at some point (two parent files, etc) def getfilectx(repo, memctx, f): (e, sha, data) = self.git.get_file(commit, f) e = '' # TODO : make this a real mode @@ -98,7 +98,6 @@ p1 = "0" * 40 p2 = "0" * 40 - # TODO : do something if parent is not mapped yet! if len(commit.parents) > 0: sha = commit.parents[0] p1 = self._map[sha]