Mercurial > hg
comparison tests/fakepatchtime.py @ 27284:f624b0e69105
tests/fakepatchtime.py: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 06 Dec 2015 22:14:39 -0800 |
parents | a4a41525180c |
children | 7be2f229285b |
comparison
equal
deleted
inserted
replaced
27283:b38adef652fe | 27284:f624b0e69105 |
---|---|
1 # extension to emulate invoking 'patch.internalpatch()' at the time | 1 # extension to emulate invoking 'patch.internalpatch()' at the time |
2 # specified by '[fakepatchtime] fakenow' | 2 # specified by '[fakepatchtime] fakenow' |
3 | 3 |
4 from mercurial import extensions, patch as patchmod, util | 4 from __future__ import absolute_import |
5 | |
6 from mercurial import ( | |
7 extensions, | |
8 patch as patchmod, | |
9 util, | |
10 ) | |
5 | 11 |
6 def internalpatch(orig, ui, repo, patchobj, strip, | 12 def internalpatch(orig, ui, repo, patchobj, strip, |
7 prefix='', files=None, | 13 prefix='', files=None, |
8 eolmode='strict', similarity=0): | 14 eolmode='strict', similarity=0): |
9 if files is None: | 15 if files is None: |