834 B32 lines
Blame
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8import {t} from '../i18n';
9import {DagCommitInfo} from './dagCommitInfo';
10
11/**
12 * The "wdir()" virtual hash.
13 * This needs to match the CLI's interpretation of "wdir()". See `wdirhex` in sapling/node.py.
14 */
15export const WDIR_NODE = 'ffffffffffffffffffffffffffffffffffffffff';
16
17export const YOU_ARE_HERE_VIRTUAL_COMMIT: DagCommitInfo = DagCommitInfo.fromCommitInfo({
18 hash: WDIR_NODE,
19 title: '',
20 parents: [],
21 phase: 'draft',
22 isDot: false,
23 date: new Date(8640000000000000),
24 bookmarks: [],
25 remoteBookmarks: [],
26 author: '',
27 description: t('You are here'),
28 filePathsSample: [],
29 totalFileCount: 0,
30 isYouAreHere: true,
31});
32