@jayree/sfdx-plugin-manifest 3.5.32 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +18 -0
- package/README.md +3 -3
- package/lib/SDR-extra/api/statusMatrix.d.ts +3 -1
- package/lib/SDR-extra/api/statusMatrix.js +3 -1
- package/lib/SDR-extra/api/statusMatrix.js.map +1 -1
- package/lib/SDR-extra/resolve/treeContainersExtra.js +5 -21
- package/lib/SDR-extra/resolve/treeContainersExtra.js.map +1 -1
- package/lib/SDR-extra/shared/local/localGitRepo.d.ts +9 -2
- package/lib/SDR-extra/shared/local/localGitRepo.js +45 -4
- package/lib/SDR-extra/shared/local/localGitRepo.js.map +1 -1
- package/lib/SDR-extra/shared/local/moveDetection.d.ts +1 -1
- package/lib/SDR-extra/shared/local/moveDetection.js +18 -20
- package/lib/SDR-extra/shared/local/moveDetection.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/npm-shrinkwrap.json +26 -28
- package/oclif.lock +28 -30
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,21 @@
|
|
1
|
+
# [3.6.0](https://github.com/jayree/sfdx-plugin-manifest/compare/3.5.33...3.6.0) (2024-10-27)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* use isomorphic-git cache ([996ad86](https://github.com/jayree/sfdx-plugin-manifest/commit/996ad8682f4168f23ba1490fc7483a1ec00a8a0b))
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
## [3.5.33](https://github.com/jayree/sfdx-plugin-manifest/compare/3.5.32...3.5.33) (2024-10-26)
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* **deps:** bump @salesforce/sf-plugins-core from 12.0.7 to 12.0.9 ([#1539](https://github.com/jayree/sfdx-plugin-manifest/issues/1539)) ([c54b639](https://github.com/jayree/sfdx-plugin-manifest/commit/c54b639286c2904bf2d1c2283355211dc6716ee0))
|
16
|
+
|
17
|
+
|
18
|
+
|
1
19
|
## [3.5.32](https://github.com/jayree/sfdx-plugin-manifest/compare/3.5.31...3.5.32) (2024-10-23)
|
2
20
|
|
3
21
|
|
package/README.md
CHANGED
@@ -60,7 +60,7 @@ EXAMPLES
|
|
60
60
|
$ sf jayree manifest cleanup --manifest=package.xml --file=packageignore.xml
|
61
61
|
```
|
62
62
|
|
63
|
-
_See code: [src/commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.
|
63
|
+
_See code: [src/commands/jayree/manifest/cleanup.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.6.0/src/commands/jayree/manifest/cleanup.ts)_
|
64
64
|
|
65
65
|
### `sf jayree manifest generate`
|
66
66
|
|
@@ -98,7 +98,7 @@ EXAMPLES
|
|
98
98
|
<Package xmlns='http://soap.sforce.com/2006/04/metadata'>...</Package>
|
99
99
|
```
|
100
100
|
|
101
|
-
_See code: [src/commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.
|
101
|
+
_See code: [src/commands/jayree/manifest/generate.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.6.0/src/commands/jayree/manifest/generate.ts)_
|
102
102
|
|
103
103
|
### `sf jayree manifest git diff REF1 [REF2]`
|
104
104
|
|
@@ -181,7 +181,7 @@ FLAG DESCRIPTIONS
|
|
181
181
|
The location can be an absolute path or relative to the current working directory.
|
182
182
|
```
|
183
183
|
|
184
|
-
_See code: [src/commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.
|
184
|
+
_See code: [src/commands/jayree/manifest/git/diff.ts](https://github.com/jayree/sfdx-plugin-manifest/blob/3.6.0/src/commands/jayree/manifest/git/diff.ts)_
|
185
185
|
<!-- commandsstop -->
|
186
186
|
|
187
187
|
## Performance Testing
|
@@ -136,17 +136,19 @@ import { StatusRow } from 'isomorphic-git';
|
|
136
136
|
* @param {string} [args.ref2 = 'STAGE'] - Optionally specify a different commit to compare against the <ref1> commit instead of the workdir and stage
|
137
137
|
* @param {string[]} [args.filepaths = ['.']] - Limit the query to the given files and directories
|
138
138
|
* @param {function(string): boolean} [args.filter] - Filter the results to only those whose filepath matches a function.
|
139
|
+
* @param {object} [args.cache] - a [cache](cache.md) object
|
139
140
|
* @param {boolean} [args.ignored = false] - include ignored files in the result
|
140
141
|
*
|
141
142
|
* @returns {Promise<Array<StatusRow>>} Resolves with a status matrix, described below.
|
142
143
|
* @see StatusRow
|
143
144
|
*/
|
144
|
-
export declare function statusMatrix({ dir, gitdir, ref1, ref2, filepaths, filter, ignored: shouldIgnore, }: {
|
145
|
+
export declare function statusMatrix({ dir, gitdir, ref1, ref2, filepaths, filter, cache, ignored: shouldIgnore, }: {
|
145
146
|
dir: string;
|
146
147
|
gitdir?: string;
|
147
148
|
ref1: string;
|
148
149
|
ref2?: string;
|
149
150
|
filepaths?: string[];
|
150
151
|
filter?: ((arg0: string) => boolean) | undefined;
|
152
|
+
cache: unknown;
|
151
153
|
ignored?: boolean;
|
152
154
|
}): Promise<StatusRow[]>;
|
@@ -150,14 +150,16 @@ import { worthWalking } from '../utils/worthWalking.js';
|
|
150
150
|
* @param {string} [args.ref2 = 'STAGE'] - Optionally specify a different commit to compare against the <ref1> commit instead of the workdir and stage
|
151
151
|
* @param {string[]} [args.filepaths = ['.']] - Limit the query to the given files and directories
|
152
152
|
* @param {function(string): boolean} [args.filter] - Filter the results to only those whose filepath matches a function.
|
153
|
+
* @param {object} [args.cache] - a [cache](cache.md) object
|
153
154
|
* @param {boolean} [args.ignored = false] - include ignored files in the result
|
154
155
|
*
|
155
156
|
* @returns {Promise<Array<StatusRow>>} Resolves with a status matrix, described below.
|
156
157
|
* @see StatusRow
|
157
158
|
*/
|
158
|
-
export async function statusMatrix({ dir, gitdir = join(dir, '.git'), ref1 = 'HEAD', ref2, filepaths = ['.'], filter, ignored: shouldIgnore = false, }) {
|
159
|
+
export async function statusMatrix({ dir, gitdir = join(dir, '.git'), ref1 = 'HEAD', ref2, filepaths = ['.'], filter, cache = {}, ignored: shouldIgnore = false, }) {
|
159
160
|
return _walk({
|
160
161
|
fs,
|
162
|
+
cache,
|
161
163
|
dir,
|
162
164
|
gitdir,
|
163
165
|
trees: [TREE({ ref: ref1 }), ref2 ? TREE({ ref: ref2 }) : WORKDIR(), ref2 ? TREE({ ref: ref2 }) : STAGE()],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"statusMatrix.js","sourceRoot":"","sources":["../../../src/SDR-extra/api/statusMatrix.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,qFAAqF;AACrF,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,SAAS,IAAI,UAAU,EAAa,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD
|
1
|
+
{"version":3,"file":"statusMatrix.js","sourceRoot":"","sources":["../../../src/SDR-extra/api/statusMatrix.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,qFAAqF;AACrF,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,gBAAgB,CAAC;AA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AC,SAAS,CAAC;YACpE,MAAM,QAAQ,GAAG,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YACvE,IAAI,UAAU,CAAC;YACf,IAAI,QAAQ,KAAK,MAAM,IAAI,WAAW,KAAK,MAAM,IAAI,SAAS,KAAK,MAAM,EAAE,CAAC;gBAC1E,kDAAkD;gBAClD,+DAA+D;gBAC/D,UAAU,GAAG,IAAI,CAAC;YACpB,CAAC;iBAAM,IAAI,WAAW,KAAK,MAAM,EAAE,CAAC;gBAClC,UAAU,GAAG,MAAM,OAAO,EAAE,GAAG,EAAE,CAAC;YACpC,CAAC;YACD,MAAM,KAAK,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;YACzD,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;YAC1D,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,iCAAiC;YACjD,OAAO,CAAC,QAAQ,EAAE,GAAG,MAAM,CAAC,CAAC;QAC/B,CAAC;KACF,CAAyB,CAAC;AAC7B,CAAC"}
|
@@ -6,12 +6,10 @@
|
|
6
6
|
*/
|
7
7
|
// https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/resolve/treeContainers.ts
|
8
8
|
import path from 'node:path';
|
9
|
-
import fs from 'node:fs/promises';
|
10
9
|
import { VirtualTreeContainer } from '@salesforce/source-deploy-retrieve';
|
11
10
|
import { parseMetadataXml } from '@salesforce/source-deploy-retrieve/lib/src/utils/index.js';
|
12
|
-
import { readBlob as _readBlob, listFiles as _listFiles, resolveRef } from 'isomorphic-git';
|
13
|
-
import { ensurePosix, ensureWindows, IS_WINDOWS } from '@salesforce/source-tracking/lib/shared/local/functions.js';
|
14
11
|
import { Performance } from '@oclif/core/performance';
|
12
|
+
import { GitRepo } from '../shared/local/localGitRepo.js';
|
15
13
|
export class VirtualTreeContainerExtra extends VirtualTreeContainer {
|
16
14
|
/**
|
17
15
|
* Designed for recreating virtual files from a git ref
|
@@ -24,8 +22,9 @@ export class VirtualTreeContainerExtra extends VirtualTreeContainer {
|
|
24
22
|
*/
|
25
23
|
static async fromGitRef(ref, dir, includeBufferForFiles) {
|
26
24
|
const marker = Performance.mark('@jayree/sfdx-plugin-manifest', 'VirtualTreeContainerExtra.fromGitRef');
|
27
|
-
const
|
28
|
-
const
|
25
|
+
const localRepo = GitRepo.getInstance({ dir });
|
26
|
+
const paths = await localRepo.listFiles(ref);
|
27
|
+
const oid = await localRepo.resolveRef(ref);
|
29
28
|
const virtualDirectoryByFullPath = new Map();
|
30
29
|
for await (const filepath of paths) {
|
31
30
|
let dirPath = path.dirname(filepath);
|
@@ -34,7 +33,7 @@ export class VirtualTreeContainerExtra extends VirtualTreeContainer {
|
|
34
33
|
children: Array.from(new Set(virtualDirectoryByFullPath.get(dirPath)?.children ?? []).add({
|
35
34
|
name: path.basename(filepath),
|
36
35
|
data: parseMetadataXml(filepath) && includeBufferForFiles.includes(filepath)
|
37
|
-
? await readBlob(
|
36
|
+
? await localRepo.readBlob(filepath, oid)
|
38
37
|
: Buffer.from(''),
|
39
38
|
})),
|
40
39
|
});
|
@@ -51,19 +50,4 @@ export class VirtualTreeContainerExtra extends VirtualTreeContainer {
|
|
51
50
|
return new VirtualTreeContainer(Array.from(virtualDirectoryByFullPath.values()));
|
52
51
|
}
|
53
52
|
}
|
54
|
-
async function listFiles(dir, ref) {
|
55
|
-
return ref
|
56
|
-
? (await _listFiles({ fs, dir, ref })).map((p) => path.join(IS_WINDOWS ? ensureWindows(p) : p))
|
57
|
-
: (await fs.readdir(dir, { recursive: true })).map((p) => path.join(IS_WINDOWS ? ensureWindows(p) : p));
|
58
|
-
}
|
59
|
-
async function readBlob(dir, filepath, oid) {
|
60
|
-
return oid
|
61
|
-
? Buffer.from((await _readBlob({
|
62
|
-
fs,
|
63
|
-
dir,
|
64
|
-
oid,
|
65
|
-
filepath: IS_WINDOWS ? ensurePosix(filepath) : filepath,
|
66
|
-
})).blob)
|
67
|
-
: fs.readFile(path.resolve(filepath));
|
68
|
-
}
|
69
53
|
//# sourceMappingURL=treeContainersExtra.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"treeContainersExtra.js","sourceRoot":"","sources":["../../../src/SDR-extra/resolve/treeContainersExtra.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,gGAAgG;AAChG,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"treeContainersExtra.js","sourceRoot":"","sources":["../../../src/SDR-extra/resolve/treeContainersExtra.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,gGAAgG;AAChG,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAoB,MAAM,oCAAoC,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAE1D,MAAM,OAAO,yBAA0B,SAAQ,oBAAoB;IACjE;;;;;;;;OAQG;IACI,MAAM,CAAC,KAAK,CAAC,UAAU,CAC5B,GAAW,EACX,GAAW,EACX,qBAA+B;QAE/B,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,8BAA8B,EAAE,sCAAsC,CAAC,CAAC;QAExG,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;QAC/C,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;QAC7C,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC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MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;iBAC1G,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,MAAM,EAAE,IAAI,EAAE,CAAC;QAEf,OAAO,IAAI,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACnF,CAAC;CACF"}
|
@@ -4,18 +4,25 @@ import { RegistryAccess } from '@salesforce/source-deploy-retrieve';
|
|
4
4
|
export declare const STAGE = 3;
|
5
5
|
export type GitRepoOptions = {
|
6
6
|
dir: string;
|
7
|
-
packageDirs
|
8
|
-
registry
|
7
|
+
packageDirs?: NamedPackageDir[];
|
8
|
+
registry?: RegistryAccess;
|
9
9
|
};
|
10
10
|
export declare class GitRepo {
|
11
11
|
private static instanceMap;
|
12
12
|
dir: string;
|
13
13
|
private packageDirs;
|
14
14
|
private status;
|
15
|
+
private cache;
|
15
16
|
private lifecycle;
|
16
17
|
private readonly registry;
|
17
18
|
private constructor();
|
18
19
|
static getInstance(options: GitRepoOptions): GitRepo;
|
20
|
+
resolveRef(ref: string): Promise<string | undefined>;
|
21
|
+
getConfig(p: string): Promise<string>;
|
22
|
+
hashBlob(object: Buffer): Promise<string>;
|
23
|
+
listFiles(ref: string): Promise<string[]>;
|
24
|
+
readBlob(filepath: string, oid?: string): Promise<Buffer>;
|
25
|
+
readOid(filepath: string, oid: string): Promise<string>;
|
19
26
|
resolveMultiRefString(ref: string): Promise<{
|
20
27
|
ref1: string;
|
21
28
|
ref2: string;
|
@@ -10,9 +10,10 @@ import path from 'node:path';
|
|
10
10
|
import os from 'node:os';
|
11
11
|
import fs from 'node:fs/promises';
|
12
12
|
import { execSync } from 'node:child_process';
|
13
|
-
import git from 'isomorphic-git';
|
13
|
+
import git, { readBlob as _readBlob, listFiles as _listFiles } from 'isomorphic-git';
|
14
14
|
import { Performance } from '@oclif/core/performance';
|
15
15
|
import { Lifecycle, SfError } from '@salesforce/core';
|
16
|
+
import { RegistryAccess } from '@salesforce/source-deploy-retrieve';
|
16
17
|
import { excludeLwcLocalOnlyTest, folderContainsPath } from '@salesforce/source-tracking/lib/shared/functions.js';
|
17
18
|
import { HEAD, WORKDIR, IS_WINDOWS, ensureWindows, ensurePosix, toFilenames, } from '@salesforce/source-tracking/lib/shared/local/functions.js';
|
18
19
|
import { getMatches } from '@salesforce/source-tracking/lib/shared/local/moveDetection.js';
|
@@ -32,12 +33,14 @@ export class GitRepo {
|
|
32
33
|
dir;
|
33
34
|
packageDirs;
|
34
35
|
status;
|
36
|
+
cache;
|
35
37
|
lifecycle = Lifecycle.getInstance();
|
36
38
|
registry;
|
37
39
|
constructor(options) {
|
38
40
|
this.dir = options.dir;
|
39
|
-
this.packageDirs = options.packageDirs
|
40
|
-
this.registry = options.registry;
|
41
|
+
this.packageDirs = options.packageDirs?.map(packageDirToRelativePosixPath(options.dir)) ?? [];
|
42
|
+
this.registry = options.registry ?? new RegistryAccess();
|
43
|
+
this.cache = {};
|
41
44
|
}
|
42
45
|
static getInstance(options) {
|
43
46
|
if (!GitRepo.instanceMap.has(options.dir)) {
|
@@ -46,6 +49,41 @@ export class GitRepo {
|
|
46
49
|
}
|
47
50
|
return GitRepo.instanceMap.get(options.dir);
|
48
51
|
}
|
52
|
+
async resolveRef(ref) {
|
53
|
+
return ref ? git.resolveRef({ fs, dir: this.dir, ref }) : undefined;
|
54
|
+
}
|
55
|
+
async getConfig(p) {
|
56
|
+
return (await git.getConfig({ fs, dir: this.dir, path: p }));
|
57
|
+
}
|
58
|
+
// eslint-disable-next-line class-methods-use-this
|
59
|
+
async hashBlob(object) {
|
60
|
+
return (await git.hashBlob({ object })).oid;
|
61
|
+
}
|
62
|
+
async listFiles(ref) {
|
63
|
+
return ref
|
64
|
+
? (await _listFiles({ fs, dir: this.dir, ref, cache: this.cache })).map((p) => path.join(IS_WINDOWS ? ensureWindows(p) : p))
|
65
|
+
: (await fs.readdir(this.dir, { recursive: true })).map((p) => path.join(IS_WINDOWS ? ensureWindows(p) : p));
|
66
|
+
}
|
67
|
+
async readBlob(filepath, oid) {
|
68
|
+
return oid
|
69
|
+
? Buffer.from((await _readBlob({
|
70
|
+
fs,
|
71
|
+
dir: this.dir,
|
72
|
+
oid,
|
73
|
+
filepath: IS_WINDOWS ? ensurePosix(filepath) : filepath,
|
74
|
+
cache: this.cache,
|
75
|
+
})).blob)
|
76
|
+
: fs.readFile(path.resolve(filepath));
|
77
|
+
}
|
78
|
+
async readOid(filepath, oid) {
|
79
|
+
return (await _readBlob({
|
80
|
+
fs,
|
81
|
+
dir: this.dir,
|
82
|
+
oid,
|
83
|
+
filepath: IS_WINDOWS ? ensurePosix(filepath) : filepath,
|
84
|
+
cache: this.cache,
|
85
|
+
})).oid;
|
86
|
+
}
|
49
87
|
async resolveMultiRefString(ref) {
|
50
88
|
const a = ref.split('.');
|
51
89
|
let ref1;
|
@@ -66,6 +104,7 @@ export class GitRepo {
|
|
66
104
|
fs,
|
67
105
|
dir: this.dir,
|
68
106
|
oids: [ref2, ref1],
|
107
|
+
cache: this.cache,
|
69
108
|
}))[0];
|
70
109
|
}
|
71
110
|
else {
|
@@ -136,6 +175,7 @@ export class GitRepo {
|
|
136
175
|
try {
|
137
176
|
this.status = await statusMatrix({
|
138
177
|
dir: this.dir,
|
178
|
+
cache: this.cache,
|
139
179
|
ref1,
|
140
180
|
ref2,
|
141
181
|
filepaths: this.packageDirs,
|
@@ -204,7 +244,7 @@ export class GitRepo {
|
|
204
244
|
}
|
205
245
|
}
|
206
246
|
}
|
207
|
-
const matches = await filenameMatchesToMap(this.registry)(this.dir)(
|
247
|
+
const matches = await filenameMatchesToMap(this.registry)(this.dir)(matchingFiles);
|
208
248
|
sourceBehaviorOptionsBetaMatches.forEach((key, value) => {
|
209
249
|
matches.fullMatches.set(key, value);
|
210
250
|
});
|
@@ -226,6 +266,7 @@ export class GitRepo {
|
|
226
266
|
dir: this.dir,
|
227
267
|
ref,
|
228
268
|
depth: 1,
|
269
|
+
cache: this.cache,
|
229
270
|
});
|
230
271
|
return { oid: log.oid, parents: log.commit.parent };
|
231
272
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"localGitRepo.js","sourceRoot":"","sources":["../../../../src/SDR-extra/shared/local/localGitRepo.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,+FAA+F;AAC/F,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,GAAkB,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAmB,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEvE,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AAClH,OAAO,EACL,IAAI,EACJ,OAAO,EACP,UAAU,EACV,aAAa,EACb,WAAW,EACX,WAAW,GACZ,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,+DAA+D,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEzE,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC;AAUvB,MAAM,sBAAsB,GAAG,CAAC,CAAU,EAAS,EAAE;IACnD,IAAI,CAAC,YAAY,GAAG,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC;QAC1C,MAAM,KAAK,GAAG,IAAI,OAAO,CACvB,uEAAuE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI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BAC3B,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,CAC9B,2CAA2C,KAAK,OAAO,IAAI,+EAA+E,KAAK,IAAI,CACpJ,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,4CAA4C;QAC9C,CAAC;IACH,CAAC;;AAGH,MAAM,6BAA6B,GACjC,CAAC,WAAmB,EAAE,EAAE,CACxB,CAAC,UAA2B,EAAU,EAAE,CACtC,UAAU;IACR,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC9D,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;AAExD,MAAM,UAAU,GACd,CAAC,WAAqB,EAAE,EAAE,CAC1B,CAAC,CAAS,EAAW,EAAE;AACrB,kBAAkB;AAClB,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,GAAG,GAAG,CAAC;IAC3B,eAAe;IACf,uBAAuB,CAAC,CAAC,CAAC;IAC1B,qBAAqB;IACrB,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC;IACzB,kFAAkF;IAClF,WAAW,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
@@ -11,6 +11,6 @@ export type StringMapsForMatches = {
|
|
11
11
|
deleteOnly: StringMap;
|
12
12
|
};
|
13
13
|
/** composed functions to simplified use by the shadowRepo class */
|
14
|
-
export declare const filenameMatchesToMap: (registry: RegistryAccess) => (projectPath: string) => (
|
14
|
+
export declare const filenameMatchesToMap: (registry: RegistryAccess) => (projectPath: string) => ({ added, deleted }: AddedAndDeletedFilenames) => Promise<StringMapsForMatches>;
|
15
15
|
export declare const getLogMessage: (matches: StringMapsForMatches) => string[];
|
16
16
|
export {};
|
@@ -9,20 +9,22 @@ import path from 'node:path';
|
|
9
9
|
import { isUtf8 } from 'node:buffer';
|
10
10
|
import { Lifecycle } from '@salesforce/core';
|
11
11
|
import { MetadataResolver, VirtualTreeContainer, } from '@salesforce/source-deploy-retrieve';
|
12
|
-
import git from 'isomorphic-git';
|
13
|
-
import fs from 'graceful-fs';
|
14
12
|
import { Performance } from '@oclif/core/performance';
|
15
13
|
import { isDefined } from '@salesforce/source-tracking/lib/shared/guards.js';
|
16
14
|
import { uniqueArrayConcat } from '@salesforce/source-tracking/lib/shared/functions.js';
|
17
|
-
import { IS_WINDOWS,
|
15
|
+
import { IS_WINDOWS, ensureWindows } from '@salesforce/source-tracking/lib/shared/local/functions.js';
|
18
16
|
import { buildMap } from '@salesforce/source-tracking/lib/shared/local/moveDetection.js';
|
17
|
+
import { GitRepo } from './localGitRepo.js';
|
19
18
|
const JOIN_CHAR = '#__#'; // the __ makes it unlikely to be used in metadata names
|
19
|
+
let localRepo;
|
20
20
|
/** composed functions to simplified use by the shadowRepo class */
|
21
|
-
export const filenameMatchesToMap = (registry) => (projectPath) =>
|
21
|
+
export const filenameMatchesToMap = (registry) => (projectPath) => async ({ added, deleted }) => {
|
22
22
|
const resolver = new MetadataResolver(registry, VirtualTreeContainer.fromFilePaths(uniqueArrayConcat(added, deleted)));
|
23
|
+
localRepo = GitRepo.getInstance({
|
24
|
+
dir: projectPath,
|
25
|
+
registry,
|
26
|
+
});
|
23
27
|
return compareHashes(await buildMaps(addTypes(resolver)(await toFileInfo({
|
24
|
-
projectPath,
|
25
|
-
gitDir,
|
26
28
|
added,
|
27
29
|
deleted,
|
28
30
|
}))));
|
@@ -76,33 +78,29 @@ const compareHashes = ({ addedMap, deletedMap }) => {
|
|
76
78
|
return { fullMatches: matches, deleteOnly: new Map() };
|
77
79
|
};
|
78
80
|
/** enrich the filenames with basename and oid (hash) */
|
79
|
-
const toFileInfo = async ({
|
81
|
+
const toFileInfo = async ({ added, deleted, }) => {
|
80
82
|
const getInfoMarker = Performance.mark('@jayree/sfdx-plugin-manifest', 'localGitRepo.detectMovedFiles#toFileInfo', {
|
81
83
|
addedFiles: added.size,
|
82
84
|
deletedFiles: deleted.size,
|
83
85
|
});
|
84
|
-
const headRef = await
|
86
|
+
const headRef = (await localRepo.resolveRef('HEAD'));
|
85
87
|
const [addedInfo, deletedInfo] = await Promise.all([
|
86
|
-
await Promise.all(Array.from(added).map(getHashForAddedFile
|
87
|
-
await Promise.all(Array.from(deleted).map(getHashFromActualFileContents(
|
88
|
+
await Promise.all(Array.from(added).map(getHashForAddedFile)),
|
89
|
+
await Promise.all(Array.from(deleted).map(getHashFromActualFileContents(headRef))),
|
88
90
|
]);
|
89
91
|
getInfoMarker?.stop();
|
90
92
|
return { addedInfo, deletedInfo };
|
91
93
|
};
|
92
|
-
const getHashForAddedFile =
|
93
|
-
const autocrlf =
|
94
|
-
|
95
|
-
dir: projectPath,
|
96
|
-
path: 'core.autocrlf',
|
97
|
-
}));
|
98
|
-
let object = await fs.promises.readFile(path.join(projectPath, filepath));
|
94
|
+
const getHashForAddedFile = async (filepath) => {
|
95
|
+
const autocrlf = await localRepo.getConfig('core.autocrlf');
|
96
|
+
let object = await localRepo.readBlob(filepath);
|
99
97
|
if (autocrlf === 'true' && isUtf8(object)) {
|
100
98
|
object = Buffer.from(object.toString('utf8').replace(/\r\n/g, '\n'));
|
101
99
|
}
|
102
100
|
return {
|
103
101
|
filename: filepath,
|
104
102
|
basename: path.basename(filepath),
|
105
|
-
hash:
|
103
|
+
hash: await localRepo.hashBlob(object),
|
106
104
|
};
|
107
105
|
};
|
108
106
|
const resolveType = (resolver) => (filenames) => filenames
|
@@ -116,10 +114,10 @@ const resolveType = (resolver) => (filenames) => filenames
|
|
116
114
|
})
|
117
115
|
.filter(isDefined);
|
118
116
|
/** where we don't have git objects to use, read the file contents to generate the hash */
|
119
|
-
const getHashFromActualFileContents = (
|
117
|
+
const getHashFromActualFileContents = (oid) => async (filepath) => ({
|
120
118
|
filename: filepath,
|
121
119
|
basename: path.basename(filepath),
|
122
|
-
hash:
|
120
|
+
hash: await localRepo.readOid(filepath, oid),
|
123
121
|
});
|
124
122
|
const removeHashFromEntry = ([k, v]) => [removeHashFromKey(k), v];
|
125
123
|
const removeHashFromKey = (hash) => hash.split(JOIN_CHAR).splice(1).join(JOIN_CHAR);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"moveDetection.js","sourceRoot":"","sources":["../../../../src/SDR-extra/shared/local/moveDetection.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,6FAA6F;AAC7F,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EACL,gBAAgB,EAGhB,oBAAoB,GACrB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,
|
1
|
+
{"version":3,"file":"moveDetection.js","sourceRoot":"","sources":["../../../../src/SDR-extra/shared/local/moveDetection.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,6FAA6F;AAC7F,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EACL,gBAAgB,EAGhB,oBAAoB,GACrB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAC;AACtG,OAAO,EAAE,QAAQ,EAAE,MAAM,+DAA+D,CAAC;AAOzF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,SAAS,GAAG,MAAM,CAAC,CAAC,wDAAwD;AAclF,I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