Commit Graph

94 Commits

Author SHA1 Message Date
Nils Andresen 55da2625b7 renamed DoParallel to ForEach to reflect previous changes (i.e. the method no longer necessarily works in parallel) 2019-04-27 22:47:34 +02:00
Nils Andresen 3cad43f331 modified help-text in RemoteOptions.cs to reflect suggested change. 2019-04-27 18:39:37 +02:00
Nils Andresen 76e1d8a497 new option --no-parallel to fix issue #1242 2019-04-20 20:38:05 +02:00
Magnus Österlund 1e043a0c7a Stop using property InitialChangeset for branch information.
The global property `InitialChangeset` is used to store the first changeset the user want to clone from.

But this was also in some situations used to store the first changeset of a branch. This cause a problem as this property is global and will be applied to all branches. If `InitialChangeset` is set for a branch, the next cloned branch can not get the changesets before the changeset given this `InitialChangeset` if it is not updated for that branch to.

It is problematic to use a property for different information.
2019-04-04 11:36:30 +02:00
Magnus Österlund c9df412e7f Make it possible to clone a removed branch. 2019-04-04 11:29:34 +02:00
Shaun Sutterfield 65130ea3bf Improve detection of merge parent
Fixes issue where the wrong parent is selected for a merge if the
correct parent consists entirely of files that were modified in earlier
changesets in the merge (it was selecting the highest "version FROM"
instead of "version TO").
2019-04-02 14:45:14 +02:00
Philippe Miossec 5b8991f68c Adapt logger console color output to support white console background color 2019-03-01 17:33:16 +01:00
Philippe Miossec bfe37900c5 fix crash when unable to load TFS dependencies
fix #1258
2019-02-19 15:05:19 +01:00
Philippe Miossec 37feaa3364 Display a warning when a file is ignored (#1213) 2019-01-25 17:34:01 +01:00
Jeff Cyr dafdea1c1d Normalize line endings on checkout/tfs push if autocrlf=true (#1210)
* Properly normalize line ending if autocrlf is set to true
2019-01-25 16:48:21 +01:00
Mert Akinc 10fd93da8e DirectoryTidier should not attempt to delete a directory if a new file was added under it. 2019-01-23 15:07:57 -06:00
Mert Akinc 67256ce17f Add failing test cases 2019-01-23 15:07:57 -06:00
Mert Akinc 706af06974 Tests should VerifyNoOtherCalls to ensure no unexpected deletes, etc. 2019-01-23 12:56:40 -06:00
Philippe Miossec f1c4ea58d2 Update xunit to 2.4.1 2018-12-04 12:57:43 +01:00
Philippe Miossec cf567ca141 Prepare dotnetcore: disable what is not disponible on dotnet core 2018-11-22 14:17:11 +01:00
Philippe Miossec fc14562925 exit code different of 0 when fail to fetch branches 2018-11-22 13:47:18 +01:00
Philippe Miossec e34d18d302 Replace RhinoMocks by Moq
because RhinoMocks is no more maintained and doesn't support .netstandard
2018-11-22 12:54:15 +01:00
Philippe Miossec 61537f65fa Remove "SEP" references... 2018-11-19 11:57:39 +01:00
Philippe Miossec 03cce10f87 build: Remove copying libgit2sharp native libraries that are no more needed 2018-11-19 11:49:15 +01:00
Philippe Miossec 03ecc8c2ec Update to libgit2sharp 0.25.3 2018-11-19 11:49:15 +01:00
Philippe Miossec 60f0f6cfb1 Convert csproj to new format + adaptations (#1234) 2018-11-16 15:38:17 +01:00
Philippe Miossec 55dba91ca8 fix xunit analyzer warning 2018-11-16 15:21:05 +01:00
Philippe Miossec 92facd9627 integration tests: write in the console the path toward repo created
to make debugging easier
2018-11-16 13:40:33 +01:00
Philippe Miossec 8b37c798cd fix tests when run in parallel
by removing the use of a static property that can make other tests fail
2018-11-16 13:40:21 +01:00
Philippe Miossec d1bab9d3f0 get StructureMap and RhinoMocks dependencies through nuget 2018-11-15 12:54:18 +01:00
Philippe Miossec 860cc7ae6c Fix no more existing reference 2018-11-15 12:32:46 +01:00
Philippe Miossec e7705a2cf6 update cake version 2018-11-15 12:28:51 +01:00
Philippe Miossec 65e9f16765 Build our own .netstandard NDesk.Options dependency
First step in the far goal to build git-tfs in dotnet core

+ cake: run 'msbuild /t:Restore' because msbuild is not doing it
See for more details: https://github.com/fsprojects/Paket/issues/2697
2018-11-15 12:27:56 +01:00
Philippe Miossec 990d17ba28 delete useless file 2018-11-14 13:53:55 +01:00
Philippe Miossec 5d991251b5 Update project file version 2018-11-14 13:53:46 +01:00
Philippe Miossec d033dad5f3 remove useless file (that break paket) 2018-11-14 13:11:09 +01:00
Philippe Miossec 366c0b77eb Add .net462 and windows10 long path support (#1221)
* Update Application  manifest
* Update App.config
* Upgrade to .net 4.6.2

Support in win10 for long path should be enabled:
In the Local Group Policy Editor ("gpedit.msc") navigate to `Local Computer Policy` -> `Computer Configuration` -> `Administrative Templates` -> `All Settings` ->`Enable Win32 long paths`.
Set it to `Enabled`.

https://blogs.msdn.microsoft.com/jeremykuhne/2016/07/30/net-4-6-2-and-long-paths-on-windows-10/
2018-11-14 13:10:05 +01:00
Philippe Miossec d954d57bef update doc for .net fwk required 2018-10-30 12:59:33 +01:00
Geert Bleyen be9c7b3048 Deleteallremotes (#1204)
* Added option to delete all remotes at once
2018-08-10 01:51:12 +02:00
Geert Bleyen 742a29f5eb Better detection of relevant changes for finding parent to fetch (#1203) 2018-08-10 01:41:48 +02:00
Lukas Rieger 57a37c2a39 Clone whole collection into "tfs-collection" when no name is specified (#1202)
Fixes #1201
2018-06-12 13:44:12 +02:00
Philippe Miossec 4eb8a3fab5 Add download count badge in the release summary 2018-06-06 00:26:18 +02:00
Philippe MIOSSEC 87880cb456 fix(build): fix crash when uploading release package in github release
due to the GitHubClient options that can't be changed once the first call has been made :(

error was: "This instance has already started one or more requests. Properties can only be modified before sending the first request."
2018-06-05 10:09:28 +02:00
Philippe Miossec db293b9543 Chocolatey: Update git dependency version 2018-05-29 23:39:26 +02:00
Geert Bleyen 6180aa18e3 Fix critical bug in merge parent changeset lookup
Now, looking for the parent changeset is done by examining the actual mergesources of the merge itself.
When the merge changeset contains merges from more than 1 branch, this may still lead to missing merge history,
but that's not solvable in git, as it just doesn't support such scenarios.
If this scenario occurs, the branch with the highest mergesource version will be picked (in the old implementation this also failed)

See #1195
2018-05-29 22:33:40 +02:00
Philippe Miossec e739f2e537 Add some more logging to changeset lookup logic 2018-05-29 22:33:40 +02:00
Philippe Miossec d9628cda0a Display hint message as a warning 2018-05-29 21:53:17 +02:00
Lars Schneider d4391dcf6f Add --ignore-restricted-changesets option to fetch command
If a TFS user has no read access to a changeset, then TFS responds with
a "TF14098: Access Denied" error. This error aborts the fetch operation.

Add the --ignore-restricted-changesets option which allows the user to
ignore these respective changeset. If the option is set, then git tfs
will import the access restricted changeset as empty commit and ignore
the error.
2018-05-25 12:32:15 +02:00
Geert Bleyen fd87b0fb7d external repository detection fix and usability improvements to exclude branches during clone/fetch (#1194)
* fixed bug in external repository detection
improved usability by
- exposing ignore-not-init-branches to commandline
- added ignore-branches-regex to more granularly control which branches to initialize during fetching and cloning
2018-05-24 01:38:48 +02:00
Memmie Lenglet c432bbbb90 Fix parameter name in doc (#1193)
* Rename parameter name

*  Rename parameter name
2018-05-14 17:24:29 +02:00
Laibalion dfb0aef0ac Ignore not init branches (#1189)
ignore-not-init-branches's value is not longer case sensitive.
True, true, False, False etc are all valid.
2018-05-09 18:20:00 +02:00
Vadim Zabavnov 1f49daa2c6 implements support of parallel loading items for the workspace 2018-03-14 13:21:47 -04:00
Vadim Zabavnov 2ac50c434a Added method extensions ToBatch, DoParallel and DoParallelRetry 2018-03-14 13:21:47 -04:00
Vadim Zabavnov c9dffb7175 stop downloading an item's URL 2018-03-14 13:21:47 -04:00
Philippe Miossec ba55b655c3 Pick up labels that don't specifically have the branch folder listed. Fixes #1125. 2018-03-02 14:11:15 +01:00