maruel@chromium.org
1e08c00d60
Add AffectedFile.IsTextFile() and deprecate AffectedTextFiles().
...
Make DepotToLocalPath() and LocalToDepotPath() not static. It is necessary for a subsequent change since I need to factor out it's SCM assumption.
Review URL: http://codereview.chromium.org/113933
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@17091 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
6ebe68a73d
Make the member variable 'protected' in the python sense.
...
Review URL: http://codereview.chromium.org/113899
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@17039 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
e1a524ff00
Remove SPECIAL_KEYS and GclChange.Changelist() to simplify the code.
...
Review URL: http://codereview.chromium.org/113883
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16983 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
f3eee5692c
Add a unit test for input_api.change.tags.
...
Review URL: http://codereview.chromium.org/113859
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16959 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
ce30ef7ceb
Fix the PRESUBMIT.py for depot_tools.
...
Ironically, it was broken.
Review URL: http://codereview.chromium.org/115679
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16856 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
9711bbafde
Add InputApi.version so the presubmit script can mark a minimum supported version for instance.
...
BUG=None
R=joi
Review URL: http://codereview.chromium.org/115719
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16819 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
dbbeedc691
Factor out SVN-specific methods out of AffectedFile.
...
TEST=New unit tests.
BUG=None
Review URL: http://codereview.chromium.org/113783
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16785 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
73e36ed387
Fix AffectedFile.IsDirectory() to use the right path.
...
BUG=gcl commit doesn't show any "svn: 'bleh' is not a working copy" error
R=jam
Review URL: http://codereview.chromium.org/113782
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16781 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
0ff1fab804
Add repository root presubmit support.
...
Review URL: http://codereview.chromium.org/115616
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16738 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
657aaf250d
When the svn diff output (on Windows) is sent as a single POST and
...
some of the files have attribute changes, the server responds with a
list of files where the files with attribute changes have backslashes
(as they do in the svn diff output). Fix this in the client.
A server-side fix might also be nice; where does the server-side code live?
BUG=none
TEST=none
Patch contributed by Joi.
Review URL: http://codereview.chromium.org/112050
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16688 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
053ba90ed1
Use the --non-recursive flag when committing.
...
BUG=12339
TEST=see bug for repro steps.
Review URL: http://codereview.chromium.org/113709
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16620 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
98fc2b9bf6
Add support to cache arbitrary file.
...
Rename repository_root to REPOSITORY_ROOT.
Review URL: http://codereview.chromium.org/115615
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16598 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
374d65e518
Move the changelist files into a subdirectory for cached files implementation.
...
Review URL: http://codereview.chromium.org/115612
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16597 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
672343d7f4
Fix the print_error parsing, which caused spurious errors on gcl usage.
...
Review URL: http://codereview.chromium.org/113656
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16513 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
8c3ccf39eb
Fix error printing in gcl.GetRepositoryRoot() and fix its unit tests.
...
Review URL: http://codereview.chromium.org/113650
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16499 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
003c269b98
When -s or --server is used, don't try the patch.
...
Review URL: http://codereview.chromium.org/115534
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16477 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
e9dd73ce1e
Fix upload.py with git when diff.external is set.
...
Review URL: http://codereview.chromium.org/113586
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16476 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
7b305e8c18
Add new presubmit check RunPythonUnitTests.
...
Review URL: http://codereview.chromium.org/115516
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16390 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
5771f2622c
Clean up revert.py and fixes an issue when only one file is reverted in a subdirectory.
...
Add a basic unit test.
Review URL: http://codereview.chromium.org/115514
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16388 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
178d06c779
Sync git-cl and git-try to the master branch.
...
Remove import readline since it is not used and not available on win32
Fix the tempfile.NamedTemporaryFile() handling on win32.
Review URL: http://codereview.chromium.org/113480
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16220 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
3d23524cb0
Add more presubmit support. Add PRESUBMIT.py to depot_tools.
...
Changed InputApi.PresubmitLocalPath() to contain the absolute path without the script name.
Review URL: http://codereview.chromium.org/113354
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16157 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
1998c6d137
Raise an human readable exception if an unversioned directory exists.
...
Review URL: http://codereview.chromium.org/115354
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16156 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
2806acc58c
Remove two seams options.gclient and options.scm_wrapper in gclient.
...
Review URL: http://codereview.chromium.org/115322
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16155 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
e08149a25c
Fix revert.py.
...
Review URL: http://codereview.chromium.org/113353
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15977 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
0329e67bae
Remove the options.path_exists which only existed as a seam. It's not really needed in python.
...
Also fix 2 other mocks.
Review URL: http://codereview.chromium.org/115286
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15976 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
1033accb23
Rename presubmit.py to presubmit_support.py to reduce confusion and be able to add a PRESUBMIT.py check into depot_tools.
...
Review URL: http://codereview.chromium.org/113337
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15954 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
c315020307
Fix a regression on svn cp|ren|mv on gcl upload.
...
BUG=11884
Review URL: http://codereview.chromium.org/113341
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15953 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
7196846f83
Change the python.new.bat and svn.new.bat to work around potential dynamic dll loading issues.
...
Review URL: http://codereview.chromium.org/113323
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15938 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
8626ff72df
Finally implement the code to automatically switch checkout when there is no local modification.
...
Bail off as soon as there is anything showing up on svn status.
TBR=sgk
Review URL: http://codereview.chromium.org/113319
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15929 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
39593706a7
Fix unit test due to change r15911.
...
TBR=estade
Review URL: http://codereview.chromium.org/115283
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15928 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
estade@chromium.org
3bcc6cebff
Pass "gcl help upload" to upload.py.
...
Review URL: http://codereview.chromium.org/113303
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15911 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
kuchhal@chromium.org
00c41e457b
Add presubmit checks to look for BUG= and TEST= tags in change list description (Part 1 of 2).
...
BUG=11287
TEST=gcl commit should fail unless BUG= & TEST= exist in change list description or --no_presubmit is used.
Review URL: http://codereview.chromium.org/113294
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15905 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
4810a96600
Deprecate gcl.GetSVNStatus() for gclient.CaptureSVNStatus() and fix some status information that was lost.
...
This was breaking gclient revert on unversioned files.
TEST=ran "for %a in (tests\*test.py) do python %a" and all tests succeeded.
Review URL: http://codereview.chromium.org/115264
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15894 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
46a9410947
Deprecate gcl.GetSVNFileInfo() for gclient.CaptureSVNInfo().
...
Review URL: http://codereview.chromium.org/113290
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15891 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
5c3a2ff6a2
Add a flag not print errors in CaptureSVN()
...
Review URL: http://codereview.chromium.org/113288
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15887 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
be0d1ca0e4
Add more tests and cleanup ChangeInfo class.
...
Review URL: http://codereview.chromium.org/113269
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15885 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
df7a3134bd
Simplify some functions by removing the options.stdout mock. Fix the unit test accordingly.
...
Fix breakage caused by r15861 and add a regression test.
Review URL: http://codereview.chromium.org/113278
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15872 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
96b9171280
Revert 15861 because of
...
File "D:\b\depot_tools\bootstrap\\..\gclient.py", line 446, in SubprocessCallAndCapture
out.write(in_byte)
TBR=nsylvain
Review URL: http://codereview.chromium.org/115244
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15862 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
e77173e573
Simplify some functions by removing the options.stdout mock. Fix the unit test accordingly.
...
Review URL: http://codereview.chromium.org/113272
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15861 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
11e0fd6997
Revert changes 15823 and 15824 because they broke gclient revert.
...
TBR=sgk
Review URL: http://codereview.chromium.org/115217
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15827 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
46b9ae6961
Starts reusing functions in gclient.py from gcl.py.
...
Review URL: http://codereview.chromium.org/113218
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15824 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
09b3ba2160
Cleanup gclient.py use of options where unnecessary.
...
Review URL: http://codereview.chromium.org/113216
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15823 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
fdafe3e2d1
Force depot_tools to be in the PATH before /usr/bin in cygwin.
...
Review URL: http://codereview.chromium.org/113208
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15767 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
18e4135ea7
Fix gcl under cygwin. Really ugly fix...
...
Review URL: http://codereview.chromium.org/113205
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15757 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
sverrir@chromium.org
f30a43845a
Fix a problem with gclient not being able to download tools such as svn.
...
It turns out that Shell.Application.NameSpace works with relative paths
on some systems only. This failed on my Windows 7 box.
Review URL: http://codereview.chromium.org/115184
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15754 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
thestig@chromium.org
8a62d5b229
Fix incorrect variable in LoadChangelistInfo and recognize directories properly in GenerateDiff.
...
Review URL: http://codereview.chromium.org/115179
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15753 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
2dc8a4d3d4
Change CaptureSVNInfo() to return a dictionary instead of a object.
...
Review URL: http://codereview.chromium.org/113086
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15750 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
25b438dea7
Fixing a label renaming that shouldn't have been checked-in!
...
TBR=bradnelson
Review URL: http://codereview.chromium.org/115098
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15567 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
9e378efba3
Don't reinstall *every* time. Just if the batch file doesn't exist.
...
Review URL: http://codereview.chromium.org/115085
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15546 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago
maruel@chromium.org
69221c75e0
Set some batch files as executable.
...
Review URL: http://codereview.chromium.org/115064
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15503 0039d316-1c4b-4281-b951-d872f2087c98
16 years ago