Commit 2b23b9f5 authored by Edward Cree's avatar Edward Cree Committed by Eric S. Raymond

Fix the Hg "default" -> "master" conversion

Needs to look for refs/heads/ prefix.
parent 19e1f9c9
......@@ -791,14 +791,14 @@ def find_all_references(self, baton):
def post_extract(self, repo):
super(HgExtractor, self).post_extract(repo)
capture(b"hg update -C tip")
if not "master" in repo.branchset():
if not "refs/heads/master" in repo.branchset():
for event in repo:
if isinstance(event, Commit):
if event.branch == "default":
if event.branch == "refs/heads/default":
elif isinstance(event, Reset):
if event.ref == "default":
event.ref = "master"
if event.ref == "refs/heads/default":
event.ref = "refs/heads/master"
def isclean(self):
"Return True if repo has no unsaved changes."
return not capture(b"hg status --modified")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment