D5732: changegroup: initialize the state variable a bit earlier
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Tue Jan 29 15:16:51 EST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG73a33fe625bb: changegroup: initialize the state variable a bit earlier (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5732?vs=13545&id=13554
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