changeset 23445:390a2610eaef

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.
author Martin von Zweigbergk <martinvonz@google.com>
date Sat, 29 Nov 2014 14:39:33 -0800
parents 88629daa727b
children e51027c85dcd
files tests/generate-working-copy-states.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/generate-working-copy-states.py	Tue Dec 02 13:28:07 2014 -0800
+++ b/tests/generate-working-copy-states.py	Sat Nov 29 14:39:33 2014 -0800
@@ -7,14 +7,13 @@
 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