It's all about the answers!

Ask a question

scm accept can not detect the deleted directories/files?


liang wang (122) | asked Oct 31 '13, 3:49 a.m.
retagged Dec 16 '13, 3:55 p.m. by David Lafreniere (4.6k7)
I'm doing a test on command line client.
1> load a workspace on command line;
2> delete a directory and a file, and deliver the changes to RTC server from Eclipse RTC client;
3> use 'scm accept -r rtc -s <stream> -o' to accept the changes on command line.
but the latest command always say 'Workspace unchanged.'.
Couldn't 'scm accept' detect a deleted directory/file?

Thanks!

One answer



permanent link
Simon Eickel (1.1k75357) | answered Oct 31 '13, 5:31 a.m.
Hi Liang,

I checked this scenario on 4.0.4
I have one Eclipse workspace "eickel-test jazzqual" connected with the stream "eickel-test" and one Shell workspace "eickel-test patch creation" which is connected to the same stream.

I deleted one folder within the Eclipse workspace and delivered this to the stream. I checked the Shell workspace within Eclipse if there would be in incoming changed and noticed that there is one.

Now I switched to the command line and run the following command:
C:\>scm accept -r jazzqual -s eickel-test -o -t "eickel-test patch creation"
Password (EICKEL_S @ https://jazzqual.rsint.net/ccm/):
 Repository: https://jazzqual.rsint.net/ccm/
Workspace: (2869) "eickel-test patch creation"
  Component: (2838) "BasisDiverse"
    Change sets:
      (2871) ---$  "deleted folder 'Structure'" 31-Oct-2013 10:22 AM
        Changes:
          --d-- \structure\
          --d-- \structure\testfile.txt

As you can see all changes will be accept correctly to the workspace.

Did you really choose the correct stream? Please recheck using Eclipse client.

Hope this helps,
Simon


Comments
Simon Eickel commented Oct 31 '13, 6:13 a.m.

The above command only accepts the changes to the workspace but downloads it not automatically.

Checked the command with directly downloading the changes:
C:\ALM\workspaces\Shell_eickel_s-jazzqual>scm accept -o -r jazzqual -v
Repository: https://jazzqual.rsint.net/ccm/
Workspace: (2869) "eickel-test patch creation"
  Component: (2838) "BasisDiverse"
    Change sets:
      (2884) ---$  "deleted folder 'Structure'" 31-Oct-2013 11:10 AM
        Changes:
          --d-- \BasisDiverse\Structure\
          --d-- \Structure\newFile.txt
          --d-- \Structure\test.txt

C:\ALM\workspaces\Shell_eickel_s-jazzqual>

And everything works as expected ...

Hope this helps,
Simon


liang wang commented Oct 31 '13, 7:26 a.m.

Thank you!
Now I found the issue is, not only the deleted files, but also the updated files can not be reflected to command line sandbox.
However, if I load codes into a new directory/sandbox, the codes are correct.
I'm not sure the root reason. I remember it works well before ...

Your answer


Register or to post your answer.