Commit Graph

1671 Commits

Author SHA1 Message Date
Philippe Miossec f28b699132 Easier debugging 2015-02-08 15:58:18 +01:00
Philippe Miossec 3956800f4e Adapt unit tests and TfsHelper.VsFake to obtain the REAL shas
See the reference repository here: https://github.com/pmiossec/vtccds
2015-02-08 15:58:17 +01:00
Matt Burke 62daac6cf2 Add the actual refs from the created repository. 2015-02-02 16:51:45 -05:00
Matt Burke b948e30c10 File contents are gzip'ed when they come back from TFS. 2015-02-02 15:48:09 -05:00
Matt Burke 795c7f1ed1 TIL https://msdn.microsoft.com/en-us/library/system.io.stream.copyto%28v=vs.110%29.aspx 2015-02-02 15:45:36 -05:00
Matt Burke 2e625c5b6e Merge remote-tracking branch 'origin/rename_branch_and_add_file_With_test' into rename_branch_and_add_file
Conflicts:
	GitTfsTest/GitTfsTest.csproj
2015-02-02 15:31:26 -05:00
Matt Burke 6533bdc3ff Compile vtccds fixture. 2015-02-02 15:30:02 -05:00
Philippe Miossec 8ec2f8dc00 Adapt generated test to make it (partly) work
!! Rename branched don't work at the moment :(

The script generated by the ruby script ( https://github.com/git-tfs/git-tfs-test-builder )
do not contains enough data to fake all the tfs calls, so we have to adapt it...

Perhaps we could post process the datas and enrich them to not be obliged
to adapt it manualy but it's a bit ambitious for the moment.......

ToDo: We must modify the `Read()` method to convert well the byte[] in string (I didn't find how!)
2015-02-01 02:00:50 +01:00
Philippe Miossec d4b1694316 Fix changesets returned by TfsHelperFake
when one branch name is contained in the name of one other
2015-02-01 01:06:55 +01:00
Matt Burke 8ebeaddfd4 Convert vtccds to test scripts with https://github.com/git-tfs/git-tfs-test-builder 2015-01-30 13:11:49 -05:00
Matt Burke e17136e524 Use a context object instead of feeding back the fetchresult. 2014-12-27 11:53:22 -05:00
Matt Burke 64ba962e9e less churn: FindMergedRemoteAndFetch. 2014-12-27 11:37:22 -05:00
Matt Burke 7d5bd79d02 Add an extension method overload. 2014-12-27 11:33:03 -05:00
Philippe Miossec f2d713e9f6 Refacto: Store rename data in FetchResult and pass it to the fetch of the next branch! 2014-12-26 19:32:03 +01:00
Philippe Miossec 2fa751931e We should look for renames even if there is a tfs remote (but empty!) 2014-12-26 19:28:07 +01:00
Philippe Miossec aa323f0057 refactoring 2014-12-26 19:28:06 +01:00
Philippe Miossec 73f594485c Manage case where the first changeset of a clone is a rename changeset 2014-12-26 19:28:06 +01:00
Philippe Miossec 23f3da86bc Process changeset when with new branch (instead with old one)
Ignore rename changeset when discovered because
we want to process it as a changeset of the renamed branch.

This way, if changes are made (other than the branch renaming),
there will be fetched in TfsHelperBase.GetChangesets()!

Before that change, there would have been not fetched
because the tfs path was the one of the old branch but
the changes belong to the new renamed branch path!
2014-12-26 19:28:05 +01:00
Philippe Miossec 62147ffc7d Detecting an branch rename changeset 2014-12-26 19:28:04 +01:00
Philippe Miossec 8b50417d49 Some silly people could add changes when renaming a branch 2014-12-26 19:28:03 +01:00
Philippe Miossec ded330357b Merge pull request #703 from pmiossec/clone_subbranch
Being able to clone a sub branches and use of `--with-branches` option
2014-12-26 19:27:37 +01:00
Philippe Miossec 322c55dbb4 Being able to clone sub branches and use of --with-branches option
We are now, not obliged to clone the trunk to use the `--with-branches` option!
That way the sub branch will be cloned (with all the branches merged into it)
 and all its children branches will be initialized after.

There is no more technical reasons that prevent cloning a sub branch...

Solve https://groups.google.com/forum/#!topic/git-tfs-dev/XndbEXRcx1M
2014-12-26 19:25:32 +01:00
Philippe Miossec caecd2ca32 Merge pull request #702 from pmiossec/add_unit_tests
Add Unit tests for IEnumerable<BranchTree>.GetAllChildren()
2014-12-24 18:58:49 +01:00
Philippe Miossec a89f16ab70 Add Unit tests for IEnumerable<BranchTree>.GetAllChildren() 2014-12-24 18:49:59 +01:00
Philippe Miossec 0597b21fdf Merge pull request #701 from sergkr/doc-fix
Fix link for running the unit tests
2014-12-24 16:25:40 +01:00
Sergey Krilov d95a4a6e65 Fix link for running the unit tests 2014-12-24 10:20:30 -05:00
Philippe Miossec a64effae96 doc: improvements 2014-12-23 16:10:29 +01:00
Philippe Miossec 7a069dfac3 Merge pull request #696 from Kantis/improved-readme
Missing command in readme
2014-12-18 00:21:36 +01:00
Emil Kantis 92dc18c72f Added a command that needs to be run to get the LibGit2Sharp repository properly 2014-12-18 00:00:41 +01:00
Philippe Miossec 3d9ba728a0 Merge pull request #681 from pmiossec/update_libgit2sharp
Update libgit2sharp to v0.20
2014-12-13 12:45:44 +01:00
Philippe Miossec 724c8e9d15 Update libgit2sharp to v0.20 2014-12-13 12:40:03 +01:00
Matt Burke 7bd69cbbb3 Merge pull request #693 from idealist1508/fix_tfs_clone_throws_Exception
fix for #645 - ItemNotFoundException
2014-12-11 18:11:31 -05:00
idealist1508 45621291c7 Make Test happy 2014-12-10 00:19:36 +01:00
Matt Burke 9d01a022fa Add test for #645. 2014-12-09 16:07:04 +01:00
Philippe Miossec 8b4f34c616 Prevent throwing of an Exception when reading missing git config key 2014-12-07 19:02:03 +01:00
Philippe Miossec 7c51f46272 Merge branch 'pr/684' 2014-12-01 22:25:04 +01:00
Philippe Miossec 733eb3af5a Branch doc: some other adjustments 2014-12-01 22:24:07 +01:00
Philippe Miossec c3419e3eb6 [doc]Keep changeset id 2014-11-28 17:36:41 +01:00
Matt Burke 117ced2b06 Updates to docs for branch command
Made a few readability, elaboration, typo and grammar fixes to the
branch command documentation
2014-11-25 20:38:34 -06:00
Philippe Miossec ece5428c05 Merge pull request #683 from honestegg/issue#682
Add support for ExtendedMerge of type Undelete
2014-11-21 18:54:44 +01:00
Brian Beard c2393ad975 Add support for ExtendedMerge of type Undelete 2014-11-21 10:59:19 -06:00
Philippe Miossec 1e5c9dd694 Merge pull request #678 from pmiossec/fix-missing-merge-parent
Handle error case  where no merge info is returned by QueryMerges
2014-11-21 09:54:39 +01:00
Philippe Miossec 5fe4d7594d doc: make the 'tf' command works everywhere & everytime
by specifying the collection url.
2014-11-17 23:22:53 +01:00
Dave Hanna c6eadbb477 Handle error case where no merge info is returned by QueryMerges 2014-11-16 18:13:21 +01:00
Philippe Miossec 62d141e2bc Merge pull request #675 from pmiossec/improve_init_when_renames
Prevent fetching already fetch changesets from already initialized branches
2014-11-16 18:12:35 +01:00
Philippe Miossec 11e24c5456 Merge pull request #671 from pmiossec/fix_crash_list_empty
Fix crash when parent tfs is not found
2014-11-16 17:25:53 +01:00
Philippe Miossec 26d131ad52 Fix crash when parent tfs is not found
because the branch is a pure git branch
2014-11-03 13:28:28 +01:00
Philippe Miossec 2aa1a77b6b Prevent fetching already fetch changesets from already initialized branches
by removing branches when the changeset of child branch
is alredy found in the repository
2014-11-02 20:26:58 +01:00
Philippe Miossec d76181de7d Merge pull request #662 from pmiossec/clone_tfs_root
Being able to clone TFS path "$/"
2014-10-27 22:44:57 +01:00
Philippe Miossec 19a27f5c48 Update release note 2014-10-27 22:42:59 +01:00