Jump to content

Specified Revision was not found


chun

Recommended Posts

Hi,

I'm using the command line to get a specific revision and for some reason it gives me the following error :-

The specified revision was not found w_master.srw#cs:56361

When I perform a cm dir w_master.srw it gives me the following :-

D:\IASADV\BUILD\pfe\pfemain>cm dir w_master.srw

216170 31/05/2012 15:26 txt br:/main#56361 w_master.srw

So I'm surprised that it can't find it with the following command :-

D:\IASADV\BUILD\pfe\pfemain>cm getfile w_master.srw#cs:56361 --file="D:\IASADV\BUILD"\build\pfe\pfe

main\w_master.srw

The specified revision was not found w_master.srw#cs:56361

Any ideas ?

Have I specified the wrong command line syntax to get this revision to output to another file ?

This syntax has worked for other files, just not this one amongst others.

Thanks in advance,

Chun.

Link to comment
Share on other sites

Just to make sure the revision is inside the repository and the guilty is the command (I can't find typos on it) can you please open the history view for the desired file and:

1) Right click and open the revision (The same action the cm cat must do)

2) Right click on the revision and diff with the previous.

Link to comment
Share on other sites

OK, found something.

1. Viewing History and trying to open the revision displays an error message :-

'Could not find a part of the path 'C:\pfc\pfemain\w_master.srw#56361.srw'.

2. Diffing with the previous revision was OK.

What now ?

Link to comment
Share on other sites

'Could not find a part of the path 'C:\pfc\pfemain\w_master.srw#56361.srw'.

Wow! That path is completely wrong!! I'm wondering why the command is breaking the file name...

The Diff command proves that everything is fine inside the repository.

I'll try to break the command as you are doing.

I think you can save the file content by opening the revision browsing the changeset, right?

Link to comment
Share on other sites

Hi Manu,

Yes I could open and save the revision, but this is part of a script where I determine the latest revision on the main line and get all those files so that I can perform a full build of the application. i.e there should be no user involvement as it will be performed overnight.

That path is historical for the item in question, it was moved from <drive letter>:\pfc\pfemain\w_master,.srw to <drive letter>:\pfe\pfemain\w_master.srw.

When moving, I added the new pfe folder and I moved the folders(pfexxx) to the new pfe folder from the pfc folder and not the individual items in those folders if that is any help.

Link to comment
Share on other sites

Just an idea, can you ask the command for the old path name?

cm cat <drive letter>:\pfc\pfemain\w_master.srw#cs:56361

BTW:Do you know that you can issue the cat command using the revision id? I'm sure that the revision id way is going to work, you can obtain it with a cm ls --format){reviid}

Link to comment
Share on other sites

Hi Manu,

Using the old path name returns a revision not found.

With regards to using the revision id, I'm sure that would work but I don't see anywhere in the documentation what the format for specifying the revision id e.g. if spec for changeset is <item>#cs:56361, what is the spec for revision id ?

Using the cm ls w_master.srw --format={revid} command gives me a revision id of 441744.

How do I specify this using the cm cat command ?

Chun.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...