]> Cypherpunks repositories - gostls13.git/commitdiff
codereview: fix upload of hg copied file
authorRuss Cox <rsc@golang.org>
Wed, 29 Sep 2010 00:29:20 +0000 (20:29 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 29 Sep 2010 00:29:20 +0000 (20:29 -0400)
Fixes #1134.

R=r, r2
CC=golang-dev
https://golang.org/cl/2264043

lib/codereview/codereview.py

index d87a7b3f21d9828c046aec13bdc82e1c4ae7d6fd..e7987f911a35739d3de37640e8ec7ca4d4aff95c 100644 (file)
@@ -2600,7 +2600,7 @@ class MercurialVCS(VersionControlSystem):
                        if use_hg_shell:
                                base_content = RunShell(["hg", "cat", "-r", base_rev, oldrelpath], silent_ok=True)
                        else:
-                               base_content = str(self.repo[base_rev][filename].data())
+                               base_content = str(self.repo[base_rev][oldrelpath].data())
                        is_binary = "\0" in base_content  # Mercurial's heuristic
                if status != "R":
                        new_content = open(relpath, "rb").read()