comparison hgRevision.m @ 979:7a5e770974ed feature/timesteppers

Merge with default
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 07 Jan 2019 16:26:00 +0100
parents fd85412c7a99
children
comparison
equal deleted inserted replaced
933:34b3d092a4d0 979:7a5e770974ed
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