Trivial style cleanup

Checking the array directly is more idiomatic.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Felipe Contreras
2023-03-14 00:12:19 -06:00
parent 21fa443b4a
commit c666fd9c95

View File

@@ -334,7 +334,7 @@ def export_commit(ui,repo,revision,old_marks,max,count,authors,
man=ctx.manifest()
added,changed,removed,type=[],[],[],''
if len(parents) == 0:
if not parents:
# first revision: feed in full manifest
added=files
type='full'