mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
hint: update revnum deprecation message
Summary: It's 2020 now. Reviewed By: xavierd Differential Revision: D19958630 fbshipit-source-id: 143d57e060acb150461151b31d82bb6bfefe3c91
This commit is contained in:
parent
840d55b0e3
commit
3a5b53134e
@ -28,7 +28,7 @@ hinttable = {
|
||||
"Check fburl.com/why-no-named-branches for details."
|
||||
),
|
||||
"revnum-deprecate": lambda rev: _(
|
||||
"Local revision numbers (ex. %s) are being deprecated and will stop working by the end of 2019. "
|
||||
"Local revision numbers (ex. %s) are being deprecated and will stop working in the future. "
|
||||
"Please use commit hashes instead."
|
||||
)
|
||||
% rev,
|
||||
|
@ -23,14 +23,14 @@ sh % "setconfig 'devel.legacy.revnum=warn'"
|
||||
|
||||
sh % "hg log -r 0 -T '.\\n'" == r"""
|
||||
.
|
||||
hint[revnum-deprecate]: Local revision numbers (ex. 0) are being deprecated and will stop working by the end of 2019. Please use commit hashes instead.
|
||||
hint[revnum-deprecate]: Local revision numbers (ex. 0) are being deprecated and will stop working in the future. Please use commit hashes instead.
|
||||
hint[hint-ack]: use 'hg hint --ack revnum-deprecate' to silence these hints"""
|
||||
|
||||
# negative revnum
|
||||
|
||||
sh % "hg update -r -2" == r"""
|
||||
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
||||
hint[revnum-deprecate]: Local revision numbers (ex. -2) are being deprecated and will stop working by the end of 2019. Please use commit hashes instead.
|
||||
hint[revnum-deprecate]: Local revision numbers (ex. -2) are being deprecated and will stop working in the future. Please use commit hashes instead.
|
||||
hint[hint-ack]: use 'hg hint --ack revnum-deprecate' to silence these hints"""
|
||||
|
||||
# revset operators
|
||||
@ -38,32 +38,32 @@ sh % "hg update -r -2" == r"""
|
||||
sh % "hg log -r 1+2 -T '.\\n'" == r"""
|
||||
.
|
||||
.
|
||||
hint[revnum-deprecate]: Local revision numbers (ex. 1) are being deprecated and will stop working by the end of 2019. Please use commit hashes instead.
|
||||
hint[revnum-deprecate]: Local revision numbers (ex. 1) are being deprecated and will stop working in the future. Please use commit hashes instead.
|
||||
hint[hint-ack]: use 'hg hint --ack revnum-deprecate' to silence these hints"""
|
||||
|
||||
sh % "hg log -r '::2' -T '.\\n'" == r"""
|
||||
.
|
||||
.
|
||||
.
|
||||
hint[revnum-deprecate]: Local revision numbers (ex. 2) are being deprecated and will stop working by the end of 2019. Please use commit hashes instead.
|
||||
hint[revnum-deprecate]: Local revision numbers (ex. 2) are being deprecated and will stop working in the future. Please use commit hashes instead.
|
||||
hint[hint-ack]: use 'hg hint --ack revnum-deprecate' to silence these hints"""
|
||||
|
||||
sh % "hg log -r 2-1 -T '.\\n'" == r"""
|
||||
.
|
||||
hint[revnum-deprecate]: Local revision numbers (ex. 2) are being deprecated and will stop working by the end of 2019. Please use commit hashes instead.
|
||||
hint[revnum-deprecate]: Local revision numbers (ex. 2) are being deprecated and will stop working in the future. Please use commit hashes instead.
|
||||
hint[hint-ack]: use 'hg hint --ack revnum-deprecate' to silence these hints"""
|
||||
|
||||
# revset functions
|
||||
|
||||
sh % "hg log -r 'parents(2)' -T '.\\n'" == r"""
|
||||
.
|
||||
hint[revnum-deprecate]: Local revision numbers (ex. 2) are being deprecated and will stop working by the end of 2019. Please use commit hashes instead.
|
||||
hint[revnum-deprecate]: Local revision numbers (ex. 2) are being deprecated and will stop working in the future. Please use commit hashes instead.
|
||||
hint[hint-ack]: use 'hg hint --ack revnum-deprecate' to silence these hints"""
|
||||
|
||||
sh % "hg log -r 'sort(2+0)' -T '.\\n'" == r"""
|
||||
.
|
||||
.
|
||||
hint[revnum-deprecate]: Local revision numbers (ex. 2) are being deprecated and will stop working by the end of 2019. Please use commit hashes instead.
|
||||
hint[revnum-deprecate]: Local revision numbers (ex. 2) are being deprecated and will stop working in the future. Please use commit hashes instead.
|
||||
hint[hint-ack]: use 'hg hint --ack revnum-deprecate' to silence these hints"""
|
||||
|
||||
# abort
|
||||
|
Loading…
Reference in New Issue
Block a user