mirror of
https://github.com/facebook/sapling.git
synced 2025-01-08 14:46:47 +03:00
replay: only expect timestamp and not timezone
Reviewed By: StanislavGlebik Differential Revision: D14149972 fbshipit-source-id: 3cab55c9247fa06e3a01a5d4dda507d47a6ebf5e
This commit is contained in:
parent
4a3a890f0d
commit
33a83f729b
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user