changegroupsubset(): move comment at the right place
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Thu, 22 Jul 2010 23:44:14 +0200
changeset 11660 5d62df44cac0
parent 11659 deecf1953e7b
child 11661 b16fb5d55b83
changegroupsubset(): move comment at the right place
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Thu Jul 22 23:13:03 2010 +0200
+++ b/mercurial/localrepo.py	Thu Jul 22 23:44:14 2010 +0200
@@ -1284,8 +1284,10 @@
         # Set up some initial variables
         # Make it easy to refer to self.changelog
         cl = self.changelog
-        # msng is short for missing - compute the list of changesets in this
-        # changegroup.
+        # Compute the list of changesets in this changegroup.
+        # Some bases may turn out to be superfluous, and some heads may be
+        # too.  nodesbetween will return the minimal set of bases and heads
+        # necessary to re-create the changegroup.
         if not bases:
             bases = [nullid]
         msng_cl_lst, bases, heads = cl.nodesbetween(bases, heads)
@@ -1302,9 +1304,6 @@
         self.hook('preoutgoing', throw=True, source=source)
 
         self.changegroupinfo(msng_cl_lst, source)
-        # Some bases may turn out to be superfluous, and some heads may be
-        # too.  nodesbetween will return the minimal set of bases and heads
-        # necessary to re-create the changegroup.
 
         # Known heads are the list of heads that it is assumed the recipient
         # of this changegroup will know about.