annotate hgRevision.m @ 1306:633757e582e5 feature/poroelastic

Add transformation gradient as property in CurvilinearAnisotropic
author Martin Almquist <malmquist@stanford.edu>
date Sun, 19 Jul 2020 20:29:48 -0700
parents fd85412c7a99
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
891
fd85412c7a99 Add function to get the hgRevision hash as a string
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
1 % Returns the short mercurial revision Id.
fd85412c7a99 Add function to get the hgRevision hash as a string
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
2 % ok is false if there are uncommited changes.
fd85412c7a99 Add function to get the hgRevision hash as a string
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
3 function [revId, ok] = hgRevision()
fd85412c7a99 Add function to get the hgRevision hash as a string
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
4 [~, s] = system('hg id -i');
fd85412c7a99 Add function to get the hgRevision hash as a string
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
5 revId = strtrim(s);
fd85412c7a99 Add function to get the hgRevision hash as a string
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
6
fd85412c7a99 Add function to get the hgRevision hash as a string
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
7 ok = s(end) ~= '+';
fd85412c7a99 Add function to get the hgRevision hash as a string
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
8 end