Commit Graph

77 Commits

Author SHA1 Message Date
Kim Gybels fa27dd88e5 Unit test for getting reviewers from message 2012-11-08 18:10:18 +01: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
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
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
Sean M. Collins 054fbf2181 Remove CSharpOptParse 2012-02-13 14:45:01 -05:00
Sean M. Collins 88e8fe2cec Add reference to NDesk.Options 2012-02-13 14:45:00 -05:00
Matt Burke 9299d2c69a dos2unix 2012-01-28 11:42:04 -05:00
Tuomas Järvensivu 8fc96a7ebe Fix commit regex used by FindTfsCommits to detect a commit from git log
FindTfsCommits failed in detecting Tfs commits when parsing a
revert commit.

For instance when parsing following git log report the Tfs commit finder
failed when parsing commit 027a14b24280ca3ba24e4c1e52411de35b944442.

Failure occurred when parsing the line
    This reverts commit e096daaf57d937fef3c0c639c3a59232310c6a20.
Old Regex("commit (" + GitTfsConstants.Sha1 + ")") failed by parsing this
as a start of a new commit.
Commit regex is tightened to Regex("^commit (" + Sha1 + ")\\s*$")

Added tests prove that the new Regex handles both commit topic lines
and revert commit subjects.

==================== Example git log report ====================
$ git log --no-color --pretty=medium HEAD
commit 8c7350acc9a1feffa9882badecc625129c9b8943
Merge: 027a14b fe03e90
Author: Tuomas J<C3><A4>rvensivu <tuomas.jarvensivu@reaktor.fi>
Date:   Sun Sep 11 22:16:46 2011 +0300

    Merge commit 'fe03e9009e46c4eb1b961578b201553eb59b11ed'

commit fe03e9009e46c4eb1b961578b201553eb59b11ed
Author: Tuomas J<C3><A4>rvensivu <tuomas.jarvensivu@reaktor.fi>
Date:   Sun Sep 11 22:02:48 2011 +0300

    Change on top of reverted commit

commit 027a14b24280ca3ba24e4c1e52411de35b944442
Merge: 2b9fe0c f3b25d8
Author: Administrator <WIN-R5AMS97DB6H\Administrator>
Date:   Sun Sep 11 18:50:31 2011 +0000

    Subject: Revert "This commit will be reverted."
    Author: Tuomas J<C7><CF>rvensivu tuomas.jarvensivu@reaktor.fi
    Date: Sun, 11 Sep 2011 21:45:01 +0300
    Git commit hash: d5e949694e8d1442921250e0df4fb38d314dce53

    This reverts commit e096daaf57d937fef3c0c639c3a59232310c6a20.

    git-tfs-id: [http://localhost:8888/tfs/GitTfsTestCollection]$/GitTfsTest;C9
==================== Example git log report ====================

Signed-off-by: Tuomas Järvensivu <tuomas.jarvensivu@reaktor.fi>
2011-09-28 11:25:50 +03:00
ivan-danilov ae679a2fc0 Removed unnecessary failing test 2011-08-23 20:03:56 +03:00
ivan-danilov be4e399c7a Renamed GetParentTfsCommits -> GetLastParentTfsCommits for clarity 2011-07-08 23:51:43 +03:00
Matt Burke b18420dc36 dos2unix 2011-06-10 22:11:42 -04:00
Ryan Hansen e4f7b83844 Changed git-tfs pull command to throw a GitTfsException if there are local changes that have not been committed. This prevents Issue #25 from occurring. Also added an exception recommendation to stash changes and try pulling again. This is also a new unit test to validate this behavior. 2011-06-10 16:33:36 -06:00
Matt Burke fe64790216 Add support for "Copy" in another way.
Copies can be reported if diff.renames is set to 'copies'.

#44
2011-05-21 14:19:09 -04:00
Matt Burke c96eca911b All newlines are unix (in the repo). 2011-01-27 16:40:32 -05:00
Matt Burke 5adae0d3db Got rid of DummyRemote. 2011-01-27 14:46:05 -05:00
Matt Burke d93049affe Add GitTfsCommandRunner to help make GitTfsCommands' APIs more sane. 2011-01-26 16:54:35 -05:00
Matt Burke 2ae026001f Fixed pushes back to TFS. 2011-01-26 16:23:35 -05:00
Matt Burke 1985919692 Elminate use of ObjectFactory. 2011-01-26 16:19:09 -05:00
Matt Burke 0573325c9b Fix build. 2011-01-26 13:43:37 -05:00
Nathan Roe 886500ef17 Fixed solution build issues 2010-12-16 06:09:55 -05:00
Nathan Roe 6455902563 Merge branch 'master' of http://github.com/spraints/git-tfs
Conflicts:
	GitTfs.sln
	GitTfs/Core/GitTfsRemote.cs
	GitTfs/Core/IGitTfsRemote.cs
	GitTfs/Core/TfsWorkspace.cs
2010-12-14 22:14:11 -05:00