[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn properties display bugs

From: cpengr <cp.engr0_at_gmail.com>
Date: Fri, 9 Jan 2015 13:27:07 -0500

Hello,

I believe I have found (possibly) two bugs in TortoiseSVN, relating to the
display of inherited properties. (For svn:ignore and svn:global-ignores, at
least.) I can imagine they may both be caused by following the same default
behavior.

I'm using the latest TortoiseSVN (1.8.10, Build 26129 - 64 bit,
2014/12/17), on Windows 7 Pro x64 w/ SP1.

For this message, I'll use the following abbreviations:

 - "RCF": right-click a file (or subdir), choose TortoiseSVN...
 - "RCD": right-click in the empty space of a folder or subfolder, choose
TortoiseSVN...
 - "Properties dialog": launched by doing RCD -> Properties.

BACKGROUND:

As I understand it:

Bg1. When you RCF -> Add to ignore list, it modifies the svn properties of
the folder containing the file (or subdir).
Bg1.a. Recursively -> svn:global-ignores.
Bg1.b. Not recursively -> svn:ignore.

Bg2. Of those two properties, only svn:global-ignores should ever be
inherited from a parent dir.

Note, for both bugs, it's only the display that's incorrect. The properties
are working correctly, AFAICT.

ISSUES:

Note, for both issues, I got the same results by either of the following
methods:
 - RCF -> Add to ignore list
 - Adding properties manually via RCD -> Properties -> New... -> Other.

BUG 1: Inherited svn:global-ignores in a child dir's Properties dialog
disappear once a new svn:global-ignores has been set in that dir.

Steps to reproduce:

1. Create a new repo, with dir d1.
2. Create files:
ig
d1/ig
d1/d1_ig

3. From the root dir,
3.a. RCF (ig) -> Add to ignore (recursively).
3.b. RCD -> Properties. (Shows svn:global-ignores with value "ig", not
inherited - as expected.)

4. From d1,
4.a. RCD -> Properties. (Shows svn:global-ignores with value "ig",
inherited - as expected.)
4.b. RCF (d1_ig) -> Add to ignore (recursively).
4.c. RCD -> Properties. (BUG: Shows *only* svn:global-ignores with value
"d1_ig", inherited. Inherited "ig" disappeared.)

Note that for grandchild dirs, I would expect to see global-ignores
inherited from parents and grandparents, etc...

BUG 2: Properties dialog for a child dir shows svn:ignore inheriting from
parent dirs, unless/until it is set in the child dir. (I think this
property is never inherited, and so should never display as such.)

Steps to reproduce:

1. Create a new repo, with dir d1.
2. Create files:
ig
d1/ig
d1/d1_ig

3. From the root dir,
3.a. RCF (ig) -> Add to ignore (*not* recursively).
3.b. RCD -> Properties. (Shows svn:ignore with value "ig", not inherited -
as expected.)

4. From d1,
4.a. RCD -> Properties. (BUG: Shows svn:ignore with value "ig", inherited.
See attached pic. I think this should never happen.)
4.b. RCF (d1_ig) -> Add to ignore (*not* recursively).
4.c. RCD -> Properties. (Shows only svn:ignore with value "d1_ig" - as
expected.)

Regards,

cpengr

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3093937

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-01-09 19:52:04 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.