addons/isl/src/dag/virtualCommit.tsblame
View source
b69ab311/**
b69ab312 * Copyright (c) Meta Platforms, Inc. and affiliates.
b69ab313 *
b69ab314 * This source code is licensed under the MIT license found in the
b69ab315 * LICENSE file in the root directory of this source tree.
b69ab316 */
b69ab317
b69ab318import {t} from '../i18n';
b69ab319import {DagCommitInfo} from './dagCommitInfo';
b69ab3110
b69ab3111/**
b69ab3112 * The "wdir()" virtual hash.
b69ab3113 * This needs to match the CLI's interpretation of "wdir()". See `wdirhex` in sapling/node.py.
b69ab3114 */
b69ab3115export const WDIR_NODE = 'ffffffffffffffffffffffffffffffffffffffff';
b69ab3116
b69ab3117export const YOU_ARE_HERE_VIRTUAL_COMMIT: DagCommitInfo = DagCommitInfo.fromCommitInfo({
b69ab3118 hash: WDIR_NODE,
b69ab3119 title: '',
b69ab3120 parents: [],
b69ab3121 phase: 'draft',
b69ab3122 isDot: false,
b69ab3123 date: new Date(8640000000000000),
b69ab3124 bookmarks: [],
b69ab3125 remoteBookmarks: [],
b69ab3126 author: '',
b69ab3127 description: t('You are here'),
b69ab3128 filePathsSample: [],
b69ab3129 totalFileCount: 0,
b69ab3130 isYouAreHere: true,
b69ab3131});