I'm trying to get the rev_id of a merge, in a Lua test. Can anyone tell
me why this doesn't work? I based it on base_revision().

function merged_revision()
  local workrev = readfile("stderr")
  local extract = string.gsub(workrev, "^mtn: %[merged%] (%x*)$", "%1")
    if extract == workrev then
    err("failed to extract merged revision from stderr")
  end
  return extract
end

check(mtn("merge", "--message", "rev_c"), 0, false, true)
rev_c = merged_revision()

This prints the error message.

-- 
-- Stephe


_______________________________________________
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to