From 5b07569602e52177a85e980607517f37ceddb55e Mon Sep 17 00:00:00 2001 From: Mikhail Goncharov Date: Fri, 24 Jul 2020 10:06:04 +0200 Subject: [PATCH] fix auto revision usage --- scripts/phabtalk/apply_patch2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/phabtalk/apply_patch2.py b/scripts/phabtalk/apply_patch2.py index 5b147f9..536076d 100755 --- a/scripts/phabtalk/apply_patch2.py +++ b/scripts/phabtalk/apply_patch2.py @@ -257,7 +257,7 @@ class ApplyPatch: earliest_commit = None rev = self.base_revision age_limit = datetime.datetime.now() - APPLIED_SCAN_LIMIT - if rev is None: + if rev != 'auto': rev = 'master' for commit in self.repo.iter_commits(rev): if datetime.datetime.fromtimestamp(commit.committed_date) < age_limit: