我试图找出p4 sync -L //one/of/my/files
的正确语法。当我尝试p4 sync -L //one/of/my/files@1234
时,它会抱怨未指定修订版,如果我尝试@
,则会抱怨#
和SELECT
md.SomeID AS 'Upstream SomeID'
,r2.SomeID
-- I'd like to refer to the root SomeID here
,CAST(DATEPART(YEAR, SomeDate) AS VARCHAR) + ', ' + CAST(DATEPART(MONTH, SomeDate) AS VARCHAR) as 'Month'
,SUM(rd.SomeValue) AS 'Sum of SomeValue'
FROM DailyReadings rd
INNER JOIN Readings r ON r.SomeID = rd.SomeID
INNER JOIN Connections c ON rd.SomeID = c.UpstreamID
INNER JOIN Readings r2 ON c.DownstreamID = r2.SomeID
WHERE r2.SpecialNumber = AnotherID
AND r2.SpecialNumber IN
(
'227796B'
,'225044'
,'578283'
,'578133'
,'578132'
,'577925'
,'577878'
,'224998'
,'228282'
,'577394'
,'227844'
,'225094'
,'578131'
,'218374'
,'577732'
,'227845'
,'224978'
,'227773'
,'578280'
,'578078'
,'577930'
,'228220'
,'578121'
,'227389'
,'218206'
,'578179'
,'228034'
,'227864'
,'22593'
,'578040'
,'578131'
)
OR SpecialNumber LIKE '%228166%'
OR SpecialNumber LIKE '%577968%'
OR SpecialNumber LIKE '%228220%'
OR SpecialNumber LIKE '%577394%'
OR SpecialNumber LIKE '%578132%'
)
)
GROUP BY rd.SomeID, r2.SomeID, DATEPART(YEAR, SomeDate),
DATEPART(MONTH, SomeDate)
ORDER BY 'Month' DESC, AnotherID DESC
是非法的。
答案 0 :(得分:2)
嗯,documentation说:
a list of valid file arguments in full depot syntax with a valid revision number
版本号为#1
,#17
等。@
语法用于引用标签名称,客户名称或更改列表编号,不修订号。
有关详情,请查看[p4 help revisions][2]
;正如它所说,你想要:
`file#n Revision specifier: The nth revision of file.`
因此,请指定//one/of/my/files#17
,假设修订版17
是您要同步的文件的修订版。
要查看文件的修订版,请使用p4 filelog //one/of/my/files
。