fix auto revision usage
This commit is contained in:
parent
57702114b0
commit
5b07569602
1 changed files with 1 additions and 1 deletions
|
@ -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 is None:
|
if rev != 'auto':
|
||||||
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:
|
||||||
|
|
Loading…
Reference in a new issue