This is an archive of the discontinued Mercurial Phabricator instance.

cmdutil: move the logic from copy() to a new function copies.copy()
AbandonedPublic

Authored by pulkit on Sep 21 2017, 6:16 AM.

Details

Reviewers
yuja
Group Reviewers
hg-reviewers
Summary

cmdutil.py is still 3647 lines after this change. This patch moves the logic to
copy a file from cmdutil.py to copies.py. Now, cmdutil.py just calls copies.py
to maintain compability.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

pulkit created this revision.Sep 21 2017, 6:16 AM
pulkit updated this revision to Diff 1959.Sep 21 2017, 7:21 AM
yuja requested changes to this revision.Sep 25 2017, 9:53 AM
yuja added a subscriber: yuja.

I slightly prefer not moving the command logic to copies.py because

a. copies.py seems to contain core algorithms
b. copies.py is already large enough to not add random features

This revision now requires changes to proceed.Sep 25 2017, 9:53 AM
pulkit abandoned this revision.Oct 10 2017, 5:32 PM

Was deferred by Yuya.