Jump to content


Photo

How can I filter out directories and files I don't want to see ?

Filter

  • Please log in to reply
12 replies to this topic

#1 d98rolb

d98rolb

    Member

  • Members
  • PipPip
  • 19 posts

Posted 05 January 2012 - 09:55 AM

Hi, I have just begin to evaluate PlasticScm so excuse me if the answer to question may be obvious.

I have a set up a Workspace directory and I have a lot of files I don't want to see like exe-files and other temp files and directories.
How can I hide them in the Items View ?

I have tried to delete them and then choose "Do not delete on disk", but the only thing that happened is that the files is marked as Private/Ignored.

So how can I permanently hide those files without delete them from disk ?

Regards
Roland Bengtsson
Team Attracs

#2 Olaf Kober

Olaf Kober

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts
  • LocationAustria

Posted 05 January 2012 - 10:23 AM

Hi!

You can simply ignore those files via a special configuration file ignore.conf.

Take a look at the Plastic user manual chapter 2.2.1 Filtering Out Unwanted Objects with an Ignore File (http://www.plasticsc...n/userguide.pdf). The manual provides a great overview of all the concepts.

#3 carpediemevive

carpediemevive

    Advanced Member

  • Members
  • PipPipPip
  • 223 posts
  • LocationPlymouth, MA

Posted 05 January 2012 - 01:25 PM

There is also the cloaked.conf file which (if I'm not mistaken) allows you to specify files which are in source control already, but you want to ignore any changes to.

#4 d98rolb

d98rolb

    Member

  • Members
  • PipPip
  • 19 posts

Posted 05 January 2012 - 02:24 PM

Thanks, I will check that.

#5 d98rolb

d98rolb

    Member

  • Members
  • PipPip
  • 19 posts

Posted 09 January 2012 - 08:17 AM

I must have misunderstand something here.

When I filter out something in my opinion the rows is hided in the list.
But here the items is just marked as Private/Ignored, see the screendump.

So my question is, can I hide those rows ?

Regards

Roland Bengtsson

#6 Olaf Kober

Olaf Kober

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts
  • LocationAustria

Posted 09 January 2012 - 01:37 PM

In the Pending Changes view you have the Options button. There you can configure what the view/list is showing you.

For example, via ignore.conf you can define all your build output to be ignored. Most of the time you would not want to see those ignored files in the pending changes list. So uncheck Show ignored objects. But to clean up your workspace from build output, you can show ignored files and delete them easily. That's what I do regulary.

#7 manu

manu

    Advanced

  • Administrators
  • 2,724 posts

Posted 09 January 2012 - 04:19 PM

That's the useful part Olaf!

You can't remove/hide the ignored items from the Items view, but you can do it from the Pending Changes view... That is the really important one for working. (IMHO)

#8 d98rolb

d98rolb

    Member

  • Members
  • PipPip
  • 19 posts

Posted 10 January 2012 - 10:28 AM

Ok, that was an clarification. I still think it would be useful improvement to hide files from the Items view. After all I don't want to see a lot of temp-files, exe-files etc in that view.

/Roland

In the Pending Changes view you have the Options button. There you can configure what the view/list is showing you.

For example, via ignore.conf you can define all your build output to be ignored. Most of the time you would not want to see those ignored files in the pending changes list. So uncheck Show ignored objects. But to clean up your workspace from build output, you can show ignored files and delete them easily. That's what I do regulary.

That's the useful part Olaf!

You can't remove/hide the ignored items from the Items view, but you can do it from the Pending Changes view... That is the really important one for working. (IMHO)



#9 manu

manu

    Advanced

  • Administrators
  • 2,724 posts

Posted 10 January 2012 - 10:31 AM

yep, I see your point.

A new preference to hide the ignored items at the Items view would be great!

You can add your suggestion by clicking on the feedback button on the bottom of this page! (It's orange :P)

#10 d98rolb

d98rolb

    Member

  • Members
  • PipPip
  • 19 posts

Posted 11 January 2012 - 06:54 AM

Good, I just did that B)

#11 manu

manu

    Advanced

  • Administrators
  • 2,724 posts

Posted 11 January 2012 - 09:03 AM

Thanks! :)

#12 CG

CG

    Member

  • Members
  • PipPip
  • 25 posts

Posted 02 May 2012 - 02:14 AM

Why did you guys remove the documentation on excludes in the ignore file from the plastic 4 docs? Unless I'm just missing it (which is quite possible), there's nothing in there about using the "!". It's in the old docs: http://www.plasticsc...#_Toc266201367. Do the excludes still work? (As an aside, that's probably one of my biggest annoyances (along with not having the command line help match the command processing)...having to find undocumented things on the forums instead of having them documented in the product documentation....however the number of annoyances are far outweighed by the joys! :-) )

Have you ever thought about allowing regular expressions in ignore.conf files? Some ignore patterns may be more complex than a simple filename pattern would allow. I don't use it often in Mercurial, but I have used it and it's nice to have. Would love to see that it as an option in Plastic

#13 manu

manu

    Advanced

  • Administrators
  • 2,724 posts

Posted 02 May 2012 - 12:21 PM

Hi CG, I don't know why it's out of the documentation but the "!" is supported in 4.1. Something like this should work:
!$workspace/XlinkDef2/file.txt

Can you please add the regex support into the user voice system???





Also tagged with one or more of these keywords: Filter

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users