annotate hgRevision.m @ 971:e54c2f54dbfe feature/getBoundaryOperator

Merge with feature/poroelastic. Use only the changes made to multiblock.DiffOp and scheme.Elastic2dVariable. DiffOp.getBoundaryOperator/Quadrature now use scheme methods instead of propeties.
author Martin Almquist <malmquist@stanford.edu>
date Tue, 25 Dec 2018 07:50:07 +0100
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