Mercurial > hg-git
diff hggit/git2hg.py @ 1115:8ed6c0cae9b8
cleanup: add some blank lines
author | Sean Farley <sean@farley.io> |
---|---|
date | Mon, 27 Nov 2017 18:46:07 -0500 |
parents | f1c4e2ba8ff9 |
children | bd1a01f98154 |
line wrap: on
line diff
--- a/hggit/git2hg.py Mon Nov 27 18:34:24 2017 -0500 +++ b/hggit/git2hg.py Mon Nov 27 18:46:07 2017 -0500 @@ -3,6 +3,7 @@ import urllib from dulwich.objects import Commit, Tag + def find_incoming(git_object_store, git_map, refs): '''find what commits need to be imported @@ -73,12 +74,14 @@ 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 + def extract_hg_metadata(message, git_extra): split = message.split("\n--HG--\n", 1) # Renames are explicitly stored in Mercurial but inferred in Git. For