Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion hg-fast-export.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,9 @@ def branchtip(repo, heads):

def verify_heads(ui,repo,cache,force,ignore_unnamed_heads,branchesmap):
branches={}
for bn, heads in repo.branchmap().iteritems():

for bn in repo.branchmap():
heads = repo.branchmap().branchheads(bn)
branches[bn] = branchtip(repo, heads)
l=[(-repo.changelog.rev(n), n, t) for t, n in branches.items()]
l.sort()
Expand Down
8 changes: 8 additions & 0 deletions hg2git.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ def set_origin_name(name):
origin_name = name.encode('utf8')

def setup_repo(url):
try:
# Mercurial >= 7.2 requires explicit initialization for largefile
# support to work.
from mercurial import initialization
initialization.init()
except ImportError:
pass

try:
myui=ui.ui(interactive=False)
except TypeError:
Expand Down