GNU bug report logs -
#39380
26.3: Opening files in vc-dir-mode with differing root and working dir fails
Previous Next
Reported by: Wolfgang Scherer <Wolfgang.Scherer <at> gmx.de>
Date: Sat, 1 Feb 2020 00:14:01 UTC
Severity: normal
Found in version 26.3
Fixed in version 27.1
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 07.02.2020 12:53, Eli Zaretskii wrote:
> I'll have to ask you to walk me through the change and explain how it
> solves the original issue.
There are two changes:
1. Having the returned file names relative to the working dir instead of
the repository root. For that, we change 'hg status' to 'hg status re:'.
2. Only including the files inside the working dir in the output. That
happens by adding '-I .' to the arguments. Otherwise, Mercurial adds, in
the presented scenario, an entry like '../sub2/x', which is extraneous.
> the Mercurial documentation I've read seems
> to contradict what you are doing (e.g., it says "re:" should be
> immediately followed by a regexp).
You can search the manual for "hg status re:".
I agree it's a bit unclear (it also mentions "hg help patterns" for some
reason), but here's an SO answer that got me this far:
https://stackoverflow.com/a/46743585/615245
This bug report was last modified 5 years and 96 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.