Mercurial > repos > public > sbplib
annotate hgRevision.m @ 1045:dc1bcbef2a86 feature/getBoundaryOp
Remove ability to get several boundary ops at the same time from a few of the schemes
While it can be handy the code for the getBoundaryOp methods get needlessly cluttered
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 22 Jan 2019 17:12:22 +0100 |
parents | fd85412c7a99 |
children |
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 |