From 687393649884c4268246d0c958bedced0986ceb2 Mon Sep 17 00:00:00 2001 From: Michael Still Date: Mon, 26 May 2014 16:23:22 +1000 Subject: [PATCH] Tweak filename hashing. --- mirror_fetchers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mirror_fetchers.py b/mirror_fetchers.py index 79075b9..8036e3d 100755 --- a/mirror_fetchers.py +++ b/mirror_fetchers.py @@ -143,8 +143,7 @@ for filename in ninety_days_of_filenames(): patchset = j['patchSet']['number'] project = j['change']['project'] - patch_key = 'patches/%s/%s/%s' % (project, number[:2], - number[2:]) + patch_key = 'patches/%s/%s/%s' % (project, number[:2], number) if os.path.exists('%s/%s.json' % (patch_key, number)): with open('%s/%s.json' % (patch_key, patchset)) as f: patches.setdefault(patch_key, {})