mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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.
This commit is contained in:
parent
e4382abf8c
commit
f1cd015df7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user