Comparison

util/mercurial.lua @ 11200:bf8f2da84007

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Thu, 05 Nov 2020 22:31:25 +0100
parent 10533:a6cc5b844d7b
comparison
equal deleted inserted replaced
11199:6c7c50a4de32 11200:bf8f2da84007
17 hg_changelog:seek("set", 0x20); 17 hg_changelog:seek("set", 0x20);
18 hgrepo = ("%02x%02x%02x%02x%02x%02x"):format(hg_changelog:read(6):byte(1, 6)); 18 hgrepo = ("%02x%02x%02x%02x%02x%02x"):format(hg_changelog:read(6):byte(1, 6));
19 hg_changelog:close(); 19 hg_changelog:close();
20 end 20 end
21 else 21 else
22 local hg_archival,e = io.open(path.."/.hg_archival.txt"); 22 local hg_archival,e = io.open(path.."/.hg_archival.txt"); -- luacheck: ignore 211/e
23 if hg_archival then 23 if hg_archival then
24 local repo = hg_archival:read("*l"); 24 local repo = hg_archival:read("*l");
25 local node = hg_archival:read("*l"); 25 local node = hg_archival:read("*l");
26 hg_archival:close() 26 hg_archival:close()
27 hgid = node and node:match("^node: (%x%x%x%x%x%x%x%x%x%x%x%x)") 27 hgid = node and node:match("^node: (%x%x%x%x%x%x%x%x%x%x%x%x)")