Mercurial > repos > public > sbplib_julia
comparison benchmark/benchmark_utils.jl @ 1311:5eb1d0ae0ac1 tooling/benchmarks
Add docs for hg_is_dirty
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Apr 2023 13:38:50 +0200 |
parents | 8754d0f06ce4 |
children | f7621dd600e4 |
comparison
equal
deleted
inserted
replaced
1310:8754d0f06ce4 | 1311:5eb1d0ae0ac1 |
---|---|
166 | 166 |
167 run(addenv(cmd, "HGPLAIN"=>"")) | 167 run(addenv(cmd, "HGPLAIN"=>"")) |
168 | 168 |
169 return nothing | 169 return nothing |
170 end | 170 end |
171 | |
172 """ | |
173 hg_is_dirty() | |
174 | |
175 Return true if the repositopry has uncommited changes. | |
176 """ | |
171 function hg_is_dirty() | 177 function hg_is_dirty() |
172 cmd = Cmd(`hg identify --id`, dir=sbplib_root) | 178 cmd = Cmd(`hg identify --id`, dir=sbplib_root) |
173 out = readchomp(addenv(cmd, "HGPLAIN"=>"")) | 179 out = readchomp(addenv(cmd, "HGPLAIN"=>"")) |
174 | 180 |
175 return endswith(out, "+") | 181 return endswith(out, "+") |