view hgRevision.m @ 1316:bd8e607768ce feature/poroelastic

Add interfaceForcing method in multiblock.DiffOp to facilitate mms forcing
author Martin Almquist <malmquist@stanford.edu>
date Sun, 26 Jul 2020 20:05:10 -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