Mercurial > hg
view tests/mockblackbox.py @ 29270:48b38b16a8f8
shelve: use backup functions instead of manually copying dirstate
This increases encapsulation of dirstate: the dirstate file is private
to the dirstate module and shouldn't be touched by extensions directly.
author | Mateusz Kwapich <mitrandir@fb.com> |
---|---|
date | Tue, 24 May 2016 13:29:53 -0700 |
parents | 417380aa5bbe |
children | 043948c84647 |
line wrap: on
line source
from __future__ import absolute_import from mercurial import ( util, ) def makedate(): return 0, 0 def getuser(): return 'bob' def getpid(): return 5000 # mock the date and user apis so the output is always the same def uisetup(ui): util.makedate = makedate util.getuser = getuser util.getpid = getpid