view tests/mockblackbox.py @ 28657:b9714d958e89 stable

parsers: detect short records (SEC) CVE-2016-3630 (2/2) This addresses part of a vulnerability in binary delta application.
author Matt Mackall <mpm@selenic.com>
date Wed, 16 Mar 2016 17:30:26 -0700
parents 0ead0a07ed9c
children ac49ecb2a897
line wrap: on
line source

from mercurial import util

def makedate():
    return 0, 0
def getuser():
    return 'bob'

# mock the date and user apis so the output is always the same
def uisetup(ui):
    util.makedate = makedate
    util.getuser = getuser