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