Commit Graph

16 Commits

Author SHA1 Message Date
Matt Burke ea7c82c038 Show timing information in debug output. 2013-06-08 07:48:25 -04:00
Chris Wundram 54807c30f5 Added --nofetch option to init-branch to set up TFS remote for branch
without doing a fetch.  Usefull to check config file before executing
fetch.
Now fails when --all and --nofetch are used on init-branch at the same time
Added test for case with --all and --nofetch
2013-05-27 08:19:59 -05: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 3911338152 Change IBranch into a simple-ish value object BranchTree. 2013-01-08 06:53:15 -05:00
Matt Burke 28b8e93a91 DateCreated isn't used. 2013-01-08 06:39:00 -05:00
Matt Burke 4a3fe9c864 Handle the "not on a branch" case for init-branch. 2013-01-08 06:34:49 -05:00
Matt Burke 9d7039a396 Separate base TFS interaction from higher-level logic. 2013-01-08 06:27:56 -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
David Alpert 1bcd9b0ea3 improving the error message when InitBranch fails because it needs a clone of the trunk 2013-01-02 00:50:21 -06:00
David Alpert 457770bc1f fixed the mocked setup of some IBranches to surface an issue with the InitBranch command:
the IBranch structure is a node in a tree containing a path and referencing it's children, thus getting only its children never includes the root path, causing the current implementation of InitBranch to always throw an exception.
2013-01-02 00:50:20 -06:00
David Alpert 20bc4b0221 adding the expected error message to an InitBranchTest to verify that it is throwing the expected exception 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 12617efec0 Save and re-use author file until overwritten 2012-12-04 13:42:09 +01:00
Philippe Miossec 5f4479241b Use author file to manage author mapping in init-branch command 2012-12-04 13:20:31 +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