Skip to content

Commit

Permalink
match experiments folder structure for repository
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Dec 6, 2021
1 parent ca31a8d commit ec4e52f
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion extension/src/fileSystem/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { getWarningResponse } from '../vscode/modal'
import { Response } from '../vscode/response'
import { Resource } from '../repository/commands'
import { WorkspaceRepositories } from '../repository/workspace'
import { PathItem } from '../repository/collect'
import { PathItem } from '../repository/data/collect'

export class TrackedExplorerTree implements TreeDataProvider<PathItem> {
public readonly dispose = Disposable.fn()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { join } from 'path'
import { Uri } from 'vscode'
import { collectTree } from './collect'
import { dvcDemoPath } from '../test/util'
import { dvcDemoPath } from '../../test/util'

describe('collectTree', () => {
const makeUri = (...paths: string[]): Uri =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { join, sep } from 'path'
import { Uri } from 'vscode'
import { Resource } from './commands'
import { addToMapSet } from '../util/map'
import { Resource } from '../commands'
import { addToMapSet } from '../../util/map'

export type PathItem = Resource & {
isDirectory: boolean
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Event, EventEmitter } from 'vscode'
import { Disposable } from '@hediet/std/disposable'
import { Deferred } from '@hediet/std/synchronization'
import { AvailableCommands, InternalCommands } from '../commands/internal'
import { DiffOutput, ListOutput, StatusOutput } from '../cli/reader'
import { isAnyDvcYaml } from '../fileSystem'
import { getAllUntracked } from '../git'
import { ProcessManager } from '../processManager'
import { AvailableCommands, InternalCommands } from '../../commands/internal'
import { DiffOutput, ListOutput, StatusOutput } from '../../cli/reader'
import { isAnyDvcYaml } from '../../fileSystem'
import { getAllUntracked } from '../../git'
import { ProcessManager } from '../../processManager'

export type Data = {
diffFromHead: DiffOutput
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { join, resolve, sep } from 'path'
import { Disposable, Disposer } from '@hediet/std/disposable'
import { mocked } from 'ts-jest/utils'
import { RepositoryModel } from './model'
import { ListOutput, StatusOutput } from '../cli/reader'
import { dvcDemoPath } from '../test/util'
import { RepositoryModel } from '.'
import { ListOutput, StatusOutput } from '../../cli/reader'
import { dvcDemoPath } from '../../test/util'

jest.mock('@hediet/std/disposable')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { dirname, resolve } from 'path'
import isEqual from 'lodash.isequal'
import { Disposable } from '@hediet/std/disposable'
import { collectTree, PathItem } from './collect'
import { SourceControlManagementModel } from './sourceControlManagement'
import { DecorationModel } from './decorationProvider'
import { collectTree, PathItem } from '../data/collect'
import { SourceControlManagementModel } from '../sourceControlManagement'
import { DecorationModel } from '../decorationProvider'
import {
ChangedType,
DiffOutput,
Expand All @@ -14,8 +14,8 @@ import {
Status,
StatusesOrAlwaysChanged,
StatusOutput
} from '../cli/reader'
import { isDirectory } from '../fileSystem'
} from '../../cli/reader'
import { isDirectory } from '../../fileSystem'

type OutputData = {
diffFromCache: StatusOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { join } from 'path'
import { afterEach, beforeEach, describe, it, suite } from 'mocha'
import { expect } from 'chai'
import { restore } from 'sinon'
import { buildRepositoryData } from './util'
import { Disposable } from '../../../extension'
import { dvcDemoPath } from '../../util'
import { buildRepositoryData } from '../util'
import { Disposable } from '../../../../extension'
import { dvcDemoPath } from '../../../util'

suite('Repository Data Test Suite', () => {
const disposable = Disposable.fn()
Expand Down

0 comments on commit ec4e52f

Please sign in to comment.