Merge branch 'mt/p4-depotFile-at-version'

* mt/p4-depotFile-at-version:
  p4: retrieve the right revision of the file in UTF-16 codepath
This commit is contained in:
Junio C Hamano 2015-06-11 09:29:55 -07:00
Родитель 829f03e98c f5f53f1410
Коммит 8f436d1374
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -2145,7 +2145,7 @@ class P4Sync(Command, P4UserMap):
# them back too. This is not needed to the cygwin windows version,
# just the native "NT" type.
#
text = p4_read_pipe(['print', '-q', '-o', '-', file['depotFile']])
text = p4_read_pipe(['print', '-q', '-o', '-', "%s@%s" % (file['depotFile'], file['change']) ])
if p4_version_string().find("/NT") >= 0:
text = text.replace("\r\n", "\n")
contents = [ text ]