Mercurial > hg-git
diff hggit/git2hg.py @ 789:77416ddca136
git2hg: return a struct from find_incoming
We're going to return more data from find_incoming soon. Make that easier than
parsing a tuple.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 14 Oct 2014 16:35:37 -0700 |
parents | e734d71cc558 |
children | 9a89e9cf41b7 |
line wrap: on
line diff
--- a/hggit/git2hg.py Tue Oct 14 15:54:58 2014 -0700 +++ b/hggit/git2hg.py Tue Oct 14 16:35:37 2014 -0700 @@ -63,4 +63,10 @@ done.add(sha) todo.pop() - return commit_cache, commits + return GitIncomingResult(commits, commit_cache) + +class GitIncomingResult(object): + '''struct to store result from find_incoming''' + def __init__(self, commits, commit_cache): + self.commits = commits + self.commit_cache = commit_cache