comparison hgRevision.m @ 1033:037f203b9bf5 feature/burgers1d

Merge with branch feature/advectioRV to utilize the +rv package
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Thu, 17 Jan 2019 10:44:12 +0100
parents fd85412c7a99
children
comparison
equal deleted inserted replaced
854:18162a0a5bb5 1033:037f203b9bf5
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