From 9df2f97f6cc69c497fd10561e6b91fb9396292b5 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Mon, 13 Mar 2023 20:32:10 -0600 Subject: [PATCH] Rename variables in get_filechanges It's easier to understand this way. No functional changes. Signed-off-by: Felipe Contreras --- hg-fast-export.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hg-fast-export.py b/hg-fast-export.py index b72fc10..923f30e 100755 --- a/hg-fast-export.py +++ b/hg-fast-export.py @@ -94,14 +94,14 @@ def split_dict(dleft,dright,c=[],r=[],match=file_mismatch): def get_filechanges(repo,revision,parents,mleft): """Given some repository and revision, find all changed/deleted files.""" - c,r=[],[] + modified,removed=[],[] for p in parents: if p<0: continue mright=repo[p].manifest() - c,r=split_dict(mleft,mright,c,r) - c.sort() - r.sort() - return c,r + modified,removed=split_dict(mleft,mright,modified,removed) + modified.sort() + removed.sort() + return modified,removed def get_author(logmessage,committer,authors): """As git distincts between author and committer of a patch, try to