view hgRevision.m @ 1273:cf542444f022 feature/poroelastic

Correct error messages in lebedev2d
author Martin Almquist <malmquist@stanford.edu>
date Mon, 01 Jun 2020 19:00:31 -0700
parents fd85412c7a99
children
line wrap: on
line source

% Returns the short mercurial revision Id.
%  ok is false if there are uncommited changes.
function [revId, ok] = hgRevision()
    [~, s] = system('hg id -i');
    revId = strtrim(s);

    ok = s(end) ~= '+';
end