mirror of
https://github.com/frej/fast-export.git
synced 2026-05-06 08:57:49 +02:00
Fix "Warn if one of the marks, mapping, or heads files are empty"
The commit "Warn if one of the marks, mapping, or heads files are
empty" (7224e420a7) mixed up the state and heads caches and reported
that the heads cache was empty if the state case was. Error found by
Shun-ichi Goto.
Closes #338
This commit is contained in:
@@ -539,7 +539,7 @@ def hg2git(repourl,m,marksfile,mappingfile,headsfile,tipfile,
|
||||
if len(state_cache) != 0:
|
||||
for (name, data) in [(marksfile, old_marks),
|
||||
(mappingfile, mapping_cache),
|
||||
(headsfile, state_cache)]:
|
||||
(headsfile, heads_cache)]:
|
||||
check_cache(name, data)
|
||||
|
||||
ui,repo=setup_repo(repourl)
|
||||
|
||||
Reference in New Issue
Block a user