annotate Makefile @ 197:6949fc164439 2.5

hgclient: look for an open server before closing it in ResponseError block At least some of the codepaths that can throw a ResponseError close the server first (the one in _readchannel does so in order to detect server startup failures, for example), so we have to verify we have a server to close before doing so, otherwise we can lose the ResponseError and the user sees an AttributeError when we try to use .close() on a NoneType.
author Augie Fackler <raf@durin42.com>
date Sun, 10 Dec 2017 12:52:37 -0500
parents 5484cfdc2d59
children b8edcb693518
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
1 PYTHON=python
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
2 help:
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
3 @echo 'Commonly used make targets:'
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
4 @echo ' tests - run all tests in the automatic test suite'
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
5
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
6 all: help
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
7
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
8 .PHONY: tests
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
9
82
5484cfdc2d59 setup: build MANIFEST.in from hg manifest
Matt Mackall <mpm@selenic.com>
parents: 81
diff changeset
10 MANIFEST.in:
5484cfdc2d59 setup: build MANIFEST.in from hg manifest
Matt Mackall <mpm@selenic.com>
parents: 81
diff changeset
11 hg manifest | sed -e 's/^/include /' > MANIFEST.in
5484cfdc2d59 setup: build MANIFEST.in from hg manifest
Matt Mackall <mpm@selenic.com>
parents: 81
diff changeset
12
5484cfdc2d59 setup: build MANIFEST.in from hg manifest
Matt Mackall <mpm@selenic.com>
parents: 81
diff changeset
13 dist: MANIFEST.in
81
b3c2f0e6bda2 Makefile: add dist target
Matt Mackall <mpm@selenic.com>
parents: 76
diff changeset
14 TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" $(PYTHON) setup.py -q sdist
b3c2f0e6bda2 Makefile: add dist target
Matt Mackall <mpm@selenic.com>
parents: 76
diff changeset
15
0
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
16 tests:
76
37307caccf54 add a script to run tests with nose plugins loaded
Idan Kamara <idankk86@gmail.com>
parents: 7
diff changeset
17 $(PYTHON) test.py --with-doctest