Commit Graph

28 Commits

Author SHA1 Message Date
James Dunne c666e6a44a Fix #367 by adding ChangeType.SourceRename case for init-branch. 2013-05-15 15:39:38 -05:00
Philippe Miossec e29e7eb4e0 remove variable not used 2013-04-19 01:24:20 +02:00
Philippe Miossec f4c66ad302 Add error trace when branch not found 2013-04-19 01:24:01 +02: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
Matt Burke b0daa8ac4a Merge pull request #281 from pmiossec/extend_branch_command
Extend branch command
2013-02-05 04:42:34 -08:00
Philippe Miossec c16df2452f better way? 2013-02-04 00:27:08 +01:00
Philippe Miossec b03389e9f2 Manage Add ChangeType to correct fail when init-branch call 2013-02-04 00:05:26 +01:00
Philippe Miossec 00a6e34d8c Add create Tfs branch option to branchcommand
+ other small refactoring
2013-02-03 22:17:58 +01:00
Matt Burke 0a155ff52a Cleanup. 2013-02-01 08:39:59 -05:00
Matt Burke 5461cb8c9c Revert whitespace changes so I can focus on what actually changed. 2013-02-01 08:29:18 -05:00
David Alpert e4f3026071 incorporating @thomaswurtz's feedback from issue #298 https://github.com/git-tfs/git-tfs/pull/298#issuecomment-12757119 2013-01-30 13:19:24 -06:00
David Alpert 6666a35999 incorporating @sc68cal's suggestions. 2013-01-30 13:15:30 -06:00
David Alpert e96a1a1978 Merge branch 'master' into init-branch-across-rename 2013-01-26 22:14:41 -06:00
David Alpert a8cd3042af cleaning up. 2013-01-26 22:14:28 -06:00
Alexey Raga 65cbe46846 Indentation corrected 2013-01-14 13:54:47 +11:00
Alexey Raga 14de51d738 Ordering the changesets by ID to correct the branching point (#284) 2013-01-14 09:55:44 +11:00
David Alpert 13ae61fdbe Better handles finding the root changeset on a renamed branch and init/create succeeds provided that the (now deleted) source branch was already fetched to the local git repo.
* trace output will surface the original branch name of the renamed branch we are init/creating.

* stdout will only surface the changeset number.

* it would be nice to pass more detailed information back from the call to find the root changeset, a richer object than just an int ChangesetId, so that the consumer with access to stdout can surface that as a possible suggestion to the end-user.
2013-01-11 14:19:58 -06:00
David Alpert a7653ba6e0 ITfsHelper.GetRootChangesetForBranch(..) now gets the proper root changeset for a merge. 2013-01-11 14:12:00 -06:00
Matt Burke b00418f346 Fix the wrap. 2013-01-08 10:38:49 -05:00
Matt Burke 9d7039a396 Separate base TFS interaction from higher-level logic. 2013-01-08 06:27:56 -05:00
David Alpert 0f83db05b1 removing unnecessary ToList() calls when getting the Root TFS branch for a given repository path. 2013-01-05 12:40:10 -06:00
David Alpert a2af52536b renaming some branch-related helper classes and cleaning up whitespace in the output 2013-01-02 21:38:37 -06:00
David Alpert 637569c424 trailing slashes are stripped from incoming TFS repository paths so that exact comparisons match properly. 2013-01-02 00:50:19 -06: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 01176a96b8 Avoid using exceptions for control flow.
Also, this fixes the broken tests.
2012-12-18 17:52:00 -05: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