Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Source Control: Move a file without loosing history

Hi

I am using RTC through the Web client and the Desktop client built on eclipse.
I can find nowhere the option or the documentation how to move a file from one folder to the next and keeping the file history.
This is now in source control.

Please help me or point me to the right direction.

Thanks

0 votes



2 answers

Permanent link
Please see https://www.ibm.com/support/knowledgecenter/SSYMRC_6.0.1/com.ibm.team.concert.dotnet.doc/topics/t_move_file_folder.html

Also see these questions, if you move across component borders.
  • https://jazz.net/forum/questions/118228/move-files-and-folders-between-components-and-retain-history
  • https://jazz.net/forum/questions/121756/preserving-file-history-across-a-component-move
  • https://jazz.net/forum/questions/125188/why-does-moving-files-between-components-not-maintain-history

1 vote

Comments

Thanks. My move is within a folder. I did saw this article:

https://jazz.net/forum/questions/118228/move-files-and-folders-between-components-and-retain-history

BUT, when I right click there's no Move menu.
I've looked for the move menu everywhere. Maybe there's a different client app?

I am using the following two client applications:
1. Web UI
2. Eclipse Based RTC UI

Please direct me.

If you just want to move a simple file within one project or component use the move and refactor commands in Eclipse and the history will be preserved.

Move between components is only relevant if you move to a different component and according to the documentation Move in Repository is only available on the Project, hence the mentioned work around if you have to move only some files.




1 vote

Thanks, makes sense.
The file I was talking about was MS Word specification files.
Must I use eclipse to manage my spec repository files? Or is there another simpler way?

What is a MS Word specification file? Just a Word doc?
Options:

  1. Download and lock the file from a stream in the web UI, upload and unlock after change
  2. Use the windows shell integration
  3. Use the Eclipse client
  4. Use the visual studio client
  5. You can use the SCM command line.

You definitely want to lock the file before editing. In 5.0.2, there should be a feature to make files read only in a stream based on the extension and to auto lock the file. This only works with editors in Eclipse and I haven't been able to use this with word or PPT files. Maybe I am missing something.


1 vote

Ralph:  Why the advice not to use the SCM command line?   Is there some problem with the "scm move path" command?  And in 6.0.2, you have the "scm move repository-path" which supports cross-component moves.

1 vote

I agree and reworded the comment, Geoff.

The reason was the statement "Or is there another simpler way?"

If someone provides me with some scrips that would be fine. I Just thought about getting to the script is the bigger effort and ruled it out, but in hindsight, that might not matter if someone does it for you.

showing 5 of 6 show 1 more comments

Permanent link
Hi Ralph, Geoffrey

Yes, just a Word Doc.

Seems to me the scm command line is the answer.

Eclipse and Visual Studio are geared for code. We'll use the web UI rather for the MS Word repository. More user friendly and cater for everything except move.

scm command we will use then in the rare case of moving files.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,014
× 19
× 12
× 12
× 7

Question asked: Apr 05 '16, 7:52 a.m.

Question was seen: 5,253 times

Last updated: Apr 13 '16, 6:45 a.m.

Confirmation Cancel Confirm