Mercurial > hg
comparison hgext/fsmonitor/pywatchman/capabilities.py @ 30656:16f4b341288d
fsmonitor: refresh pywatchman to upstream
Update to upstream to version c77452. The refresh includes fixes to improve
windows compatibility.
There is a minor update to 'test-check-py3-compat.t' as c77452 no longer have
the py3 compatibility issues the previous version had.
# no-check-commit
author | Zack Hricz <zphricz@fb.com> |
---|---|
date | Thu, 22 Dec 2016 11:22:32 -0800 |
parents | 2377c4ac4eec |
children | 876494fd967d |
comparison
equal
deleted
inserted
replaced
30655:f35397fe0c04 | 30656:16f4b341288d |
---|---|
23 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | 23 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
24 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | 24 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
25 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | 25 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
26 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 | |
29 from __future__ import absolute_import | |
30 from __future__ import division | |
31 from __future__ import print_function | |
32 # no unicode literals | |
28 | 33 |
29 import re | 34 import re |
30 | 35 |
31 def parse_version(vstr): | 36 def parse_version(vstr): |
32 res = 0 | 37 res = 0 |
63 vers['capabilities'][name] = have | 68 vers['capabilities'][name] = have |
64 if not have: | 69 if not have: |
65 vers['error'] = 'client required capability `' + name + \ | 70 vers['error'] = 'client required capability `' + name + \ |
66 '` is not supported by this server' | 71 '` is not supported by this server' |
67 return vers | 72 return vers |
68 | |
69 # no-check-code -- this is a 3rd party library |