D5732: changegroup: initialize the state variable a bit earlier
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Tue Jan 29 13:07:12 UTC 2019
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This will make the next patch much easier.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5732
AFFECTED FILES
mercurial/changegroup.py
CHANGE DETAILS
diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -930,6 +930,13 @@
changedfiles = set()
clrevtomanifestrev = {}
+ state = {
+ 'clrevorder': clrevorder,
+ 'manifests': manifests,
+ 'changedfiles': changedfiles,
+ 'clrevtomanifestrev': clrevtomanifestrev,
+ }
+
# Callback for the changelog, used to collect changed files and
# manifest nodes.
# Returns the linkrev node (identity in the changelog case).
@@ -970,13 +977,6 @@
return x
- state = {
- 'clrevorder': clrevorder,
- 'manifests': manifests,
- 'changedfiles': changedfiles,
- 'clrevtomanifestrev': clrevtomanifestrev,
- }
-
gen = deltagroup(
self._repo, cl, nodes, True, lookupcl,
self._forcedeltaparentprev,
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list