History of a file on a repository

Hi,

How can I get the history of a file with a given path and repository (I don’t have workspace)?

Thanks.

Hi, you can include a full server path for the “cm history --help” command:

cm history serverpath:/src/foo/bar.c#br:/main/task001@myserver
(Retrieves the revision history from a server path in a given branch.)

I don’t really know what you mean by server path but as I understand it, it is an absolute path, which I don’t have. All I know is the repository name and the relative path of the item.

The server path is the relative path for the item in the specific changeset/branch.

Yes but how can I specify a repository ?

Hi, I just saw there was a mistake in the same:

cm history serverpath:/src/foo/bar.c#br:/main/task001@myrepository

It truns out that specifying a branch will search in all sub-branches which is perfect for what I wanted to do. Just querried #br:/main@myrepo to get all history of my repo.

Thanks

1 Like