From f1cd015df7119c50524c2f9a82ac6f447d043c42 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sat, 29 Nov 2014 14:39:33 -0800 Subject: [PATCH] generate-working-copy-states: make 'tracked' a string The only places the 'tracked' variable is only used is where it's converted to a string, so let's simplify by using the string value directly. --- tests/generate-working-copy-states.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/generate-working-copy-states.py b/tests/generate-working-copy-states.py index 97c432e6c1..3c5f3b6173 100644 --- a/tests/generate-working-copy-states.py +++ b/tests/generate-working-copy-states.py @@ -7,14 +7,13 @@ combination = [] for base in [None, 'content1']: for parent in set([None, 'content2']) | set([base]): for wcc in set([None, 'content3']) | set([base, parent]): - for tracked in (False, True): + for tracked in ('untracked', 'tracked'): def statestring(content): return content is None and 'missing' or content - trackedstring = tracked and 'tracked' or 'untracked' filename = "%s_%s_%s-%s" % (statestring(base), statestring(parent), statestring(wcc), - trackedstring) + tracked) combination.append((filename, base, parent, wcc)) # make sure we have stable output