From 9754a9f3f6de64b239e134ac5f6d6907675822b1 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Tue, 14 Mar 2023 00:47:53 -0600 Subject: [PATCH] Trivial simplification Just return the values directly, no need to store them into variables. Signed-off-by: Felipe Contreras --- hg-fast-export.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/hg-fast-export.py b/hg-fast-export.py index b33cc4b..71b518d 100755 --- a/hg-fast-export.py +++ b/hg-fast-export.py @@ -73,14 +73,11 @@ def get_filechanges(repo,revision,parents,files): """Given some repository and revision, find all changed/deleted files.""" if not parents: # first revision: feed in full manifest - modified=files - removed=[] + return files,[] else: # take the changes from the first parent f=repo.status(parents[0],revision) - modified=f.modified + f.added - removed=f.removed - return modified,removed + return f.modified+f.added,f.removed def get_author(logmessage,committer,authors): """As git distincts between author and committer of a patch, try to