494 B23 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} from '../types';
9
10import {Operation} from './Operation';
11
12export class PullRevOperation extends Operation {
13 static opName = 'PullRev';
14
15 constructor(private rev: ExactRevset) {
16 super('PullRevOperation');
17 }
18
19 getArgs() {
20 return ['pull', '--rev', this.rev];
21 }
22}
23