unbundle: add a small comment to tag the bundle1 case as such
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Thu, 02 Feb 2017 10:55:38 +0100
changeset 30869 887de9516138
parent 30868 847f06179f60
child 30870 c5bee6aa4971
unbundle: add a small comment to tag the bundle1 case as such This makes the code clearer to understand for someone new to it (or rusted)
mercurial/exchange.py
--- a/mercurial/exchange.py	Thu Feb 02 10:51:04 2017 +0100
+++ b/mercurial/exchange.py	Thu Feb 02 10:55:38 2017 +0100
@@ -1763,6 +1763,7 @@
                         parts.append(part)
                 raise
         else:
+            # legacy case: bundle1 (changegroup 01)
             lockandtr[1] = repo.lock()
             r = cg.apply(repo, source, url)
     finally: