Skip to content
Snippets Groups Projects
Commit 7653f80fd7a4 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

obsolete: harden convertion from first format

parent 37b543215187
No related branches found
No related tags found
No related merge requests found
......@@ -589,5 +589,6 @@
'date': '%i %i' % util.makedate(),
'user': ui.username(),
}
try:
store.create(prec, sucs, 0, meta)
cnt += 1
......@@ -592,5 +593,9 @@
store.create(prec, sucs, 0, meta)
cnt += 1
except ValueError:
repo.ui.write_err("invalid old marker line: %s"
% (line))
err += 1
finally:
f.close()
util.unlink(repo.join('obsolete-relations'))
......@@ -623,7 +628,8 @@
try:
store.create(bin(oldobject), [bin(n) for n in oldsubjects],
0, meta)
cnt += 1
except ValueError:
repo.ui.write_err("invalid marker %s -> %s\n"
% (oldobject, oldsubjects))
err += 1
......@@ -626,8 +632,7 @@
except ValueError:
repo.ui.write_err("invalid marker %s -> %s\n"
% (oldobject, oldsubjects))
err += 1
cnt += 1
util.unlink(repo.sjoin('obsoletemarkers'))
finally:
del repo._importoldobsolete
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment