view hgRevision.m @ 996:3b903011b1a9 feature/timesteppers

Rename time.rk.General to time.rk.Explicit and fix some errors
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 09 Jan 2019 23:01:17 +0100
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