Commit Graph

37 Commits

Author SHA1 Message Date
Philippe Miossec 2d65a81050 revert workspace cleanup... 2013-06-07 12:26:24 +02:00
Philippe Miossec f20a9da861 rename 'bare' option of fetch to not conflict from the one of clone 2013-06-06 19:56:33 +02:00
Philippe Miossec 0ceb86d9f6 fetch : throw error when ahead commit and introduce --force flag
return an error that fetch is not allowed when there is ahead commits in bare repository
and introduce a flag --force which, when used, do fetch anyway and loose the ahead commits
2013-06-04 21:14:27 +02:00
Philippe Miossec c1b461ec03 corrections.... 2013-06-04 21:14:23 +02:00
Philippe Miossec 191fad0ee3 refactoring of how get ref for a head branch... 2013-06-04 21:14:21 +02:00
Philippe Miossec ff0de1c560 Add branch support in fetch and rcheckin for a bare repository
But should specify the git branch name that should be updated with --bare option

Use :
git tfs fetch --bare=master
git tfs fetch --bare=branch1 -i branch1
git tfs rcheckin --bare=master
git tfs rcheckin --bare=branch1 -i branch1
2013-06-04 21:14:19 +02:00
Philippe Miossec bb1c055f18 Modify fetch command to manage bare repositories 2013-06-04 21:13:12 +02:00
Philippe Miossec a2eeacbaac Clean workspace after running a tfs command
=> clone, fetch, init-branch, checkin, ...
2013-05-20 16:23:37 +02:00
Philippe Miossec 4d7e0f4125 Add a 'labels' command to get TFS labels of a branch
Synthaxe is similar to 'fetch' command with '-i' and '--all' options...
+ Add an option `--with-labels` to the 'fetch' command to get TFS labels when fetching TFS changesets
2012-12-15 13:45:04 +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
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 bbd8c742ab Convert the rest to NDesk.Options. 2012-02-01 07:27:49 -05:00
Matt Burke baae5b3746 Convert QuickFetch/QuickClone to NDesk.Options. 2012-01-31 08:07:19 -05:00
Matt Burke 37b71b4d05 Converted Fetch to NDesk.Options. 2012-01-30 07:53:57 -05:00
Matt Burke f0e0c28486 Use NDeskOptions for RemoteOptions. 2012-01-28 13:37:54 -05:00
Matt Burke 157676c473 Rough-in NDesk.Options. 2012-01-28 12:04:36 -05:00
ivan-danilov be4e399c7a Renamed GetParentTfsCommits -> GetLastParentTfsCommits for clarity 2011-07-08 23:51:43 +03:00
ivan-danilov 665ed2c846 Made fetch and bootstrap not only move tfs ref forward but updates untracked tags also 2011-07-08 23:30:35 +03:00
ivan-danilov ace9333c35 Fetch is now able to move forward tfs ref if newer commits from TFS pulled from other git repositories 2011-07-08 23:11:39 +03:00
Matt Burke c96eca911b All newlines are unix (in the repo). 2011-01-27 16:40:32 -05:00
Matt Burke 67908e912f Resolved build warnings. 2011-01-27 16:30:03 -05:00
Matt Burke 59a80d15e4 Commonized checkin/checkintool/shelve. 2011-01-27 14:45:07 -05:00
Matt Burke ba28720fde Use new GitTfsCommandRunner in all commands. 2011-01-26 17:10:35 -05:00
Matt Burke 283291e631 Got quick-clone to list tfs's files. 2010-06-21 13:21:04 -04:00
Matt Burke 4b793b157f Implemented the shelve command (but not the actual shelving). Shuffled some other things around. 2009-09-03 14:26:18 -04:00
Matt Burke 4fd44ed6ef Refactored most methods with high cyclomatic complexity (6+). 2009-07-31 16:43:25 -04:00
Matt Burke 0ab3ecab98 Got it to avoid refetching changesets it already has. 2009-07-16 14:17:08 -04:00
Matt Burke ad85636e58 A little refactoring, and got the TFS commits to show up in a remote branch. 2009-07-15 16:02:04 -04:00
Matt Burke 4f5ae6dddd Got a list of changesets from TFS. Need to figure out how to handle/initialize new remote branches. Need to actually apply the changes retrieved from TFS. Need to figure out what the last changeset was when doing a fetch to update an existing repository. 2009-07-07 12:45:23 -04:00
Matt Burke 6b5e48a38b Got fetch to the point where it needs to hit TFS. 2009-07-06 15:48:35 -04:00
Matt Burke 0bfcb72a35 Got the last two commits to compile. 2009-07-06 09:58:07 -04:00
Matt Burke 76c4c0a01f Filled in more details for fetch. 2009-07-05 07:41:16 -04:00
Matt Burke 6458c67908 Haxed a bunch more on the fetch command. 2009-07-04 12:58:43 -04:00
Matt Burke 43f4207cc7 Started implementing fetch. 2009-07-02 16:37:30 -04:00
Matt Burke 5e0222481a Threw a bunch of stuff at the wall. 2009-06-29 09:09:43 -04:00
Matt Burke 3acb7e5ee3 Stubbed Init, with tests. Made an even rougher stub of Fetch. 2009-06-27 20:26:05 -04:00