replay: only expect timestamp and not timezone

Reviewed By: StanislavGlebik

Differential Revision: D14149972

fbshipit-source-id: 3cab55c9247fa06e3a01a5d4dda507d47a6ebf5e
This commit is contained in:
Kostia Balytskyi 2019-02-20 08:32:05 -08:00 committed by Facebook Github Bot
parent 4a3a890f0d
commit 33a83f729b
2 changed files with 6 additions and 3 deletions

View File

@ -45,4 +45,7 @@ class ReplayData(object):
return cls(commitdates, rebasedhead, ontobook)
def getcommitdate(self, ui, commithash, commitdate):
return self.commitdates.get(commithash, commitdate)
saveddate = self.commitdates.get(commithash)
if saveddate:
return (int(saveddate), commitdate[1])
return commitdate

View File

@ -70,10 +70,10 @@ Setup a server repo
> CONFIG
$ cat >>$TESTTMP/goodcommitdates <<EOF
> a0c9c57910584da709d7f4ed9852d66693a45ba7=0 0
> a0c9c57910584da709d7f4ed9852d66693a45ba7=0
> EOF
$ cat >>$TESTTMP/badcommitdates <<EOF
> a0c9c57910584da709d7f4ed9852d66693a45ba7=1 0
> a0c9c57910584da709d7f4ed9852d66693a45ba7=1
> EOF
Send unbundlereplay with incorrect expected hash