view hgRevision.m @ 1135:a0c6f060a105 feature/laplace_curvilinear_test

Add multiblock.Grid.expandFunc()
author Martin Almquist <malmquist@stanford.edu>
date Thu, 30 May 2019 12:07:40 -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