stack: remove unnecessary copying of rdependencies stable
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 06 Sep 2019 13:23:25 +0700
branchstable
changeset 4830 4c5377ab147a
parent 4829 6b82b4f72347
child 4831 0852dcba82f6
stack: remove unnecessary copying of rdependencies rdependencies is not modified in any way in this method, so no need to copy it.
hgext3rd/topic/stack.py
--- a/hgext3rd/topic/stack.py	Fri Sep 06 12:53:46 2019 +0700
+++ b/hgext3rd/topic/stack.py	Fri Sep 06 13:23:25 2019 +0700
@@ -155,7 +155,6 @@
                 dependencies[k] = [i.copy() for i in v]
             else:
                 dependencies[k] = v.copy()
-        rdependencies = rdependencies.copy()
         # Step 2: Build the ordering
         # Remove the revisions with no dependency(A) and add them to the ordering.
         # Removing these revisions leads to new revisions with no dependency (the