[PATCH 5 of 6] localrepo: rename requirements parameter in stream_in()
Drew Gottlieb
drgott at google.com
Fri May 1 18:19:11 CDT 2015
# HG changeset patch
# User Drew Gottlieb <drgott at google.com>
# Date 1429730179 25200
# Wed Apr 22 12:16:19 2015 -0700
# Node ID e18209d2abdc45ba974d6c780c57428ca271d1f6
# Parent 74730f9658d383f45cc5fb2089530df4c981f03e
localrepo: rename requirements parameter in stream_in()
To avoid confusion from overloading of the variable name "requirements", the
requirements is renamed to remotereqs for localrepo's stream_in() function.
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1752,7 +1752,7 @@
"""
return util.hooks()
- def stream_in(self, remote, requirements):
+ def stream_in(self, remote, remotereqs):
lock = self.lock()
try:
# Save remote branchmap. We will use it later
@@ -1825,9 +1825,9 @@
util.bytecount(total_bytes / elapsed)))
# new requirements = old non-format requirements +
- # new format-related
+ # new format-related remote requirements
# requirements from the streamed-in repository
- self.requirements = requirements | (
+ self.requirements = remotereqs | (
self.requirements - self.supportedformats)
self._applyopenerreqs()
self._writerequirements()
More information about the Mercurial-devel
mailing list