comparison hgRevision.m @ 968:a4ad90b37998 feature/poroelastic

Merge with default.
author Martin Almquist <malmquist@stanford.edu>
date Sun, 23 Dec 2018 14:39:31 +0100
parents fd85412c7a99
children
comparison
equal deleted inserted replaced
967:368a2773f78b 968:a4ad90b37998
1 % Returns the short mercurial revision Id.
2 % ok is false if there are uncommited changes.
3 function [revId, ok] = hgRevision()
4 [~, s] = system('hg id -i');
5 revId = strtrim(s);
6
7 ok = s(end) ~= '+';
8 end