Commit Graph

128 Commits

Author SHA1 Message Date
practicalswift
6b73cabf08 Remove unused imports. 2016-01-01 03:57:06 +01:00
Zach Panzarino
e3a4147ac9 Update copyright date 2015-12-31 23:28:40 +00:00
Dave Abrahams
b71e919b55 utils/update-checkout: remove SVN support 2015-12-31 08:26:28 -08:00
Dave Abrahams
728ad26e60 utils/update-checkout: support autostash when pulling
Setting rebase.autostash allows one to do an update-checkout with a
dirty working tree.
2015-12-30 08:53:39 -08:00
Dmitri Gribenko
e0479df372 update-checkout: Python 3 compatibility fix (dict.iteritems()) 2015-12-25 12:42:11 +02:00
Brian Gesiak
a45a4260d8 [python] Use PEP-0008 compliant code headers
Running the Python style guide checker
[`pep8`](https://pypi.python.org/pypi/pep8) on the Python code headers
in this repository results in the following error being emitted:

    $ pep8 utils/build-script
    utils/build-script:1:1: E265 block comment should start with '# '
    utils/build-script:3:1: E266 too many leading '#' for block comment
    utils/build-script:5:1: E266 too many leading '#' for block comment
    utils/build-script:6:1: E266 too many leading '#' for block comment
    utils/build-script:8:1: E266 too many leading '#' for block comment
    utils/build-script:9:1: E266 too many leading '#' for block comment
    utils/build-script:11:1: E265 block comment should start with '# '
    utils/build-script:11:80: E501 line too long (80 > 79 characters)

The problem is that the code header used in most Python files in the
repository:

1. Do not place a space in between `#` and the rest of the comment.
2. Contains some lines that just barely exceed the recommend length
   limit.

In addition, not all code headers in the repository follow the same
template.

This commit moves all Python code headers to the following template:

    # subfolder/file_name.py - Very brief description -*- python -*--
    #
    # This source file is part of the Swift.org open source project
    #
    # Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
    # Licensed under Apache License v2.0 with Runtime Library Exception
    #
    # See http://swift.org/LICENSE.txt for license information
    # See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
    #
    # -----------------------------------------------------------------------------
    #
    # This file contains stuff that I am describing here in the header and will
    # be sure to keep up to date.
    #
    # ----------------------------------------------------------------------------
2015-12-24 11:35:53 -05:00
practicalswift
a8cabe6cbf Use explicit imports. 2015-12-24 00:19:30 +01:00
practicalswift
4da94478a0 Use "if cond is True" instead of discouraged "if cond == True". 2015-12-21 10:24:48 +01:00
Mishal Awadah
b70af8ae08 [build-script] Enable snapshot testing in OSX and Linux buildbots.
Add a swift-integration-tests entry in the update-checkout script.
2015-12-18 13:34:41 -08:00
Michael Gottesman
52fa3520ce [update-checkout] When pulling with a git repo, use --rebase to help people follow the current git workflow (i.e. rebase instead of merge).
When/if that policy changes, we can remove this.
2015-12-15 00:43:59 -06:00
Dmitri Gribenko
dbb3fa44e3 update-checkout: make cloning idempotent and incremental 2015-12-10 19:14:21 -07:00
Dmitri Gribenko
6a329eb1c6 update-checkout: clone additional repositories relative to 'swift' 2015-12-10 19:09:36 -07:00
Dmitri Gribenko
b4b7e2b3cf update-checkout: don't run 'git pull' if we just cloned the repository 2015-12-10 18:12:05 -07:00
Brandon Mathis
f9bc59b252 Uncomment update_working_copy code 2015-12-08 15:24:53 -05:00
Brandon Mathis
b0c4fbd242 Added option install with ssh param 2015-12-08 15:23:42 -05:00
Brandon Mathis
26508ca334 Merge branch 'master' into feature/easier-install 2015-12-04 11:03:16 -05:00
Brandon Mathis
2942c32781 Make changes per @gribozavr suggestions 2015-12-03 19:39:47 -05:00
Brandon Mathis
74a1d0592c Move additional repo cloning into the update-checkout py script 2015-12-03 18:33:46 -05:00
James McLaughlin
9da5899652 Consistently use env(1) to resolve bash and python paths 2015-12-03 20:55:27 +00:00
Mishal Awadah
4a11d81e72 [update-checkout] Follow up 32f8492936
Update the local names of XCTest and Foundation.
2015-11-30 11:25:33 -08:00
Mishal Awadah
db87baf411 [update-checkout] Add XCTest and Foundation. 2015-11-11 13:55:52 -08:00
Daniel Dunbar
b074525a2c [utils] Add update-checkout support for llbuild & swiftpm.
Swift SVN r32683
2015-10-14 19:10:43 +00:00
David Farler
b60613458b cmark Build Support
<rdar://problem/20180372>

Build cmark alongside llvm and clang.
If the clone doesn't exist, build-script-impl will clone it in the
workspace. Also update the README and update-checkout scripts.

Swift SVN r26364
2015-03-20 22:32:19 +00:00
Dmitri Hrybenko
5c76bdfd38 SwiftBuildSupport: move WorkingDirectory class to the module so that it
is reusable

Swift SVN r24268
2015-01-08 04:47:37 +00:00
Dmitri Hrybenko
e867208675 utils/update-checkout: use argparse instead of getopt
Swift SVN r24152
2014-12-26 07:41:55 +00:00
Dmitri Hrybenko
aba0cf291f update-checkout: also update performance tests
Swift SVN r24148
2014-12-24 06:26:16 +00:00
Dmitri Hrybenko
f3a644abbf update-checkout: make output more informative
Swift SVN r24146
2014-12-24 03:31:26 +00:00
Dmitri Hrybenko
6670bb76ec Rewrite the CMake build system
Swift SVN r24124
2014-12-23 22:15:30 +00:00