606 B24 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 type {ExactRevset, OptimisticRevset, SucceedableRevset} from '../types';
9
10import {Operation} from './Operation';
11
12export class GotoBaseOperation extends Operation {
13 constructor(protected destination: SucceedableRevset | ExactRevset | OptimisticRevset) {
14 super('GotoOperation');
15 }
16
17 static opName = 'Goto';
18
19 getArgs() {
20 const args = ['goto', '--rev', this.destination];
21 return args;
22 }
23}
24