Commit Graph

94 Commits

Author SHA1 Message Date
Philippe Miossec a2a1916f70 Correct clone message and init-branch using the good branches informations 2013-01-02 00:24:58 +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
Philippe Miossec f75b7ca5be Remove unallowed chars in labels
TFS permit chars that are not allowed in Git tag name (for exemple space)
2012-12-20 14:06:07 +01:00
Matt Burke 30bd53c6d9 Fix all the CI. () 2012-12-19 16:03:01 -05:00
Matt Burke c666307f29 BUILD CONFIGURATIONS. 2012-12-18 17:35:22 -05:00
Kim Gybels f3325488fa Merge branch 'master' into unicode
Conflicts:
	GitTfsTest/Core/GitChangeInfoTests.cs
	GitTfsTest/Integration/CloneTests.cs
	GitTfsTest/Integration/IntegrationHelper.cs

Conflicts were because extra unit tests were added and existing unit
tests were changed in the unicode branch, and this was done before
the move to xUnit.
2012-12-09 18:29:24 +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
togner 1e0a1a189d Minor fix to association of multiple workitems.
Action (resolve/associate) was parsed correctly only if it wasn't surrounded by any additional characters (space, cr, lf).
2012-11-09 19:45:18 -05:00
Matt Burke f6ff6e382b Merge pull request #245 from kgybels/checkin_notes
Support for checkin notes

Closes #241
2012-11-09 05:16:18 -08:00
Kim Gybels fa27dd88e5 Unit test for getting reviewers from message 2012-11-08 18:10:18 +01:00
Pat Thoyts bb1bfd4dc0 Created unit tests for the --autocrlf option to init and clone.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
2012-11-08 10:38:47 +00:00
Kim Gybels 3e9fb8b6b2 Unit test for getting code reviewer from message 2012-11-06 22:52:50 +01:00
Matt Burke dc4a16aea9 Fix tests. 2012-11-05 19:39:03 -05:00
Matt Burke 28a199a382 Fix/skip tests on unix/mac. 2012-09-13 09:02:19 -04:00
David Alpert 705d4d9f5b refactoring the generic caretaker into an explicitly passed and customized clone of the checkinoptions. 2012-09-10 09:38:18 -05:00
David Alpert a3aef8e1d5 adding more expressive output when overriding policy failures. 2012-09-04 04:23:18 -05:00
David Alpert 16dfc420e8 adding basic tests around how TfsWorkspace handles simple commits and simple policy failures 2012-09-04 04:23:05 -05:00
David Alpert edd0cd4deb refactoring the Rcheckin command to lean on the GenericCaretaker via a CheckinOptionsHelper when processing special actions in commit messages to associate and resolve work items 2012-09-04 04:22:29 -05:00
Matt Burke d0597f7311 Set up travis build. 2012-09-03 09:11:13 -04:00
Matt Burke f38e84db76 Move TfsApiBridge to the core project.
This will let me drop one of the test projects without dropping any tests.
2012-08-31 11:18:50 -04:00
Matt Burke 62a6ab47e5 Merge and update tests in #216
Conflicts:
	GitTfsTest/Util/AuthorsFileUnitTest.cs
2012-08-30 21:42:28 -04:00
Matt Burke 561033f841 Convert another test, following rebase. 2012-08-29 16:59:30 -04:00
Matt Burke 3b6dd441c3 Use xunit. 2012-08-29 16:52:32 -04:00
Matt Burke 63c95d4a2e Add xunit with nuget. 2012-08-29 16:51:16 -04:00
Ed F db9044d971 Added ability to comment line in AuthorsFile.
Renamed tests to start with AuthorsFile instead of "Test"
Added tests for international author names.
2012-08-27 20:42:44 -04:00
Sean M. Collins 449f258b12 Merge pull request #210 from rbirkby/CaseInsensitiveAuthors
Case insensitive authors
2012-08-21 11:05:25 -07:00
Eldhuset, Åsmund aab5d48426 Fixing CloneTests.CloneWithtMixedUpCase().
This test came very close to detecting the bug in #174. However, the bug only manifests itself when the difference in casing occurs deeper than the folders that are the children of the repo folder (so "$/MyProject/Folder" and "$/MyProject/folder" worked, but "$/MyProject/Foo/Bar" and "$/MyProject/Foo/bar" didn't work). The fixed test passes when 3a1d996aad is applied and fails without it.
Also, the line endings have been normalized to LF, which was the dominant line ending in the file (but seems to be contrary to most other files in the repo).
2012-08-17 13:03:53 +02:00
Richard Birkby 9503cf6a52 Add new test for case insensitive authors lookup 2012-08-16 15:28:15 +01:00
Kim Gybels f71672b4e8 Test: verify correct commit message after clone
Verify that the commit message is stored correctly in the
CloneProjectWithInternationalCharactersInCommitMessages test.
2012-08-12 20:04:23 +02:00
Kim Gybels a7810fb6e5 Fix line endings
Somehow the previous merge commit added incorrect line endings.
2012-08-12 20:02:14 +02:00
Kim Gybels 19414fba0f Unit test fix: run git instead of git.cmd
Recent Git version replaced the git.cmd script with an exe wrapper.
Running git works for both git.cmd and git.exe.
2012-08-12 19:35:52 +02:00
Kim Gybels 09318f7cfc Merge branch 'master' into unicode
Only conflicts regarding extension method StreamWriter.WithEncoding vs
StreamWriter.WithUTF8EncodingWithoutBOM. I kept the more general
WithEncoding.
2012-08-12 17:18:08 +02:00
Sean M. Collins 682d683802 Update refs for unit tests 2012-08-12 00:19:51 -04:00
Sean M. Collins edfa6c649c Merge pull request #205 from sc68cal/test_tweaks
Test tweaks
2012-08-11 21:12:57 -07:00
Sean M. Collins 5a6d978451 Merge pull request #197 from edwinf/issue118-push
Feature Request - #118 + Bug fix for removed AD users
2012-08-11 21:11:06 -07:00
Sean M. Collins 7ac25cbf57 Use the Path variable to locate git.cmd
Since we've gone through the trouble of adding it to the startInfo object.
2012-08-11 22:54:45 -04:00
Matt Burke aba2485463 Merge #200
Conflicts:
	GitTfsTest/Integration/CloneTests.cs
2012-08-11 21:05:06 -04:00
Kim Gybels 186a0184c2 Use -z option with git diff-tree.
When -z has been given, diff-tree does not munge pathnames and uses
NULs as output field terminators. This allows for secure parsing of
the output.

Quoted paths were not correctly interpreted as UTF-8. This avoids the
problem by not having quoted paths.
2012-08-11 19:22:56 +02:00
Eldhuset, Åsmund e79056af25 Adding tests for the international character support. 2012-08-10 16:45:11 +02:00
Eldhuset, Åsmund ca490a20c2 Making CloneTests pass on computers in different time zones. 2012-08-10 16:23:36 +02: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 3ff7e7af42 Add a test that demonstrates mixed-case behavior in TFS during clone. 2012-07-17 11:06:05 -04:00
Matt Burke 7e3523c0f7 No more switch. 2012-06-01 20:11:04 -04:00
Sean M. Collins 5149549c59 Remove GitSharp 2012-05-31 15:00:53 -04:00
Sean M. Collins b0eb392cab Replace GitSharp FileMode with LibGit2Sharp.Mode 2012-05-31 15:00:52 -04:00
Matt Burke 30e4b8f872 Created a VsFake-based integration test. 2012-04-25 00:44:26 -04:00
Steve Schmidt d7c24b6a09 Added unit tests to ensure that quotepath support is working 2012-02-22 17:06:50 +01:00
Sean M. Collins e532c767e5 Implement OptionSet from GitTFSCommand interface 2012-02-13 14:45:02 -05:00