Commit Graph

83 Commits

Author SHA1 Message Date
Philippe Miossec 8c4ce5e339 Keep refrence on VersionControlServer to prevent multiple event registration 2013-06-05 00:00:01 +02:00
Philippe Miossec 20f2eb6832 clone: verify if tfs path exists 2013-05-25 12:01:38 +02:00
Matt Burke 4d338626e2 Interweave some comments.
I'm normally not big on comments, but I thought I could validate my
reading of the code and answer future questions at the same time.
2013-04-04 14:58:12 -04:00
Matt Burke c13a1de363 tweak 2013-04-04 14:47:28 -04:00
Szymon Martynuska 46b75dc5d9 deleting all mappings to directories in working directory path 2013-04-03 00:16:54 +02:00
Matt Burke 32ff983b9e Only proactively clean up .git/tfs/workspace. 2013-03-19 10:15:22 -04:00
Matt Burke b898bb1fcc Be more proactive about cleaning up workspaces. 2013-03-19 10:00:07 -04:00
Matt Burke 5aeaf24bd5 Tighten up GetWorkspace. 2013-03-19 09:59:46 -04:00
Szymon Martynuska 8348da9368 white-space fix 2013-03-09 22:50:24 +01:00
Szymon Martynuska 2803f4cd33 Deleting automatically created workspace after an exception. 2013-03-09 22:50:22 +01:00
Daniel Schilling 642358a8cf Merge branch 'master' into issue/306
Conflicts:
	GitTfs.VsCommon/TfsHelper.PostVs2010.Common.cs
2013-03-05 16:10:40 -05:00
Daniel Schilling 0732786611 Moved init-branch VS 2008 specific behavior down to common base class. In the event of FeatureNotSupported exception, fall back to 2008 behavior. 2013-02-18 10:06:07 -05:00
Philippe Miossec 00a6e34d8c Add create Tfs branch option to branchcommand
+ other small refactoring
2013-02-03 22:17:58 +01:00
Philippe Miossec 438371b2c7 better use the few column space we have 2013-01-20 19:48:19 +01:00
Philippe Miossec c11d8d1d58 Order shelves by CreationDate by default 2013-01-20 19:47:54 +01:00
Matt Burke bee409ed42 Fallout from those merge conflicts. 2013-01-09 16:58:05 -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 49b5b7fb09 Revert to private _bridge. 2013-01-08 05:27:55 -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
Sean M. Collins 5f3c7ae5eb Merge pull request #276 from pmiossec/add_notes_for_workitems
Add a note on the commit to keep trace of the workitems
2013-01-07 12:21:24 -08:00
Philippe Miossec b5fb9b5b5b Add a note on the commit to keep trace of the workitems
Manage workitems when fetching changesets with adding a note with the workitems
displaying Id, title and a link to the workitem
2013-01-04 13:38:46 +01: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 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
Matt Burke 2ad9bd41f9 Rename FakeChangeset to make it more obviously tied to Unshelve. 2012-12-06 11:04:46 -05: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 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
Ed F bad2036fcd fix issue #215 in TFSHelper.NonFatalError. 2012-09-16 07:55:57 -04:00
Ed F 5cca260cda Add AuthorsFile.cs and associated unit test.
--AuthorsFile parameter added to the Fetch command and is registered as a singleton.
--Unit tests test the regex of the line parsing.
Updated logic around parsing the original changeset owner.  This was needed to properly identify a user who had been deleted from TFS without the need for an AuthorsFile.
2012-07-31 23:59:43 -04:00
Matt Burke 3f7e27aa6a DeletionId should be int. 2012-06-06 16:06:52 -04:00
Matt Burke d3e1f9163f Log as files get fetched. 2012-06-06 13:43:29 -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 9f79f1839a Refactor unshelve. 2012-03-30 13:34:11 -04:00
Sean M. Collins e013fabdf6 Fix deprecation warnings
Replace calls that used the deprecated AuthenticatedUser property, to use the abstract method GetAuthenticatedUser()
that is implemented by the VS2008 and VS2010 TFSHelper classes.

More Info:
http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.client.versioncontrolserver.authenticateduser.aspx
2011-12-12 14:54:55 -05:00
ivan-danilov a543d36ed3 Added handling of situation when no TFS history exists for given path (most probable cause is incorrect repository path passed to clone command) 2011-11-02 14:20:58 +02:00
ivan-danilov cc6befa63d Fixed #77 (error when trying to unshelve something with rename operation) 2011-10-14 02:16:36 +03:00
ivan-danilov ec39870cc3 Corrected help descriptions for unshelve and shelve-list commands. 2011-09-30 03:35:15 +03:00
Matt Burke 84ad194feb TfsWorkspace uses a ITfsHelper. 2011-08-31 14:14:44 -04:00
ivan-danilov e7d31522c6 shelve-list command implemented, list option taken off from unshelve 2011-08-06 04:37:24 +03:00
ivan-danilov e1d1326e54 Reworked TemporaryFile class (#55 fixed also) 2011-08-06 03:32:24 +03:00
ivan-danilov 54cf6a55c2 Revert "Avoid using MemoryStream if a FileStream will do." as it was breaking unshelve functionality 2011-08-05 19:28:27 +03:00
ivan-danilov fa242e1771 Clarified error messages in unshelve 2011-08-05 19:09:33 +03:00