title: hg push hangs after modify file in repository
body: <p>I have a Mercurial repository where some Python scripts are used by a web server. I have only one branch and a nested git repository. Everything was right. Now here's the issue: In order to conduct debugs and tests, I finally make changes directly to the file in the repository and then report modification locally when it's done. Since, whenever I tried to push something (after a commit, of course) it hangs and I can't do anything. The last message it displays is <code>searching for changes</code>.</p>
  
  <p>I also tried <code>--debug</code>. This is what I get:</p>
  
  <pre><code>nested: git --version
  nested: git for-each-ref --format %(objectname) %(rename)
  nested: git merge-base b8e9bd80c6d0ec8e003033e2d2f36f336c994f7f 7697f69d09ab4e9b3f6e0d83232675c91c45777e
  query 1; heads
  sending batch command
  searching for changes
  all remote heads known locally
  preparing listkeys for "phases"
  sending listkeys command
  received listkey for "phases": 15 bytes
  checking for updated bookmarks
  preparing listkeys for "bookmarks"
  sending listkeys command
  received listkey for "bookmarks": 0 bytes
  sending branchmap command
  sending branchmap command
  preparing listkeys for "bookmarks"
  sending listkeys command
  received listkey for "bookmarks": 0 bytes
  1 changesets found
  list of changesets:
  caa866293415a14a273676bc2a7d37617084cdf2
  bundle2-output-bundle: "HG20", 4 parts total
  bundle2-output-part: "replycaps" 155 bytes payload
  bundle2-output-part: "check:heads" streamed payload
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
  bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
  sending unbundle command
  sending 751 bytes
  </code></pre>
  
  <p>How can I do to make to force push or revert my change in the repository?</p>
  
  <p>Optional: Is it possible to make temporary changes in the repository for tests and debugs and make everything still work?</p>