This is not perfect but seams work:

fsvs st -f new | sed -r 's/^[^ ]+ +[^ ]+ +(.+)$/"\1"/' | xargs rm
for ((i=0;i<5;i++))
do
   fsvs st -f new | sed -r 's/^[^ ]+ +[^ ]+ +(.+)$/"\1"/' | xargs rmdir
done
fsvs revert -R .



2009/8/19 Davide <[email protected]>:
> Quiet resolved.
>
> spaces in names have problems
> empty dir aren't removed
>
> I investigate furter ...
>
>
> 2009/8/19 Philipp Marek <[email protected]>:
>> Hello Davide!
>>
>>> often I like to revert new files in the file system because I don't need 
>>> them.
>>> but fsvs revert will revert only file under control.
>> Yes, I'm not sure whether removing new files implicitly would be a good idea.
>>
>> Maybe I'll do an option for revert for that.
>>
>>> How to remove all the new files?
>>    fsvs st -f new
>> gives you a list ... and with 1.2.0 you can use
>>    fsvs st -f new -o verbose=none,name
>> to get only the filenames.
>>
>> Piping that to "xargs rm" might do the trick - if you have no newlines in 
>> your filenames
>> ...
>>
>>
>> Regards,
>>
>> Phil
>>
>>
>> --
>> Versioning your /etc, /home or even your whole installation?
>>             Try fsvs (fsvs.tigris.org)!
>>
>>
>

------------------------------------------------------
http://fsvs.tigris.org/ds/viewMessage.do?dsForumId=3928&dsMessageId=2385374

To unsubscribe from this discussion, e-mail: 
[[email protected]].

Reply via email to