test-template-keywords: add test for {latesttag} of wdir() revision
It's probably broken since
fb672eac2702, "templatekw: choose {latesttag}
by len(changes), not date (
issue5659)". only() doesn't support wdir.
narrow: fix crash when restoring backup in legacy repo
Using --addremove when committing in an old repo (before we started
keeping .hg/narrowspec.dirstate) results in a crash. The test
case modified in this patch would crash like this:
abort: $ENOENT$
The issue is that when the dirstateguard is aborted, it tries to
restore the backup of .hg/narrowspec.dirstate. However, since we were
in an old repo, that file did not get created when the dirstateguard
was created. Note that the dirstateguard is not used unless
--addremove is passed.
This patch fixes the bug by making restorewcbackup() not fail if the
backup doesn't exist. I also made clearwcbackup() safe, just in case.
Differential Revision: https://phab.mercurial-scm.org/D5634
revset: introduce an internal `_rev` predicate for '%d' usage
In
24a1f67bb75a, we aligned "%d" behavior on "%ld" one, invalid revisions got
silently ignored. However, soon after in
8aca89a694d4 and
26b0a7514f01, a side
effect changed the behavior of "%ld" to no longer silently filter invalid
revisions.
After discussion on the mailing list, it was decided to align on the new %ld
behavior:
https://www.mercurial-scm.org/pipermail/mercurial-devel/2019-January/127291.html
This changeset introduce a '_rev()' predicated that keep the benefit from
24a1f67bb75a while enforcing a more strict checking on the inputs.
mmap: backed out changeset
875d2af8cb4e
There have been concrete and theoretical issues raised, this will need more
work during the next cycle.
mmap: backed out changeset
74a9f428227e
There have been concrete and theoretical issues raised, this will need more
work during the next cycle.
Added signature for changeset
593718ff5844
Added tag 4.9rc0 for changeset
593718ff5844