mirror of
https://github.com/golang/go
synced 2024-11-21 09:24:42 -07:00
codereview: correct handling of files created with hg cp
R=r CC=golang-dev https://golang.org/cl/194118
This commit is contained in:
parent
9f48f7e67d
commit
84b044e8fb
@ -2881,13 +2881,10 @@ class MercurialVCS(VersionControlSystem):
|
||||
# the working copy
|
||||
if out[0].startswith('%s: ' % relpath):
|
||||
out = out[1:]
|
||||
if len(out) > 1:
|
||||
# Moved/copied => considered as modified, use old filename to
|
||||
# retrieve base contents
|
||||
status, what = out[0].split(' ', 1)
|
||||
if len(out) > 1 and status == "A" and what == relpath:
|
||||
oldrelpath = out[1].strip()
|
||||
status = "M"
|
||||
else:
|
||||
status, _ = out[0].split(' ', 1)
|
||||
if ":" in self.base_rev:
|
||||
base_rev = self.base_rev.split(":", 1)[0]
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user