Mercurial > hg
view tests/mockblackbox.py @ 26722:6cd643a1d32c
destupdate: move obsolete handling first
This block was overwriting any result from the previous block anyway. So we move
it first to prove it is possible and we'll extract it in its own function in the
next patch.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 15 Oct 2015 02:12:55 +0100 |
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