view hgRevision.m @ 947:d1c13505182a feature/utux2D

Add missing newline at end of file
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 05 Dec 2018 16:02:45 +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