Lazy commit on fry.
This commit is contained in:
parent
5a95555672
commit
b565161239
@ -213,8 +213,13 @@ if __name__ == "__main__":
|
|||||||
cmd = "fossil json status"
|
cmd = "fossil json status"
|
||||||
output = json.loads(execute_command(cmd))
|
output = json.loads(execute_command(cmd))
|
||||||
n = len(output["payload"]["files"])
|
n = len(output["payload"]["files"])
|
||||||
|
print(n)
|
||||||
cmd = "fossil extras"
|
cmd = "fossil extras"
|
||||||
n = n + len(execute_command(cmd).split("\n"))
|
lines = execute_command(cmd).split("\n")
|
||||||
|
for line in lines:
|
||||||
|
if len(line.strip()) > 0:
|
||||||
|
n = n + 1
|
||||||
|
print(n)
|
||||||
else:
|
else:
|
||||||
cmd = "git -C \"{0}\" status --porcelain=2 --branch".format( path )
|
cmd = "git -C \"{0}\" status --porcelain=2 --branch".format( path )
|
||||||
props = dict()
|
props = dict()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user