1
0
Fork 0

fix auto revision usage

This commit is contained in:
Mikhail Goncharov 2020-07-24 10:10:48 +02:00
parent 5b07569602
commit fb5e91fdeb

View file

@ -257,7 +257,7 @@ class ApplyPatch:
earliest_commit = None earliest_commit = None
rev = self.base_revision rev = self.base_revision
age_limit = datetime.datetime.now() - APPLIED_SCAN_LIMIT age_limit = datetime.datetime.now() - APPLIED_SCAN_LIMIT
if rev != 'auto': if rev == 'auto': # FIXME: use revison that created the branch
rev = 'master' rev = 'master'
for commit in self.repo.iter_commits(rev): for commit in self.repo.iter_commits(rev):
if datetime.datetime.fromtimestamp(commit.committed_date) < age_limit: if datetime.datetime.fromtimestamp(commit.committed_date) < age_limit: