You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Jason M. Sullivan" <ja...@otii.com> on 2008/09/22 18:25:44 UTC

Difference between "changed" and "dirs-changed" in svnlook?

I'm hacking on the commit-access-control.pl ACL script to try and 
provide a slightly finer grain of control (does anyone know when ACLs 
will be implemented in the subversion, btw?), and I noticed the program 
does an "svnlook dirs-changed" before it does an "svnlook changed".

What I want to know is this: Is there any information in the 
"dirs-changed" output that doesn't show up in the "changed" output? As 
near as I can tell from a little playing around, there isn't. I can get 
all the changed information by just doing an "svnlook changed".

Am I right here? Thanks in advance.

PS: And if I am right, does anyone know why the example code does both?

-- 
Jason M. Sullivan
Optimal Technologies (US), Inc.
ASIC Design Engineer
[t] 919.459.3607
[f] 919.334.6519
jasons@otii.com <ma...@otii.com>
http://www.otii.com <http://www.otii.com/>

We optimize your world™

The information contained in or attached to this e-mail message is 
intended solely for the person to whom it is addressed, and may be 
privileged, confidential, and protected from disclosure. If you are not 
the intended recipient, your dissemination, distribution, copying, or 
use of the message, attachments, or any information contained therein in 
any way is strictly prohibited. If you think you have received this 
message in error, please notify the sender immediately by replying to 
this message, then delete this message and all attachments from your 
system. Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Difference between "changed" and "dirs-changed" in svnlook?

Posted by "Jason M. Sullivan" <ja...@otii.com>.
David Weintraub wrote:
> I can't answer the specific question, but I wrote my own version of
> the commit-access-control.pl hook, and I didn't use the dirs-changed
> subcommand of svnlook in my version.
>
> Maybe properties on directories don't show up with "svnlook changed"
> but will on "svnlook dirs-changed"? I'm guessing by the description,
> but I've used my script since SVN 1.2 came out, and never noticed any
> problems.
>   
I checked with property changes, and those show up in the "changed" 
output, too.  So I took the "dirs-changed" section out.
> BTW, if you're interested, I'll be glad to share my version. It allows
> for group definitions, property values checking, checking the commit
> comment (svn:log), and whether the file names are legal or not.
> (Prevents someone from creating a file "con.log" which is valid on
> Unix, but not on Windows). It also has a add-only mode which was the
> whole reason I wrote it. I wanted people to be able to make tags, but
> not modify them.
>
> I'm not sure what you mean by finer grain, but you can easily specify
> individual files with mine if you want to get that detailed.
>   
That would be awesome.  Thanks!  I mostly was talking about restricting 
users to only specific actions (read, write, create, delete).  
Regrettably, copy is just a create, and move is a create and delete, so 
those two more complicated actions can't be managed independently.  
That's why I'm hoping subsequent versions of subversion allow that level 
of control.
> Like the original, it uses a control file to set the permissioning and
> values to check. In fact, I wrote mine to keep it more or less
> compatible with the original version.
>   

Cool.  I break compatibility (at least with the access type), but pretty 
much retained everything else.   Thanks again!
-- 
Jason M. Sullivan
Optimal Technologies (US), Inc.
ASIC Design Engineer
[t] 919.459.3607
[f] 919.334.6519
jasons@otii.com <ma...@otii.com>
http://www.otii.com <http://www.otii.com/>

We optimize your world™

The information contained in or attached to this e-mail message is 
intended solely for the person to whom it is addressed, and may be 
privileged, confidential, and protected from disclosure. If you are not 
the intended recipient, your dissemination, distribution, copying, or 
use of the message, attachments, or any information contained therein in 
any way is strictly prohibited. If you think you have received this 
message in error, please notify the sender immediately by replying to 
this message, then delete this message and all attachments from your 
system. Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Difference between "changed" and "dirs-changed" in svnlook?

Posted by David Weintraub <qa...@gmail.com>.
I can't answer the specific question, but I wrote my own version of
the commit-access-control.pl hook, and I didn't use the dirs-changed
subcommand of svnlook in my version.

Maybe properties on directories don't show up with "svnlook changed"
but will on "svnlook dirs-changed"? I'm guessing by the description,
but I've used my script since SVN 1.2 came out, and never noticed any
problems.

BTW, if you're interested, I'll be glad to share my version. It allows
for group definitions, property values checking, checking the commit
comment (svn:log), and whether the file names are legal or not.
(Prevents someone from creating a file "con.log" which is valid on
Unix, but not on Windows). It also has a add-only mode which was the
whole reason I wrote it. I wanted people to be able to make tags, but
not modify them.

I'm not sure what you mean by finer grain, but you can easily specify
individual files with mine if you want to get that detailed.

Like the original, it uses a control file to set the permissioning and
values to check. In fact, I wrote mine to keep it more or less
compatible with the original version.

--
David Weintraub
qazwart@gmail.com



On Mon, Sep 22, 2008 at 2:25 PM, Jason M. Sullivan <ja...@otii.com> wrote:
>
> I'm hacking on the commit-access-control.pl ACL script to try and provide a
> slightly finer grain of control (does anyone know when ACLs will be
> implemented in the subversion, btw?), and I noticed the program does an
> "svnlook dirs-changed" before it does an "svnlook changed".
>
> What I want to know is this: Is there any information in the "dirs-changed"
> output that doesn't show up in the "changed" output? As near as I can tell
> from a little playing around, there isn't. I can get all the changed
> information by just doing an "svnlook changed".
>
> Am I right here? Thanks in advance.
>
> PS: And if I am right, does anyone know why the example code does both?
>
> --
> Jason M. Sullivan
> Optimal Technologies (US), Inc.
> ASIC Design Engineer
> [t] 919.459.3607
> [f] 919.334.6519
> jasons@otii.com <ma...@otii.com>
> http://www.otii.com <http://www.otii.com/>
>
> We optimize your world™
>
> The information contained in or attached to this e-mail message is intended
> solely for the person to whom it is addressed, and may be privileged,
> confidential, and protected from disclosure. If you are not the intended
> recipient, your dissemination, distribution, copying, or use of the message,
> attachments, or any information contained therein in any way is strictly
> prohibited. If you think you have received this message in error, please
> notify the sender immediately by replying to this message, then delete this
> message and all attachments from your system. Thank you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org