Commit Graph

948 Commits

Author SHA1 Message Date
Matt Burke e17136e524 Use a context object instead of feeding back the fetchresult. 2014-12-27 11:53:22 -05:00
Matt Burke 64ba962e9e less churn: FindMergedRemoteAndFetch. 2014-12-27 11:37:22 -05:00
Matt Burke 7d5bd79d02 Add an extension method overload. 2014-12-27 11:33:03 -05:00
Philippe Miossec f2d713e9f6 Refacto: Store rename data in FetchResult and pass it to the fetch of the next branch! 2014-12-26 19:32:03 +01:00
Philippe Miossec 2fa751931e We should look for renames even if there is a tfs remote (but empty!) 2014-12-26 19:28:07 +01:00
Philippe Miossec aa323f0057 refactoring 2014-12-26 19:28:06 +01:00
Philippe Miossec 73f594485c Manage case where the first changeset of a clone is a rename changeset 2014-12-26 19:28:06 +01:00
Philippe Miossec 23f3da86bc Process changeset when with new branch (instead with old one)
Ignore rename changeset when discovered because
we want to process it as a changeset of the renamed branch.

This way, if changes are made (other than the branch renaming),
there will be fetched in TfsHelperBase.GetChangesets()!

Before that change, there would have been not fetched
because the tfs path was the one of the old branch but
the changes belong to the new renamed branch path!
2014-12-26 19:28:05 +01:00
Philippe Miossec 62147ffc7d Detecting an branch rename changeset 2014-12-26 19:28:04 +01:00
Philippe Miossec 8b50417d49 Some silly people could add changes when renaming a branch 2014-12-26 19:28:03 +01:00
Philippe Miossec 322c55dbb4 Being able to clone sub branches and use of --with-branches option
We are now, not obliged to clone the trunk to use the `--with-branches` option!
That way the sub branch will be cloned (with all the branches merged into it)
 and all its children branches will be initialized after.

There is no more technical reasons that prevent cloning a sub branch...

Solve https://groups.google.com/forum/#!topic/git-tfs-dev/XndbEXRcx1M
2014-12-26 19:25:32 +01:00
Matt Burke 7bd69cbbb3 Merge pull request #693 from idealist1508/fix_tfs_clone_throws_Exception
fix for #645 - ItemNotFoundException
2014-12-11 18:11:31 -05:00
Philippe Miossec 8b4f34c616 Prevent throwing of an Exception when reading missing git config key 2014-12-07 19:02:03 +01:00
Dave Hanna c6eadbb477 Handle error case where no merge info is returned by QueryMerges 2014-11-16 18:13:21 +01:00
Philippe Miossec 62d141e2bc Merge pull request #675 from pmiossec/improve_init_when_renames
Prevent fetching already fetch changesets from already initialized branches
2014-11-16 18:12:35 +01:00
Philippe Miossec 26d131ad52 Fix crash when parent tfs is not found
because the branch is a pure git branch
2014-11-03 13:28:28 +01:00
Philippe Miossec 2aa1a77b6b Prevent fetching already fetch changesets from already initialized branches
by removing branches when the changeset of child branch
is alredy found in the repository
2014-11-02 20:26:58 +01:00
Philippe Miossec d76181de7d Merge pull request #662 from pmiossec/clone_tfs_root
Being able to clone TFS path "$/"
2014-10-27 22:44:57 +01:00
Philippe Miossec a6ab755f81 Prevent using 'branch' command when cloned whole repository 2014-10-27 00:58:52 +01:00
Philippe Miossec 1b42dc93c1 Being able to clone TFS path "$/" 2014-10-27 00:58:52 +01:00
Philippe Miossec d3722592d1 A lot of fixes in documentation 2014-10-26 17:19:44 +01:00
Philippe Miossec 54786eab19 Improve doc
fix #669
2014-10-25 14:08:50 +02:00
Philippe Miossec 9129d0f0d9 Better error management and messages 2014-10-13 23:59:55 +02:00
Philippe Miossec 5d7bb02153 Add a method to persist options in git config file 2014-10-03 23:43:30 +02:00
Philippe Miossec ebe97e7472 When no value found in the git config file, use the default one specified 2014-10-02 23:41:22 +02:00
Philippe Miossec d38051f63c Make it build... 2014-10-02 13:42:43 +02:00
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 1dc2fc988b Doc 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 c3e624ddc8 cleaning spaces 2014-10-02 00:10:10 +02:00
Matt Burke 158d16b758 Merge pull request #636 from spraints/ignore-unshelve-errors
Add the option to ignore unshelve errors
2014-09-25 10:17:46 -04:00
idealist1508 5118bcde72 Fix for QueryHistory throws ItemNotFoundException 2014-09-25 07:53:35 +02:00
Matt Burke 8bdd754a0f Make the unshelve --force warnings shorter. 2014-09-24 10:05:28 -04:00
Matt Burke ba5add04ab unshelve --force ignores errors while Geting files. 2014-09-24 10:01:29 -04:00
Philippe Miossec 9851568ac7 Change call to CreateCommit() because used api is obsolete 2014-08-06 10:27:28 +02:00
Philippe Miossec c685a27aea Use the good Signature 2014-08-06 09:50:55 +02:00
Philippe Miossec 2a60c57f14 Update libgit2sharp to v0.18.1 2014-08-04 13:45:04 +02:00
Philippe Miossec ba6581a2d9 Drop VsCommon in namespace
(because that's an internal namespace)
2014-07-30 10:39:36 +02:00
Matt Burke f9c2485457 Refactor. 2014-07-28 10:02:35 -04:00
Matt Burke 95effc1d9a Let unshelve continue after errors. 2014-07-28 09:49:22 -04:00
Philippe Miossec cf5ca76d33 TfsPlugin is the same for all versions... 2014-07-15 17:34:47 +02:00
Philippe Miossec 235d516d77 Better handling big history by fetching changesets by lots
of 100 max (and creating commits in the same time)
before fetching another lot if needed....

& little refactoring
2014-07-13 21:53:10 +02:00
Philippe Miossec 3d300bc494 Querying history bounded when knowing the last changeset id wished 2014-07-13 21:47:39 +02:00
Philippe Miossec c731b99487 Merge pull request #620 from pmiossec/recheckin_quick_as_default
Set quick rcheckin as default rcheckin process
2014-07-10 15:48:33 +02:00
Philippe Miossec a1069ea609 Merge pull request #625 from pmiossec/perfs_get_last_changeset_id
Perfs get last changeset id
2014-07-10 15:43:04 +02:00
Philippe Miossec 4e638770d6 Merge pull request #618 from pmiossec/shorten_workspace_path
Shorten workspace to mitigate ntfs path length limit
2014-07-10 15:36:03 +02:00
Philippe Miossec 73abf84f51 Add a parameter to only return the sha of a commit given a changeset id 2014-07-10 14:42:35 +02:00
Philippe Miossec 0225dd5ea2 Add checkout command
git tfs checkout changesetId [-b=branch_name]
ex: git-tfs checkout 2365
      git-tfs checkout 2365 -b=bugfix_2365

Solve #563
2014-07-10 14:29:58 +02:00
Philippe Miossec e231dbe6bf Set quick rcheckin as default rcheckin process 2014-07-10 13:39:59 +02:00