Topic
  • 15 replies
  • Latest Post - ‏2007-01-12T19:16:53Z by SystemAdmin
SystemAdmin
SystemAdmin
47283 Posts

Pinned topic How to ignore files in ClearCase?

‏2007-01-10T14:40:16Z |
I have a snapshot repository I'm working with. I often want to show view-private files so I know whether I've checked everything in.

A lot of files end up living in my top-level repository though, including all our generated .class files and whatnot. Is there any way to specificaly ignore files, so that I can distinguish between files that I created but haven't checked in, versus files I know I will never check in? Something similar to svn:ignore, or .cvsignore.

Thanks,
John
  • SystemAdmin
    SystemAdmin
    47283 Posts

    Re: How to ignore files in ClearCase?

    ‏2007-01-10T14:41:00Z  
    Oh, and FWIW, to view view-private files I'm doing the

    "ls -r -view_only" thing since it's a snapshot and lsprivate doesn't work.

    John
  • SystemAdmin
    SystemAdmin
    47283 Posts

    RE:How to ignore files in ClearCase?

    ‏2007-01-11T08:00:17Z  
    If you are on Windows and if you use the Rational Clearcase Explorer,
    see the "Kind" column. This displays "File/Directory Version" and "View
    private files", which should help you in distinguishing what you want.

    HTH,
    Jayanth
    =====

    -----Original Message-----
    From: cciug-bounces@lists.ca.ibm.com
    mailto:cciug-bounces@lists.ca.ibm.com On Behalf Of ButtDyno
    Sent: Wednesday, 10 January, 2007 20:10
    To: cciug@lists.ca.ibm.com
    Subject: cciug How to ignore files in ClearCase?

    I have a snapshot repository I'm working with. I often want to show
    view-private files so I know whether I've checked everything in.

    A lot of files end up living in my top-level repository though,
    including all our generated .class files and whatnot. Is there any way
    to specificaly ignore files, so that I can distinguish between files
    that I created but haven't checked in, versus files I know I will
    never check in? Something similar to svn:ignore, or .cvsignore.

    Thanks,
    John
    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com

    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com
  • SystemAdmin
    SystemAdmin
    47283 Posts

    Re: How to ignore files in ClearCase?

    ‏2007-01-11T10:12:51Z  
    You can deselect these files in your Config Spec,e.g., adding following lines :

    element *.class -none

    then in Windows Explorer and CC-Explorer you'll see no .class files, but in CMD-box you'll see the filename with "no version selected" appended.
  • SystemAdmin
    SystemAdmin
    47283 Posts

    Re: How to ignore files in ClearCase?

    ‏2007-01-11T15:02:53Z  
    You can deselect these files in your Config Spec,e.g., adding following lines :

    element *.class -none

    then in Windows Explorer and CC-Explorer you'll see no .class files, but in CMD-box you'll see the filename with "no version selected" appended.
    > You can deselect these files in your Config
    > Spec,e.g., adding following lines :
    >
    > element *.class -none
    >
    > then in Windows Explorer and CC-Explorer you'll see
    > no .class files, but in CMD-box you'll see the
    > filename with "no version selected" appended.

    I ran EDCS and got this:

    element * CHECKEDOUT
    element * /main/LATEST
    load \DEV
    load \Doc

    I added this:
    element *.class -none

    For a total of this:
    element * CHECKEDOUT
    element * /main/LATEST
    load \DEV
    element *.class -none
    load \Doc

    I save the file, CC prompts me if I want to load the config, I say yes, it does an update... and then the files are still there, with no "no version selected" disclaimer.

    What am I missing?

    Thanks,
    John
  • SystemAdmin
    SystemAdmin
    47283 Posts

    RE:Re: How to ignore files in ClearCase?

    ‏2007-01-11T18:19:06Z  
    > You can deselect these files in your Config
    > Spec,e.g., adding following lines :
    >
    > element *.class -none
    >
    > then in Windows Explorer and CC-Explorer you'll see
    > no .class files, but in CMD-box you'll see the
    > filename with "no version selected" appended.

    I ran EDCS and got this:

    element * CHECKEDOUT
    element * /main/LATEST
    load \DEV
    load \Doc

    I added this:
    element *.class -none

    For a total of this:
    element * CHECKEDOUT
    element * /main/LATEST
    load \DEV
    element *.class -none
    load \Doc

    I save the file, CC prompts me if I want to load the config, I say yes, it does an update... and then the files are still there, with no "no version selected" disclaimer.

    What am I missing?

    Thanks,
    John
    I don't think -none works under Windows

    -----Original Message-----
    From: cciug-bounces@lists.ca.ibm.com
    mailto:cciug-bounces@lists.ca.ibm.comOn Behalf Of ButtDyno
    Sent: Thursday, January 11, 2007 8:03 AM
    To: cciug@lists.ca.ibm.com
    Subject: cciug Re: How to ignore files in ClearCase?
    > You can deselect these files in your Config
    > Spec,e.g., adding following lines :
    >
    > element *.class -none
    >
    > then in Windows Explorer and CC-Explorer you'll see
    > no .class files, but in CMD-box you'll see the
    > filename with "no version selected" appended.

    I ran EDCS and got this:

    element * CHECKEDOUT
    element * /main/LATEST
    load \DEV
    load \Doc

    I added this:
    element *.class -none

    For a total of this:
    element * CHECKEDOUT
    element * /main/LATEST
    load \DEV
    element *.class -none
    load \Doc

    I save the file, CC prompts me if I want to load the config, I say yes, it does an update... and then the files are still there, with no "no version selected" disclaimer.

    What am I missing?

    Thanks,
    John
    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com

    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com
  • SystemAdmin
    SystemAdmin
    47283 Posts

    Re: RE:Re: How to ignore files in ClearCase?

    ‏2007-01-12T00:22:24Z  
    I don't think -none works under Windows

    -----Original Message-----
    From: cciug-bounces@lists.ca.ibm.com
    mailto:cciug-bounces@lists.ca.ibm.comOn Behalf Of ButtDyno
    Sent: Thursday, January 11, 2007 8:03 AM
    To: cciug@lists.ca.ibm.com
    Subject: cciug Re: How to ignore files in ClearCase?
    > You can deselect these files in your Config
    > Spec,e.g., adding following lines :
    >
    > element *.class -none
    >
    > then in Windows Explorer and CC-Explorer you'll see
    > no .class files, but in CMD-box you'll see the
    > filename with "no version selected" appended.

    I ran EDCS and got this:

    element * CHECKEDOUT
    element * /main/LATEST
    load \DEV
    load \Doc

    I added this:
    element *.class -none

    For a total of this:
    element * CHECKEDOUT
    element * /main/LATEST
    load \DEV
    element *.class -none
    load \Doc

    I save the file, CC prompts me if I want to load the config, I say yes, it does an update... and then the files are still there, with no "no version selected" disclaimer.

    What am I missing?

    Thanks,
    John
    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com

    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com
    > I don't think -none works under Windows

    Lovely.

    So I guess I'm doing ls -r -view_only and passing it through grep.

    $4200 per license and I still need a free tool to accomplish something that CVS and SVN realized a long time ago was incredibly important...
  • marct22
    marct22
    488 Posts

    Re:Re: RE:Re: How to ignore files in ClearCase?

    ‏2007-01-12T01:35:56Z  
    > I don't think -none works under Windows

    Lovely.

    So I guess I'm doing ls -r -view_only and passing it through grep.

    $4200 per license and I still need a free tool to accomplish something that CVS and SVN realized a long time ago was incredibly important...
    I guess I've never had a need for something like this. When working with Java, I always compile my .java files so they are generated outside of the source java files via nant. Then I can run those cleartool finds in my src directory without worrying about finding compiled code (compiler-generated code is different though).

    That also makes it quite easy to jar things up without having to exclude source code.

    Also, try cleaning before you run the find. A properly configured clean should flush out the class/jar/war/ear and then you don't have to worry about those files.

    Marc Towersap
    Sr. SCM Engineer


    Original Message ----
    From: ButtDyno <disadmin@us.ibm.com>
    To: cciug@lists.ca.ibm.com
    Sent: Thursday, January 11, 2007 5:22:24 PM
    Subject: cciug Re: RE:Re: How to ignore files in ClearCase?

    > I don't think -none works under Windows

    Lovely.

    So I guess I'm doing ls -r -view_only and passing it through grep.

    $4200 per license and I still need a free tool to accomplish something that CVS and SVN realized a long time ago was incredibly important...
    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com
    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com
  • SystemAdmin
    SystemAdmin
    47283 Posts

    Re:Re: RE:Re: How to ignore files in ClearCase?

    ‏2007-01-12T02:14:44Z  
    > I don't think -none works under Windows

    Lovely.

    So I guess I'm doing ls -r -view_only and passing it through grep.

    $4200 per license and I still need a free tool to accomplish something that CVS and SVN realized a long time ago was incredibly important...
    I think there's a disconnect here.

    Files that are not elements can't be checked in. Since they are not
    elements, your configSpec doesn't evaluate any rules for them, since it
    can't - they're not under source control. The -none flag does work on
    Windows, by the way, but only for elements (since the configspec is only
    evaluated for elements).

    If you haven't added a file to source control, then you can't check them
    in (they're not version controlled files and directories until you add
    them).

    To see which files you have checked out, you should be using the lsco
    command rather than the "ls -r -view_only"... Do you version control
    the .class files? Or do you want a listing of all files (with
    exceptions) that you might want to checkin, but aren't sure? You could
    also run a "cleartool find" command cleverly to exclude files you're not
    interested in.

    If you want to make a file or directory an element, then run the
    "mkelem" command - there's nothing really to checkin.

    $4200? That in USD? Per license? That's a lot. You should talk more
    with your IBM rep. They should give you SOME sort of discount.

    There are lots of reasons that the free tools aren't as good. There are
    also some reasons why they're better. I suspect that the problem here
    may be a misinterpretation of how ClearCase works vs. how your other
    tool would do things - you are used to how the free tools did things,
    but unfortunately, it's not the same way that ClearCase does things, I
    guess. There is overhead with ClearCase that you don't get with the
    free tools - in my opinion, some of that overhead is very elegant (some
    of it ... well ...). That overhead is in conceptualizing, and in server
    requirements.

    I could ask when did CVS realize that version controlling directories
    was incredibly important? Or ask when SVN realized that it needed a
    robust solution?

    :)

    ButtDyno wrote:
    >> I don't think -none works under Windows
    >>
    >
    > Lovely.
    >
    > So I guess I'm doing ls -r -view_only and passing it through grep.
    >
    > $4200 per license and I still need a free tool to accomplish something that CVS and SVN realized a long time ago was incredibly important...
    > _______________________________________________
    > cciug mailing list
    > cciug@lists.ca.ibm.com
    > Unsubscribe:cciug-leave@lists.ca.ibm.com
    >
    >

    -
    Jon Velapoldi

    Jon_Velapoldi@Raytheon.com
    (301) 925-0982
    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com
  • SystemAdmin
    SystemAdmin
    47283 Posts

    Re: Re:Re: RE:Re: How to ignore files in ClearCase?

    ‏2007-01-12T03:46:42Z  
    I think there's a disconnect here.

    Files that are not elements can't be checked in. Since they are not
    elements, your configSpec doesn't evaluate any rules for them, since it
    can't - they're not under source control. The -none flag does work on
    Windows, by the way, but only for elements (since the configspec is only
    evaluated for elements).

    If you haven't added a file to source control, then you can't check them
    in (they're not version controlled files and directories until you add
    them).

    To see which files you have checked out, you should be using the lsco
    command rather than the "ls -r -view_only"... Do you version control
    the .class files? Or do you want a listing of all files (with
    exceptions) that you might want to checkin, but aren't sure? You could
    also run a "cleartool find" command cleverly to exclude files you're not
    interested in.

    If you want to make a file or directory an element, then run the
    "mkelem" command - there's nothing really to checkin.

    $4200? That in USD? Per license? That's a lot. You should talk more
    with your IBM rep. They should give you SOME sort of discount.

    There are lots of reasons that the free tools aren't as good. There are
    also some reasons why they're better. I suspect that the problem here
    may be a misinterpretation of how ClearCase works vs. how your other
    tool would do things - you are used to how the free tools did things,
    but unfortunately, it's not the same way that ClearCase does things, I
    guess. There is overhead with ClearCase that you don't get with the
    free tools - in my opinion, some of that overhead is very elegant (some
    of it ... well ...). That overhead is in conceptualizing, and in server
    requirements.

    I could ask when did CVS realize that version controlling directories
    was incredibly important? Or ask when SVN realized that it needed a
    robust solution?

    :)

    ButtDyno wrote:
    >> I don't think -none works under Windows
    >>
    >
    > Lovely.
    >
    > So I guess I'm doing ls -r -view_only and passing it through grep.
    >
    > $4200 per license and I still need a free tool to accomplish something that CVS and SVN realized a long time ago was incredibly important...
    > _______________________________________________
    > cciug mailing list
    > cciug@lists.ca.ibm.com
    > Unsubscribe:cciug-leave@lists.ca.ibm.com
    >
    >

    -
    Jon Velapoldi

    Jon_Velapoldi@Raytheon.com
    (301) 925-0982
    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com
    Yes, you're right, the -none rule doesn't apply to private files/directories.
    For this ignore problems, how about redirect the storage-path of intermediate-files during compiling to one location outside CC?
  • SystemAdmin
    SystemAdmin
    47283 Posts

    Re: Re:Re: RE:Re: How to ignore files in ClearCase?

    ‏2007-01-12T04:40:41Z  
    I think there's a disconnect here.

    Files that are not elements can't be checked in. Since they are not
    elements, your configSpec doesn't evaluate any rules for them, since it
    can't - they're not under source control. The -none flag does work on
    Windows, by the way, but only for elements (since the configspec is only
    evaluated for elements).

    If you haven't added a file to source control, then you can't check them
    in (they're not version controlled files and directories until you add
    them).

    To see which files you have checked out, you should be using the lsco
    command rather than the "ls -r -view_only"... Do you version control
    the .class files? Or do you want a listing of all files (with
    exceptions) that you might want to checkin, but aren't sure? You could
    also run a "cleartool find" command cleverly to exclude files you're not
    interested in.

    If you want to make a file or directory an element, then run the
    "mkelem" command - there's nothing really to checkin.

    $4200? That in USD? Per license? That's a lot. You should talk more
    with your IBM rep. They should give you SOME sort of discount.

    There are lots of reasons that the free tools aren't as good. There are
    also some reasons why they're better. I suspect that the problem here
    may be a misinterpretation of how ClearCase works vs. how your other
    tool would do things - you are used to how the free tools did things,
    but unfortunately, it's not the same way that ClearCase does things, I
    guess. There is overhead with ClearCase that you don't get with the
    free tools - in my opinion, some of that overhead is very elegant (some
    of it ... well ...). That overhead is in conceptualizing, and in server
    requirements.

    I could ask when did CVS realize that version controlling directories
    was incredibly important? Or ask when SVN realized that it needed a
    robust solution?

    :)

    ButtDyno wrote:
    >> I don't think -none works under Windows
    >>
    >
    > Lovely.
    >
    > So I guess I'm doing ls -r -view_only and passing it through grep.
    >
    > $4200 per license and I still need a free tool to accomplish something that CVS and SVN realized a long time ago was incredibly important...
    > _______________________________________________
    > cciug mailing list
    > cciug@lists.ca.ibm.com
    > Unsubscribe:cciug-leave@lists.ca.ibm.com
    >
    >

    -
    Jon Velapoldi

    Jon_Velapoldi@Raytheon.com
    (301) 925-0982
    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com
    > I think there's a disconnect here.
    >
    > Files that are not elements can't be checked in.
    > Since they are not
    > elements, your configSpec doesn't evaluate any rules
    > for them, since it
    > can't - they're not under source control. The -none
    > flag does work on
    > Windows, by the way, but only for elements (since the
    > configspec is only
    > evaluated for elements).

    This is valuable information :)

    > If you haven't added a file to source control, then
    > you can't check them
    > in (they're not version controlled files and
    > directories until you add
    > them).

    That's how CVS/SVN work as well.

    > To see which files you have checked out, you should
    > be using the lsco
    > command rather than the "ls -r -view_only"... Do you
    > version control
    > the .class files? Or do you want a listing of all
    > files (with
    > exceptions) that you might want to checkin, but
    > aren't sure? You could
    > also run a "cleartool find" command cleverly to
    > exclude files you're not
    > interested in.
    >
    > If you want to make a file or directory an element,
    > then run the
    > "mkelem" command - there's nothing really to checkin.

    From looking at cleartool find, the query would have to be massively long to accomplish what I need.

    Finding files I checked out is easy. What I want, is a list of files that are in my project, and not checked in. I have figured that one out. However, I have no easy way of filtering that list, outside of
    • moving the generated files outside the project directory
    • grep or some sort of other post-processing on the results of the "ls" query

    The first one would be easy, if it was as simple as ignoring one directory, or one file extension. There are certain application server / middleware / IDE combinations that, for better or for worse, require you to set up your working copy in a way that litters it with lots of generated files. Not just class files. Thus my frustration.

    > $4200? That in USD? Per license? That's a lot.
    > You should talk more
    > with your IBM rep. They should give you SOME sort of
    > discount.

    I didn't pay for it... came preinstalled on my work computer. It just seems like for a system as established as CC is, it's funny that something like this hasn't "come up" as a potentially useful feature.

    > There are lots of reasons that the free tools aren't
    > as good. There are
    > also some reasons why they're better. I suspect that
    > the problem here
    > may be a misinterpretation of how ClearCase works vs.
    > how your other
    > tool would do things - you are used to how the free
    > tools did things,
    > but unfortunately, it's not the same way that
    > ClearCase does things, I
    > guess. There is overhead with ClearCase that you
    > don't get with the
    > free tools - in my opinion, some of that overhead is
    > very elegant (some
    > of it ... well ...). That overhead is in
    > conceptualizing, and in server
    > requirements.

    Well, I haven't found anything yet that CC does better than SVN. I'm sure there's something. I just haven't seen it yet. For now, neither here nor there.

    > I could ask when did CVS realize that version
    > controlling directories
    > was incredibly important? Or ask when SVN realized
    > that it needed a
    > robust solution?

    SVN is worlds ahead of CVS, and it should be, since it had the opportunity to learn from all of CVS's shortcomings.

    Anyhoo... maybe something to look into for the Rational folks... :)
  • SystemAdmin
    SystemAdmin
    47283 Posts

    Re: Re:Re: RE:Re: How to ignore files in ClearCase?

    ‏2007-01-12T04:42:37Z  
    • marct22
    • ‏2007-01-12T01:35:56Z
    I guess I've never had a need for something like this. When working with Java, I always compile my .java files so they are generated outside of the source java files via nant. Then I can run those cleartool finds in my src directory without worrying about finding compiled code (compiler-generated code is different though).

    That also makes it quite easy to jar things up without having to exclude source code.

    Also, try cleaning before you run the find. A properly configured clean should flush out the class/jar/war/ear and then you don't have to worry about those files.

    Marc Towersap
    Sr. SCM Engineer


    Original Message ----
    From: ButtDyno <disadmin@us.ibm.com>
    To: cciug@lists.ca.ibm.com
    Sent: Thursday, January 11, 2007 5:22:24 PM
    Subject: cciug Re: RE:Re: How to ignore files in ClearCase?

    > I don't think -none works under Windows

    Lovely.

    So I guess I'm doing ls -r -view_only and passing it through grep.

    $4200 per license and I still need a free tool to accomplish something that CVS and SVN realized a long time ago was incredibly important...
    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com
    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com
    > I guess I've never had a need for something like
    > this. When working with Java, I always compile my
    > .java files so they are generated outside of the
    > source java files via nant. Then I can run those
    > cleartool finds in my src directory without worrying
    > about finding compiled code (compiler-generated code
    > is different though).
    >
    > That also makes it quite easy to jar things up
    > without having to exclude source code.

    The way every (normal) Java project I've ever been involved with works, is something like this:
    project/
    -build/ compiled classes
    -lib/ external jars
    -src/ http://*.java
    -web/ or /webapp or whatever

    So, the build directory usually lives in the project directory, but is completely separate from the source files, for the reasons you describe. Putting both .class and .java in the same tree is something I've never seen and I don't think it would take folks too long to figure out why not to do it.

    In CVS/SVN, you would simply add build/ to your ignore list, and when you look at the status of your working copy, you can easily see both modified files AND non-checked-in files. If there are any generated files (let's say you are building Axis clients and you don't want to check in all the .java files that come out of wsdl2java) you can ignore them easily.

    > Also, try cleaning before you run the find. A
    > properly configured clean should flush out the
    > class/jar/war/ear and then you don't have to worry
    > about those files.

    As described in the other email - it's not that simple. There are certain tool combinations that simply don't work without littering your working copy with generated files. Plus simple stuff, like .project and .classpath, where cleaning is not an option. Basically, this project is not a "normal" project as described above, where there's only one folder that can host generated files, and there are only generated files of one type.
  • SystemAdmin
    SystemAdmin
    47283 Posts

    RE:Re: RE:Re: How to ignore files in ClearCase?

    ‏2007-01-12T10:16:40Z  
    > I don't think -none works under Windows

    Lovely.

    So I guess I'm doing ls -r -view_only and passing it through grep.

    $4200 per license and I still need a free tool to accomplish something that CVS and SVN realized a long time ago was incredibly important...
    The -none rule in the Config Spec does work on Windows as well. Add this
    rule to a file, say as follows

    element file.txt -none

    And refresh your Clearcase Explorer. The file is no longer visible. But
    when you do a "ct ls" from the command line, you only see the annotation
    as "no version selected" which is exactly what the -none rule does !!!
    -----Original Message-----
    From: cciug-bounces@lists.ca.ibm.com
    mailto:cciug-bounces@lists.ca.ibm.com On Behalf Of ButtDyno
    Sent: Friday, 12 January, 2007 05:52
    To: cciug@lists.ca.ibm.com
    Subject: cciug Re: RE:Re: How to ignore files in ClearCase?

    > I don't think -none works under Windows

    Lovely.

    So I guess I'm doing ls -r -view_only and passing it through grep.

    $4200 per license and I still need a free tool to accomplish something
    that CVS and SVN realized a long time ago was incredibly important...
    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com

    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com
  • SystemAdmin
    SystemAdmin
    47283 Posts

    Re: RE:Re: RE:Re: How to ignore files in ClearCase?

    ‏2007-01-12T15:15:16Z  
    The -none rule in the Config Spec does work on Windows as well. Add this
    rule to a file, say as follows

    element file.txt -none

    And refresh your Clearcase Explorer. The file is no longer visible. But
    when you do a "ct ls" from the command line, you only see the annotation
    as "no version selected" which is exactly what the -none rule does !!!
    -----Original Message-----
    From: cciug-bounces@lists.ca.ibm.com
    mailto:cciug-bounces@lists.ca.ibm.com On Behalf Of ButtDyno
    Sent: Friday, 12 January, 2007 05:52
    To: cciug@lists.ca.ibm.com
    Subject: cciug Re: RE:Re: How to ignore files in ClearCase?

    > I don't think -none works under Windows

    Lovely.

    So I guess I'm doing ls -r -view_only and passing it through grep.

    $4200 per license and I still need a free tool to accomplish something
    that CVS and SVN realized a long time ago was incredibly important...
    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com

    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com
    But don't I have to add the files to source control to do that?
  • brcowan
    brcowan
    763 Posts

    RE:Re: RE:Re: How to ignore files in ClearCase?

    ‏2007-01-12T15:39:48Z  
    The -none rule in the Config Spec does work on Windows as well. Add this
    rule to a file, say as follows

    element file.txt -none

    And refresh your Clearcase Explorer. The file is no longer visible. But
    when you do a "ct ls" from the command line, you only see the annotation
    as "no version selected" which is exactly what the -none rule does !!!
    -----Original Message-----
    From: cciug-bounces@lists.ca.ibm.com
    mailto:cciug-bounces@lists.ca.ibm.com On Behalf Of ButtDyno
    Sent: Friday, 12 January, 2007 05:52
    To: cciug@lists.ca.ibm.com
    Subject: cciug Re: RE:Re: How to ignore files in ClearCase?

    > I don't think -none works under Windows

    Lovely.

    So I guess I'm doing ls -r -view_only and passing it through grep.

    $4200 per license and I still need a free tool to accomplish something
    that CVS and SVN realized a long time ago was incredibly important...
    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com

    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com
    Don't forget that you can version directories too. Thus, if the
    currently-in-development version of the project doesn't use a given set of
    files, and will never use them again, use cleartool rmname (or the DELETE
    key in the ClearCase explorer) to delete those files. The files will be
    removed from current and future versions of the directory, and you won't
    lose the ability to access the files to build prior versions of the
    project (maintenance work).

    ======================================================================
    Brian Cowan
    Advisory Software Engineer
    ClearCase Customer Advocacy Group (CAG)
    Rational Software
    IBM Software Group
    81 Hartwell Ave
    Lexington, MA

    Phone: 1.781.372.3580
    Outside of US: +1-770-858-5079
    E-mail: sw_support@us.ibm.com
    Web: http://www.ibm.com/software/rational/support/

    Please be sure to update your PMR using ESR at
    http://www-306.ibm.com/software/support/probsub.html or cc all
    correspondence to sw_support@us.ibm.com to be sure your PMR is updated in
    case I am not available.

    "Vasisht, Jayanth S" <jayanth.s.vasisht@intel.com>
    Sent by: cciug-bounces@lists.ca.ibm.com
    01/12/2007 05:16 AM

    To
    <cciug@lists.ca.ibm.com>
    cc

    Subject
    RE: cciug Re: RE:Re: How to ignore files in ClearCase?
    The -none rule in the Config Spec does work on Windows as well. Add this
    rule to a file, say as follows

    element file.txt -none

    And refresh your Clearcase Explorer. The file is no longer visible. But
    when you do a "ct ls" from the command line, you only see the annotation
    as "no version selected" which is exactly what the -none rule does !!!
    -----Original Message-----
    From: cciug-bounces@lists.ca.ibm.com
    mailto:cciug-bounces@lists.ca.ibm.com On Behalf Of ButtDyno
    Sent: Friday, 12 January, 2007 05:52
    To: cciug@lists.ca.ibm.com
    Subject: cciug Re: RE:Re: How to ignore files in ClearCase?

    > I don't think -none works under Windows

    Lovely.

    So I guess I'm doing ls -r -view_only and passing it through grep.

    $4200 per license and I still need a free tool to accomplish something
    that CVS and SVN realized a long time ago was incredibly important...
    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com

    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com

    _______________________________________________
    cciug mailing list
    cciug@lists.ca.ibm.com
    Unsubscribe:cciug-leave@lists.ca.ibm.com
  • SystemAdmin
    SystemAdmin
    47283 Posts

    Re: How to ignore files in ClearCase?

    ‏2007-01-12T19:16:53Z  
    Oh, and FWIW, to view view-private files I'm doing the

    "ls -r -view_only" thing since it's a snapshot and lsprivate doesn't work.

    John
    I guess that you have to combine "cleartool ls -r -view_only" with Unix command, such as "grep -v .class"