Skip to content

Commit 2cc3303

Browse files
committed
fix(hg): Use '.' as head_rev
1 parent 92197b2 commit 2cc3303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/diffview/vcs/adapters/hg/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ function HgAdapter:rev_to_pretty_string(left, right)
839839
end
840840

841841
function HgAdapter:head_rev()
842-
local out, code = self:exec_sync( { "log", "--template={node}", "--limit=1", "--" }, {
842+
local out, code = self:exec_sync({ "log", "--template={node}", "--limit=1", "--rev=.", "--" }, {
843843
cwd = self.ctx.toplevel,
844844
retry = 2,
845845
fail_on_empty = true,

0 commit comments

Comments
 (0)