view hgRevision.m @ 992:bbd165cc585c feature/timesteppers

Move time.Rungekutta to time.rk.General
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 09 Jan 2019 10:59:38 +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