sapling/eden/scm/tests/test-update-empty.t
Mateusz Kwapich 34470671e2 goto: fix goto command help
Summary: remove mention of checkout, include goto in the main help command

Reviewed By: DurhamG

Differential Revision: D41307245

fbshipit-source-id: dda8ee05d35b1aa2bea6429432bbfe859fe60504
2022-11-15 08:05:54 -08:00

32 lines
789 B
Perl

# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
# Empty update fails with a helpful error:
$ setconfig workingcopy.ruststatus=False
$ setconfig devel.segmented-changelog-rev-compat=true
$ setconfig 'ui.disallowemptyupdate=True'
$ configure modernclient
$ newclientrepo
$ hg debugdrawdag << 'EOS'
> B
> |
> A
> EOS
$ hg up -q A
$ hg up
abort: You must specify a destination to update to, for example "hg goto main".
(If you're trying to move a bookmark forward, try "hg rebase -d <destination>".) (?)
[255]
# up -r works as intended:
$ hg up -q -r B
$ hg log -r . -T '{desc}\n'
B
$ hg up -q B
$ hg log -r . -T '{desc}\n'
B