equal
deleted
inserted
replaced
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)") |