diff options
| author | Russ Cox <rsc@golang.org> | 2010-09-28 20:29:20 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-09-28 20:29:20 -0400 |
| commit | 949985648875b8320dae724ae51e636ee08dd6f2 (patch) | |
| tree | 65ffc85af82fff7a1625470d1ae83d0d402d97dc | |
| parent | 5474e166bc0b6c69a0a44730c19ecba09b1f9ed2 (diff) | |
| download | go-949985648875b8320dae724ae51e636ee08dd6f2.tar.xz | |
codereview: fix upload of hg copied file
Fixes #1134.
R=r, r2
CC=golang-dev
https://golang.org/cl/2264043
| -rw-r--r-- | lib/codereview/codereview.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index d87a7b3f21..e7987f911a 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -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() |
