[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37189: Acknowledgement (25.4.1: vc-hg-ignore implementation is missi
bug#37189: Acknowledgement (25.4.1: vc-hg-ignore implementation is missing)
Tue, 27 Aug 2019 10:45:36 +0300
> From: Wolfgang Scherer <address@hidden>
> Date: Tue, 27 Aug 2019 01:25:59 +0200
> +(defun vc-hg-ignore (file &optional directory remove)
> + "Ignore FILE of DIRECTORY (default is `default-directory').
> +FILE is a file wildcard, relative to the root directory of DIRECTORY.
I think instead of "root directory of DIRECTORY" this should say "the
top-level directory of DIRECTORY's repository".
> +If FILE matches the regular expression
> +`vc-hg-ignore-detect-wildcard', it is appended to .hgignore as
> +is. Otherwise, FILE is escaped/expanded according to the active
> +syntax in .hgignore. If the syntax is `regexp', FILE is quoted as
> +anchored literal Python regexp and if FILE is a directory, the
> +trailing `$' is omitted. Otherwise, if the syntax is `glob',
> +FILE is used unquoted and if FILE is a directory, a `*' is
Our convention is to leave 2 spaces between sentences in comments and
> +When called from Lisp code, if DIRECTORY is non-nil, the
"When called from Lisp" implies that this function can be called in
some other way, which is generally correct only with commands. But
this function is not a command, so I'm unsure what this means here.