diff -r 08b8b56bd2e8 -r b45a9d121b53 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Wed Nov 29 08:46:37 2017 +0530 +++ b/mercurial/debugcommands.py Wed Nov 29 08:44:06 2017 +0530 @@ -719,7 +719,7 @@ elif nodates: timestr = 'set ' else: - timestr = time.strftime("%Y-%m-%d %H:%M:%S ", + timestr = time.strftime(r"%Y-%m-%d %H:%M:%S ", time.localtime(ent[3])) if ent[1] & 0o20000: mode = 'lnk'