|
@ -13,7 +13,7 @@ import { |
|
|
RepositoryChangeEvent, |
|
|
RepositoryChangeEvent, |
|
|
RepositoryFileSystemChangeEvent |
|
|
RepositoryFileSystemChangeEvent |
|
|
} from '../../git/gitService'; |
|
|
} from '../../git/gitService'; |
|
|
import { Dates, debug, Functions, log, Strings } from '../../system'; |
|
|
|
|
|
|
|
|
import { Dates, debug, Functions, gate, log, Strings } from '../../system'; |
|
|
import { RepositoriesView } from '../repositoriesView'; |
|
|
import { RepositoriesView } from '../repositoriesView'; |
|
|
import { BranchesNode } from './branchesNode'; |
|
|
import { BranchesNode } from './branchesNode'; |
|
|
import { BranchNode } from './branchNode'; |
|
|
import { BranchNode } from './branchNode'; |
|
@ -168,6 +168,7 @@ export class RepositoryNode extends SubscribeableViewNode { |
|
|
return item; |
|
|
return item; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@gate() |
|
|
@log() |
|
|
@log() |
|
|
async fetch(progress: boolean = true) { |
|
|
async fetch(progress: boolean = true) { |
|
|
if (!progress) return this.fetchCore(); |
|
|
if (!progress) return this.fetchCore(); |
|
@ -189,6 +190,7 @@ export class RepositoryNode extends SubscribeableViewNode { |
|
|
this.view.triggerNodeChange(this); |
|
|
this.view.triggerNodeChange(this); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@gate() |
|
|
@log() |
|
|
@log() |
|
|
async pull(progress: boolean = true) { |
|
|
async pull(progress: boolean = true) { |
|
|
if (!progress) return this.pullCore(); |
|
|
if (!progress) return this.pullCore(); |
|
@ -210,6 +212,7 @@ export class RepositoryNode extends SubscribeableViewNode { |
|
|
this.view.triggerNodeChange(this); |
|
|
this.view.triggerNodeChange(this); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@gate() |
|
|
@log() |
|
|
@log() |
|
|
async push(progress: boolean = true) { |
|
|
async push(progress: boolean = true) { |
|
|
if (!progress) return this.pushCore(); |
|
|
if (!progress) return this.pushCore(); |
|
@ -230,11 +233,13 @@ export class RepositoryNode extends SubscribeableViewNode { |
|
|
this.view.triggerNodeChange(this); |
|
|
this.view.triggerNodeChange(this); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
refresh() { |
|
|
|
|
|
|
|
|
@gate() |
|
|
|
|
|
@debug() |
|
|
|
|
|
async refresh() { |
|
|
this._status = this.repo.getStatus(); |
|
|
this._status = this.repo.getStatus(); |
|
|
|
|
|
|
|
|
this._children = undefined; |
|
|
this._children = undefined; |
|
|
void this.ensureSubscription(); |
|
|
|
|
|
|
|
|
await this.ensureSubscription(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@debug() |
|
|
@debug() |
|
|