directory status

View: New views
2 Messages — Rating Filter:   Alert me  

directory status

by Jason Tian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello:

I have a question about the status of directory.

I checked out a directory from svn on my local machine.

Then I made some changes within that directory, like change the content of a file and delete a file.

Finally, I called SVNStatusClient.doStatus(File file, boolean b) method to get the status of the directory,

but the status is normal.

I also get the status of changed or deleted file, status is "modfied" or "deleted".

To my understanding,if any file has been changed or deleted, the status of its parent directory shouldn't be "Normal".

Could anyone explain this for me?  Thank you.

Re: directory status

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Jason,

> To my understanding,if any file has been changed or deleted, the status of
> its parent directory shouldn't be "Normal".
Your understanding is not correct. Directory status changes only when
directory properties are changed, or when directory itself is scheduled
for addition (added) or deletion (deleted).

For instance, run "svn status -v directory" command from the command
line and you'll get files and directory statuses, later will be unchanged.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://sqljet.com/ - Java SQLite Library!

Jason Tian wrote:

> Hello:
>
> I have a question about the status of directory.
>
> I checked out a directory from svn on my local machine.
>
> Then I made some changes within that directory, like change the content of a
> file and delete a file.
>
> Finally, I called SVNStatusClient.doStatus(File file, boolean b) method to
> get the status of the directory,
>
> but the status is normal.
>
> I also get the status of changed or deleted file, status is "modfied" or
> "deleted".
>
> To my understanding,if any file has been changed or deleted, the status of
> its parent directory shouldn't be "Normal".
>
> Could anyone explain this for me?  Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...