how to remove a single file from sccs repository?

Posted on 2006-04-07
Last Modified: 2013-12-26
I want to remove a single file from SCCS repository completely.
Can I safely do 'sccs clean my_file' without impacting other files in that repository?
Question by:sankumanis
    LVL 51

    Expert Comment

    why would you do that? i.g. you never delete something in the repository.

    Said this: deleting a file in sccs' repository is very simple:
      rm /path/to/sccs-repository/s.your-file

    Author Comment

    I want to remove the file from the repository because I feel that I am not able to check in my latest modification.
    I did the following:

    1. sccs edit file
    2. modify file
    3. sccs delget file

    The last command asks me to put a comment and looks like everything is good.
    But when I do the following

    4. sccs diffs file : I see the old changes still. My understanding is the diffs command shows the difference between your file in the current directory and the one in the sccs repository. So if the changes were checked in, there should be no diffs output.

    5. sccs edit file : This one supposed to have checked out the latest from the repository. But when I open theis file, I see the one before the modification.

    Please Note: I originally checked in the file ( first time ) from the production box by mistake with : sccs create file
    Later I tried to update the changes from the development box with : sccs delget file. I never did a : sccs create file from the development machine.
    LVL 51

    Accepted Solution

    sounds strange, the only reason I'm aware of such a behaviour being valid is when you edited a branch

    If the file still is version 1.1 (or just have a few changes) you can check the repository file what's in there, just do a:
       more /path/to/sccs-repository/s.your-file

    the first block of lines down to the first line in your text file are SCCS control lines.
    You start reading from top where the repository history is, each entry consist of 4 lines:
      s magicstring
      d detla with date, SCCS-ID, date, user, delta-IDs
      c you comment
      e  --nothing here--

    you should see your comment there
    if not, you're looking at the wrong file

    You may try to do a   sccs val file

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
    If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now