D2903: utils: add isauthorwellformed function
lothiraldan (Boris Feld)
phabricator at mercurial-scm.org
Wed Mar 21 09:15:16 EDT 2018
lothiraldan added a comment.
In https://phab.mercurial-scm.org/D2903#46735, @yuja wrote:
> > We are trying to slim down util.py, do you think it would be possible to
> > put it in a new module, something like `utils/authorutil.py`?
>
> +1. It could be `utils/stringutil.py` if "author" is too specific.
>
> Some potential functions that should be moved:
>
> - stringmatcher() (if "stringutil")
> - shortuser()
> - emailuser()
> - email()
> - ellipsis() (if "stringutil")
> - escapestr() (if "stringutil")
> - unescapestr() (if "stringutil")
> - forcebytestr() (if "stringutil")
> - uirepr() (maybe if "stringutil")
> - wrap() (maybe if "stringutil")
👍 on `stringutil`
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2903
To: sheehan, #hg-reviewers
Cc: yuja, lothiraldan, pulkit, mercurial-devel
More information about the Mercurial-devel
mailing list