Commits

anatoly techtonik committed cc607ee

some comments

Comments (0)

Files changed (1)

hgsvn/run/hgpullsvn.py

     changed_paths = []
     unrelated_paths = []
     replaced_paths = {}
+
+    # 1. Prepare for the `svn up` changes that are pulled in the second step
+    #    by analyzing log_entry for the changeset
     for d in log_entry['changed_paths']:
         # e.g. u'/branches/xmpp-subprotocols-2178-2/twisted/words/test/test_jabberxmlstream.py'
         p = d['path']
                 # is safest.
                 added_paths.append(p)
 
-    # Update SVN + add/remove/commit hg
+    # 2. Update SVN + add/remove/commit hg
     try:
         if changed_paths:
             args = ["up", "--ignore-externals"]
         next_rev = hgsvn_rev + 1
 
     # Reset working branch to last svn head to have a clean and linear SVN
-    # histoy.
+    # history.
     heads_before = None
     if hgsvn_rev is None:
         heads_before = run_hg(["heads", "--template",
                       action="store_true",
                       help="show incoming changesets without pulling them")
     parser.add_option("--branch", type="string", dest="svn_branch",
-        help="Override branch name (defaults to last path component of <SVN URL>)")
+        help="override branch name (defaults to last path component of <SVN URL>)")
     parser.add_option("--svn-retry", dest="svnretry", default=False,
                       action="store_true",
                       help="retry SVN update command on failure")