mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
34470671e2
Summary: remove mention of checkout, include goto in the main help command Reviewed By: DurhamG Differential Revision: D41307245 fbshipit-source-id: dda8ee05d35b1aa2bea6429432bbfe859fe60504
32 lines
789 B
Perl
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
|