Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCM: Support multiple repositories #31325

Merged
merged 73 commits into from
Aug 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
9745191
wip: adopt ViewsViewlet in SCM
joaomoreno Jul 10, 2017
40923c7
wip: scm menus
joaomoreno Jul 10, 2017
3e6516d
wip: model registry
joaomoreno Jul 11, 2017
82e2888
Merge branch 'master' into scm-multiroot
joaomoreno Jul 24, 2017
408066b
fix compile error
joaomoreno Jul 24, 2017
1c24f82
git: model commands
joaomoreno Jul 24, 2017
f61fe8a
scm: fix contents not visible
joaomoreno Jul 24, 2017
3268900
Merge branch 'master' into scm-multiroot
joaomoreno Aug 14, 2017
405ed72
different command syntax
joaomoreno Aug 14, 2017
b8b36a0
remove unused property
joaomoreno Aug 14, 2017
b9eb8ba
wip: add across multiple repositories
joaomoreno Aug 15, 2017
acb83d0
remove Resource from git model method interfaces
joaomoreno Aug 15, 2017
9143547
Merge branch 'master' into scm-multiroot
joaomoreno Aug 15, 2017
16e8189
model -> repository
joaomoreno Aug 15, 2017
303dd11
git multirepo stage
joaomoreno Aug 15, 2017
8c747ed
git model remove run
joaomoreno Aug 15, 2017
76cfa5d
git: remove splats
joaomoreno Aug 15, 2017
b95a585
git: multi repo stage
joaomoreno Aug 15, 2017
3f31510
git: multirepo revert
joaomoreno Aug 15, 2017
56d1dad
git: multirepo clean
joaomoreno Aug 15, 2017
fe8ee2e
git: repository == scm provider
joaomoreno Aug 15, 2017
55ac60b
Merge branch 'master' into scm-multiroot
joaomoreno Aug 15, 2017
dc80da4
git: remove git init
joaomoreno Aug 15, 2017
fb60b01
git: model -> repository
joaomoreno Aug 15, 2017
f8fcaf4
git: open file, open changes
joaomoreno Aug 15, 2017
69b30c7
use scoped scm label
joaomoreno Aug 16, 2017
b5be40a
git: multiroot unstage
joaomoreno Aug 16, 2017
773a654
git: multiroot discard
joaomoreno Aug 16, 2017
6a9a529
git: multirepo stageAll, unstageAll, cleanAll
joaomoreno Aug 16, 2017
1e00878
:lipstick:
joaomoreno Aug 16, 2017
31a07d1
git: multirepo range staging
joaomoreno Aug 16, 2017
3db1cf0
scm: title
joaomoreno Aug 16, 2017
d7a2be0
scm: multiroot refresh
joaomoreno Aug 16, 2017
4a1bd6f
scm: always show scm actions
joaomoreno Aug 16, 2017
eb04eaa
git: contextual repositories
joaomoreno Aug 16, 2017
e3b15fc
wip: register multiple source control providers
joaomoreno Aug 16, 2017
cf6b77d
safeguard deregisterViews
joaomoreno Aug 17, 2017
20b7747
git: multiroot content provider
joaomoreno Aug 17, 2017
f0c93eb
git: fix content provider events
joaomoreno Aug 17, 2017
a01de65
scm: ignore uniqueness of `SourceControl.id`
joaomoreno Aug 18, 2017
93011ff
git: improved multirepo model
joaomoreno Aug 18, 2017
e11edbb
git: multirepo autofetcher
joaomoreno Aug 18, 2017
e4d6ed3
fix splitview header actions
joaomoreno Aug 18, 2017
a7f0bf4
Merge branch 'master' into scm-multiroot
joaomoreno Aug 21, 2017
2800d46
remove log
joaomoreno Aug 21, 2017
6d9e8ba
scm: better view ids
joaomoreno Aug 21, 2017
49bedbf
scm: add/remove views
joaomoreno Aug 21, 2017
b6c3338
git: fix same repo multiple times
joaomoreno Aug 21, 2017
da84e2e
scm: input boxes
joaomoreno Aug 21, 2017
32f721f
scm: deprecate scm.inputBox
joaomoreno Aug 22, 2017
a1ec10d
scm: remove global input
joaomoreno Aug 22, 2017
cfbc4f6
scm: SourceControl.inputBox
joaomoreno Aug 22, 2017
00020e6
scm: commit from input box
joaomoreno Aug 22, 2017
441842e
scm: remove activeRepository from SCMActivity
joaomoreno Aug 22, 2017
632d021
scm: remove activeRepository from dirty diff decorator
joaomoreno Aug 22, 2017
0158875
scm: remove switch provider action
joaomoreno Aug 22, 2017
1775a08
git: status bar
joaomoreno Aug 22, 2017
0215be1
git: status bar commands scope
joaomoreno Aug 22, 2017
7d3b4fa
git, scm cleanup
joaomoreno Aug 22, 2017
a4d229f
remove gitState
joaomoreno Aug 23, 2017
f9207f1
remove console.log
joaomoreno Aug 23, 2017
f36f53f
git: cant open resources starting with `.`
joaomoreno Aug 23, 2017
ca068b3
fix git.pullFrom group
joaomoreno Aug 23, 2017
89ac4c9
scm: show single scm actions in title
joaomoreno Aug 23, 2017
df2143f
remove todos
joaomoreno Aug 23, 2017
bcf2f1d
git: init
joaomoreno Aug 23, 2017
e979861
git: gitOpenRepositoryCount
joaomoreno Aug 23, 2017
9d89f73
views viewlet: deregister doesn't remove splitview
joaomoreno Aug 24, 2017
7eaafc9
views: PersistentViewsViewlet
joaomoreno Aug 24, 2017
7341dcd
use ~~ for deprecation
joaomoreno Aug 25, 2017
2624eff
Merge branch 'master' into scm-multiroot
joaomoreno Aug 25, 2017
25cfb9e
fix lint warnings
joaomoreno Aug 25, 2017
adbb783
scm: keep `scmProvider` context key
joaomoreno Aug 25, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
192 changes: 98 additions & 94 deletions extensions/git/package.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions extensions/git/src/autofetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import { workspace, Disposable } from 'vscode';
import { GitErrorCodes } from './git';
import { Model } from './model';
import { Repository } from './repository';
import { throttle } from './decorators';

export class AutoFetcher {
Expand All @@ -16,7 +16,7 @@ export class AutoFetcher {
private disposables: Disposable[] = [];
private timer: NodeJS.Timer;

constructor(private model: Model) {
constructor(private repository: Repository) {
workspace.onDidChangeConfiguration(this.onConfiguration, this, this.disposables);
this.onConfiguration();
}
Expand Down Expand Up @@ -47,7 +47,7 @@ export class AutoFetcher {
@throttle
private async fetch(): Promise<void> {
try {
await this.model.fetch();
await this.repository.fetch();
} catch (err) {
if (err.gitErrorCode === GitErrorCodes.AuthenticationFailed) {
this.disable();
Expand Down
Loading