From c666fd9c95baf797deedd4ba27900cc39b61118e Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Tue, 14 Mar 2023 00:12:19 -0600 Subject: [PATCH] Trivial style cleanup Checking the array directly is more idiomatic. Signed-off-by: Felipe Contreras --- hg-fast-export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hg-fast-export.py b/hg-fast-export.py index 3b1f267..9586b7c 100755 --- a/hg-fast-export.py +++ b/hg-fast-export.py @@ -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'