Commit Graph

40 Commits

Author SHA1 Message Date
Matt Burke e334ed1afd IsExistingInTfs() for VsFake. 2013-05-29 10:41:55 -04:00
Philippe Miossec 20f2eb6832 clone: verify if tfs path exists 2013-05-25 12:01:38 +02:00
Matt Burke ddd022bee5 Merge pull request #336 from l3m/correct-authors
Correct author attribution
2013-04-12 06:31:01 -07:00
Matt Burke eddb571739 Merge remote-tracking branch 'origin/master' into workspace-fix 2013-04-04 22:31:04 -04:00
Jonas Boesch 86bc1a4b77 Fixed code that failed test WorkspaceTests.Policy_failed_and_Force_with_an_OverrideReason.
- Updated test calls.
- Removed duplicate versions of Checkin and EvaluateCheckin without author.
2013-03-26 15:59:48 +01:00
Jonas Boesch 43f8b6a475 Added author parameter to Checkin method.
- Added IWorkspace.Checkin overload that takes an author parameter
- Implemented the method in the VSx-Wrappers.
2013-03-26 13:56:49 +01:00
ivan.danilov-econ 690ccef82e Normalized line endings to be LF in repository (line ending in the working copy managed by core.autocrlf option) 2013-03-21 14:35:22 +02:00
Matt Burke 32ff983b9e Only proactively clean up .git/tfs/workspace. 2013-03-19 10:15:22 -04:00
Philippe Miossec 00a6e34d8c Add create Tfs branch option to branchcommand
+ other small refactoring
2013-02-03 22:17:58 +01:00
Matt Burke bee409ed42 Fallout from those merge conflicts. 2013-01-09 16:58:05 -05:00
Matt Burke 3f8a9e280c Merge branch 'master' into test-changes
Conflicts:
	GitTfsTest/Integration/IntegrationHelper.cs
2013-01-09 15:24:29 -05:00
Matt Burke d7cca94d4c Merge pull request #274. 2013-01-08 07:03:59 -05:00
Matt Burke 9d7039a396 Separate base TFS interaction from higher-level logic. 2013-01-08 06:27:56 -05:00
Matt Burke b1eaf4b003 Merge pull request #275 from pmiossec/filter_label_by_name
Filter label by name
2013-01-08 05:01:58 -05:00
Matt Burke ed016a21d8 Run integration tests in-process.
Hopefully this doesn't mess too many things up.
2013-01-04 16:52:01 -05:00
Matt Burke 9fede73533 Build fake workspace like the normal workspace. 2013-01-04 16:41:50 -05:00
Daniel Lee 6e42acb54b Add method to compare Tfs url and Repo path to GitTfsRemote
Moving logic from TfsHelper.Common and GitRepository into GitTfsRemote.
Easier to test as TfsHelper is tightly connected to Tfs and GitRepository is
difficult to test directly. Added tests for GitTfsRemote.
2013-01-02 23:54:36 +01:00
Philippe Miossec 54f4350c71 Filter label by name 2013-01-02 21:25:39 +01:00
Philippe Miossec a2a1916f70 Correct clone message and init-branch using the good branches informations 2013-01-02 00:24:58 +01:00
Philippe Miossec 38fdab79c5 'git tfs branch' now lists all branches ancestor or descendent to the remote.TfsRepositoryPath 2012-12-31 18:59:34 +01:00
Matt Burke 3fc13957dd Fix an off-by-one.
(Thanks, @daniellee! https://groups.google.com/forum/#!msg/git-tfs-dev/kiRE5FB5RKI/xh_sxkH-2H8J)
2012-12-30 08:11:06 -05:00
Matt Burke 4d97b71542 Use a custom workspace, if desired. 2012-12-20 16:24:59 -05:00
Matt Burke 01176a96b8 Avoid using exceptions for control flow.
Also, this fixes the broken tests.
2012-12-18 17:52:00 -05:00
Philippe Miossec 4d7e0f4125 Add a 'labels' command to get TFS labels of a branch
Synthaxe is similar to 'fetch' command with '-i' and '--all' options...
+ Add an option `--with-labels` to the 'fetch' command to get TFS labels when fetching TFS changesets
2012-12-15 13:45:04 +01:00
Kim Gybels 26fe4ad269 Download correct files for unshelve
Downloading of files was the responsibility of the items themselves,
but to optimize this, it was changed to requesting entire changesets
at once. However, this optimization broke downloading of shelvesets.

The changeset is now responsible for populating the workspace with the
correct files. This allows for different download strategies for real
changesets and shelvesets.
2012-12-06 00:03:12 +01:00
Philippe Miossec da5a6201a5 Creation of the command "init-branch" to manage the cloning of a TFS branch (or all) from a TFS Server (2010, 2012 and 2008 partly)
Compiled for TFS Server 2008, 2010, 2012 and tested with TFS Server 2010, 2012

!! This command need that the clone of the TFS repository was made from the trunk (and not on the whole repository) and with history (not a quick-clone).

Usage for TFS 2010 and 2012 :
-------------------------------
* to clone one branch
git tfs init-branch $/Repository/path <git-branch-name-wished>
ex :
git tfs init-branch $/Repository/ProjectBranch
git tfs init-branch $/Repository/ProjectBranch myNewBranch

* to clone all branches
git tfs init-branch --all

Usage for TFS 2008 :
---------------------
* to clone one branch
git tfs init-branch--parent-branch=$/Repository/ProjectParentBranch $/Repository/path <git-branch-name-wished>

ex :
git tfs init-branch --parent-branch=$/Repository/ProjectParentBranch $/Repository/ProjectBranch
git tfs init-branch --parent-branch=$/Repository/ProjectParentBranch $/Repository/ProjectBranch myNewBranch
2012-11-19 22:03:42 +01:00
Kim Gybels 18269ea59f Support for checkin notes
Specify the code reviewer in a commit message similarly to how
work items are associated, e.g.:
git-tfs-code-reviewer: John Smith
2012-11-06 22:52:37 +01:00
Matt Burke dc4a16aea9 Fix tests. 2012-11-05 19:39:03 -05:00
Matt Burke b986c51ff8 Merge remote-tracking branch 'main/master' into faster-clone
Conflicts:
	GitTfs/Core/GitTfsRemote.cs
	GitTfs/Core/ITfsWorkspace.cs
2012-10-16 08:09:22 -04:00
Matt Burke d0597f7311 Set up travis build. 2012-09-03 09:11:13 -04:00
Matt Burke d40904a2d4 Clean up projects, configurations. 2012-08-31 13:45:47 -04:00
Matt Burke 63c95d4a2e Add xunit with nuget. 2012-08-29 16:51:16 -04:00
Matt Burke 3f7e27aa6a DeletionId should be int. 2012-06-06 16:06:52 -04:00
Matt Burke 71dfe64693 Use TemporaryFile for downloaded files. 2012-05-21 10:53:22 -04:00
Sean M. Collins 0dd114f52b Replace streams with path to temp files 2012-05-16 15:32:08 -04:00
Matt Burke 30e4b8f872 Created a VsFake-based integration test. 2012-04-25 00:44:26 -04:00
Matt Burke 9f79f1839a Refactor unshelve. 2012-03-30 13:34:11 -04:00
Sean M. Collins 418afd1d30 Create VS11-only configuration 2012-03-04 14:50:09 -05:00
Matt Burke 34d5831f84 mono git-tfs.exe works! 2012-01-28 11:21:50 -05:00
Matt Burke 6e3cf85a3b Added a 'fake' TFS backend.
Hopefully, this will make it easier to dev on mono on my mac.
2012-01-28 10:55:38 -05:00