Mercurial > repos > public > sbplib
view hgRevision.m @ 954:e8d356b8bc25 feature/utux2D
Close branch feature/utux2D
author | Jonatan Werpers <jonatan.werpers@it.uu.se> |
---|---|
date | Mon, 10 Dec 2018 08:29:41 +0000 |
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