Commit Graph

53 Commits

Author SHA1 Message Date
Matt Burke f66d439707 Replace one-off BatchSize with a pattern for command-line + git config values. 2014-10-02 13:42:42 +02:00
Philippe Miossec ed48555765 Save the option only when cloning 2014-10-02 13:42:41 +02:00
Philippe Miossec e956d1d340 Expose a BatchSize option...
Since 21f36fa47c, tfs changesets are
 fetched by batches of 100 changesets (instead of all at once)
 to better support big history when cloning (and use less memory).

This option let the user specify the size of the batch
(because perhaps even 100 is too big for some big repositories).

Values accepted:
x < 0 => Only one batch with ALL the changesets
x == 0 => default value of 100
x > 0 => batches of x changesets
2014-10-02 13:42:41 +02:00
Philippe Miossec 971abcb3dc Add an option "-ignore-branches" to ignore merged branch when fetching in merge changeset
It correspond to the old way git-tfs worked!
2014-07-05 13:48:09 +02:00
Philippe Miossec 36f4a23b0e cleanup workspace directory even when fetch problems 2014-03-16 15:45:11 +01:00
Philippe Miossec 9dbb288bfd update fetch documentation 2014-03-07 15:53:43 +01:00
Arkady Shapkin 6ea1eb7ade fetch all output improved 2014-03-02 14:02:28 +01:00
Arkadiy Shapkin b90b8ca53f Removed unused using directives 2014-02-06 15:35:03 +04:00
Philippe Miossec 96218b751b Use a workitems mapping file during export to convert work items ids
Introducing of `--export-work-item-mapping=` option to specify file path
2013-11-26 15:37:13 +01:00
Philippe Miossec 771f1e06f9 Reading author file in one place only 2013-11-19 14:34:50 +01:00
Philippe Miossec 2478f31e4d Use the '--force' option to force git-tfs bypass optimisation preventing fetching again the changesets
and add a help message on the 'reset-remote' command
2013-09-29 17:00:56 +02:00
Philippe Miossec 187aac21bc remove code commented 2013-09-25 17:57:34 +02:00
Philippe Miossec 0ef7691e9b Save ExportMetadatas option in the config 2013-09-21 00:33:19 +02:00
Philippe Miossec bf6342bf36 Export metadatas 2013-09-20 21:31:17 +02:00
Philippe Miossec 17e4cfdf8d Merge branch 'master' into fetch_merge_when_no_commit
Conflicts:
	GitTfs/Commands/Clone.cs
	GitTfs/Commands/Fetch.cs
	GitTfs/Commands/InitBranch.cs
	GitTfs/Core/IGitRepository.cs
	GitTfs/Core/TfsInterop/ITfsHelper.cs
2013-06-06 23:10:52 +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 51a96daf50 refactoring and space corrections 2013-06-03 00:46:48 +02:00
Philippe Miossec 65540aaa26 Fetch all the merge changesets and interdependant branches when clone --with-branches 2013-05-21 18:35:19 +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