D2003: util: extract all date-related utils in utils/dateutil module

2018-02-05 Thread lothiraldan (Boris Feld)
lothiraldan abandoned this revision. lothiraldan added a comment. I updated the series with copying util.py to utils/dateutil.py. I've also added the deprecation warnings but I'm not sure how to add deprecation warnings for variables. I also splitted the change as copying util.py

D2003: util: extract all date-related utils in utils/dateutil module

2018-02-05 Thread lothiraldan (Boris Feld)
lothiraldan updated this revision to Diff 5205. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2003?vs=5153=5205 REVISION DETAIL https://phab.mercurial-scm.org/D2003 AFFECTED FILES contrib/synthrepo.py hgext/blackbox.py hgext/churn.py

D2003: util: extract all date-related utils in utils/dateutil module

2018-02-02 Thread durin42 (Augie Fackler)
durin42 added a comment. Probably, but I'd also like to time-box how long we do those exports to a release cycle or two so we can get out from under the mess. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2003 To: lothiraldan, #hg-reviewers, durin42 Cc:

D2003: util: extract all date-related utils in utils/dateutil module

2018-02-02 Thread indygreg (Gregory Szorc)
indygreg added a comment. Should we alias the symbols into `util` to avoid the massive API break? We already re-export a number of symbols from `util`. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2003 To: lothiraldan, #hg-reviewers, durin42 Cc: indygreg,

D2003: util: extract all date-related utils in utils/dateutil module

2018-02-02 Thread durin42 (Augie Fackler)
durin42 added a comment. I think this is a reasonable approach. Do mark the copy though for blame preservation, and make sure to add utils/__init__.py and add mercurial.utils to the setup.py Thanks! REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2003 To:

D2003: util: extract all date-related utils in utils/dateutil module

2018-02-02 Thread mharbison72 (Matt Harbison)
mharbison72 added a comment. Should dateutil.py be created with ‘hg cp’ to make annotate easier? REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2003 To: lothiraldan, #hg-reviewers, durin42 Cc: mharbison72, durin42, mercurial-devel

D2003: util: extract all date-related utils in utils/dateutil module

2018-02-02 Thread lothiraldan (Boris Feld)
lothiraldan created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY With this commit, util.py lose 313 lines REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2003 AFFECTED FILES

D2003: util: extract all date-related utils in utils/dateutil module

2018-02-02 Thread lothiraldan (Boris Feld)
lothiraldan added a reviewer: durin42. lothiraldan added a subscriber: durin42. lothiraldan added a comment. @durin42 please tell me if I am on the right tracks REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2003 To: lothiraldan, #hg-reviewers, durin42 Cc: