Commit Graph

54 Commits

Author SHA1 Message Date
Matt Burke 2d612bc19c Extract the ignore logic.
Working towards #381 and #not-a-hack.
2013-06-03 08:36:23 -04:00
Matt Burke 3b7b07896a Update libgit2sharp.
I'm not all that pleased by the interface change to Dump, but
it works and is simple.

This should close #300.
2013-01-31 19:33:22 -05:00
Matt Burke 52e30c98ba Merge remote-tracking branch 'origin/master' into 297 2013-01-28 08:24:46 -05:00
Matt Burke f5f3debf1e Merge all the RemoteConfigConverter test classes. 2013-01-28 08:06:04 -05:00
Matt Burke 88a55766d3 Move the remotes-with-dots test to a different place. 2013-01-28 07:56:53 -05:00
Matt Burke 93f9a2f029 Merge remote-tracking branch 'origin/master' into delete-orphans 2013-01-25 13:15:41 -05:00
Matt Burke a1a0d2336f Start DirectoryTidier. 2013-01-24 17:56:27 -05:00
Matt Burke d062991eff Merge branch 'master' into refactor-to-functional-core
Conflicts:
	GitTfs/Commands/Init.cs
	GitTfs/Core/GitRepository.cs
	GitTfs/Core/GitTfsRemote.cs
	GitTfsTest/Integration/CloneTests.cs
	GitTfsTest/Integration/IntegrationHelper.cs
2013-01-09 15:39:59 -05:00
Matt Burke d7cca94d4c Merge pull request #274. 2013-01-08 07:03:59 -05:00
Daniel Lee 4784e99fde Add Fetch/Pull tests
Created tests for comparing the tfs url, legacy urls and
the repository path with mixed case when calling git tfs fetch or
git tfs pull. Used libgit2sharp to count the commits before and after.
Added support for running commands from the project directory (git
tfs clone is called from outside the project directory).
2013-01-03 00:49:58 +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
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
David Alpert da394477c1 fixing a possible NullReferenceException 2013-01-02 00:50:19 -06: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
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
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
Matt Burke dc4a16aea9 Fix tests. 2012-11-05 19:39:03 -05:00
Matt Burke ea752c6209 Add tests for bootstrap. 2012-10-16 17:15:39 -04:00
Matt Burke 6dd896eecd Unit tests for the configuration for a new tfs remote. 2012-10-16 13:53:13 -04:00
Matt Burke 28a199a382 Fix/skip tests on unix/mac. 2012-09-13 09:02:19 -04:00
Matt Burke 455b5f2536 New config reader for tfs remotes. 2012-09-10 23:18:36 -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 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 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 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
Sean M. Collins 5149549c59 Remove GitSharp 2012-05-31 15:00:53 -04:00
Matt Burke 30e4b8f872 Created a VsFake-based integration test. 2012-04-25 00:44:26 -04: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
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
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 c96eca911b All newlines are unix (in the repo). 2011-01-27 16:40:32 -05:00
Matt Burke d93049affe Add GitTfsCommandRunner to help make GitTfsCommands' APIs more sane. 2011-01-26 16:54:35 -05:00
Nathan Roe 57a112e368 Upgraded to VS2010 2010-12-01 22:12:39 -05:00
Matt Burke 7acceda081 Added some tests for GitChangeInfo. 2010-10-13 10:02:45 -04:00
Matt Burke 2143eae934 Upgraded git-tfs to GitSharp 0.3. 2010-06-21 13:20:44 -04:00
Matt Burke 7ba82f98b3 Started extracting TFS client dependencies in order to make them less dependent. 2010-04-19 15:15:45 -04:00
Matt Burke 025fb361ef Moved all external dlls to lib. 2010-02-04 08:03:41 -05:00
Matt Burke 0c4acfc761 Changed to use GitSharp for all file mode stuff. 2010-01-19 11:19:48 -05:00
Matt Burke 0bc16f555e Added a basic shelve implementation. 2009-09-08 14:18:02 -04:00
Matt Burke da834b996c Added a 'shelve' command, and test for invalid arguments (which may have gotten me over the hurdles that were keeping me from doing more TDD). 2009-09-03 11:14:25 -04:00
unknown 577d67df9f Forced project to 32-bit so it'll run on x64. 2009-08-13 16:14:11 -04:00