D2903: utils: add isauthorwellformed function

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Wed Mar 21 09:03:50 EDT 2018


yuja added a comment.


  > 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")

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