svn_repos_fs_commit_txn error

2015-11-23 Thread Ren Wang
I got an error for creating a new directory to the repository. Strange to me
is that enve the code failed at the svn_repos_fs_commit_txn, but the
directory got created:

 

 

1)  Open repository, repos

2)  Get the latest revision, youngest

3)  Do the following:

svn_fs_txn_t *txn;

svn_fs_root_t *txn_root;

apr_pool_t *subpool = svn_pool_create(pool);

SVN_ERR(svn_repos_fs_begin_txn_for_commit(, , youngest_rev,
"UncleYinan", "log msg", subpool));

SVN_ERR(svn_fs_txn_root(_root, txn, subpool));

SVN_ERR(svn_fs_make_dir(txn_root, directoryPath, subpool));

SVN_ERR(svn_repos_fs_commit_txn(NULL, c->repos, _rev, txn,
subpool));-- failed here

 

>From the debugger call stack, the code failed at the
svn_fs_fs__open_cache():

 

svn_repos_fs_commit_txn

  svn_fs_commit_txn

 svn_fs_fs__commit

svn_fs_fs__open_rep_cache

 

 

Not sure if anyone saw this before? I must have missed something, but the
code logic is too much to understand.



svnlook changed doesn't include all of the files that are part of the commit

2015-11-23 Thread Hartleroad, James [IT]
Why doesn't svnlook changed show all of the files that are part of the commit?

A developer created a new directory with two files in a branch and the branch 
was merged into another branch.  When running svnlook it shows the directory 
was added, but not the included files.  If I run a svn diff with the summarize 
option it does list the files, so shouldn't svnlook include them too?

svnlook changed -r5596 /data/ans/repos/r4BN
_U  4BN/cmblds/1551-MID16.1.2.0/
A   
4BN/cmblds/1551-MID16.1.2.0/4BN_Envs/dev/ReleaseChanges/MID16.1.2_Release_Changes.txt
_U  4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/DB_Scripts/
A   4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/DB_Scripts/MID16.1.2/
_U  4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/LDAP_Scripts/
A   4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/LDAP_Scripts/MID16.1.2/


svn diff -r5595:5596 --summarize 
file:///data/ans/repos/r4BN
A   
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_Envs/dev/ReleaseChanges/MID16.1.2_Release_Changes.txt
A   
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/LDAP_Scripts/MID16.1.2/MID16.1.2_PJ019964_Epic363_Add_New_Programs.ldif
A   
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/LDAP_Scripts/MID16.1.2
M  
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/LDAP_Scripts
A   
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/DB_Scripts/MID16.1.2/MID16.1.2_PJ019964_Epic363_AUTO_ACTIVITY_WRKFLW_TASK_DML_Changes.sql
A   
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/DB_Scripts/MID16.1.2/MID16.1.2_PJ019964_Epic363_ADD_New_Programs_DML_Changes.sql
A   
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/DB_Scripts/MID16.1.2
M  
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/DB_Scripts
M  
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0





This e-mail may contain Sprint proprietary information intended for the sole 
use of the recipient(s). Any use by others is prohibited. If you are not the 
intended recipient, please contact the sender and delete all copies of the 
message.


Re: svn_repos_fs_commit_txn error

2015-11-23 Thread Branko Čibej
On 23.11.2015 21:01, Ren Wang wrote:
> I got an error for creating a new directory to the repository. Strange to me
> is that enve the code failed at the svn_repos_fs_commit_txn, but the
> directory got created:
>
>  
>
>  
>
> 1)  Open repository, repos
>
> 2)  Get the latest revision, youngest
>
> 3)  Do the following:
>
> svn_fs_txn_t *txn;
>
> svn_fs_root_t *txn_root;
>
> apr_pool_t *subpool = svn_pool_create(pool);
>
> SVN_ERR(svn_repos_fs_begin_txn_for_commit(, , youngest_rev,
> "UncleYinan", "log msg", subpool));
>
> SVN_ERR(svn_fs_txn_root(_root, txn, subpool));
>
> SVN_ERR(svn_fs_make_dir(txn_root, directoryPath, subpool));
>
> SVN_ERR(svn_repos_fs_commit_txn(NULL, c->repos, _rev, txn,
> subpool));-- failed here
>
>  
>
> From the debugger call stack, the code failed at the
> svn_fs_fs__open_cache():
>
>  
>
> svn_repos_fs_commit_txn
>
>   svn_fs_commit_txn
>
>  svn_fs_fs__commit
>
> svn_fs_fs__open_rep_cache
>
>  
>
>  
>
> Not sure if anyone saw this before? I must have missed something, but the
> code logic is too much to understand.


Can you please provide a complete, working program that shows your
problem? It's really, really hard to debug API issues from some
description of what the code does. Better to show the code instead.

-- Brane


RE: svnlook changed doesn't include all of the files that are part of the commit

2015-11-23 Thread Bert Huijben
Diff reports copies of directories as adds of the individual files, while
svnlook changed reports a copy on the root and only interesting changes
below that. Just like how 'svn status' would have reported it before the
commit.

 

Bert

 

From: Hartleroad, James [IT] [mailto:james.hartler...@sprint.com] 
Sent: maandag 23 november 2015 15:30
To: users@subversion.apache.org
Subject: svnlook changed doesn't include all of the files that are part of
the commit

 

Why doesn't svnlook changed show all of the files that are part of the
commit?

 

A developer created a new directory with two files in a branch and the
branch was merged into another branch.  When running svnlook it shows the
directory was added, but not the included files.  If I run a svn diff with
the summarize option it does list the files, so shouldn't svnlook include
them too?

 

svnlook changed -r5596 /data/ans/repos/r4BN

_U  4BN/cmblds/1551-MID16.1.2.0/

A
4BN/cmblds/1551-MID16.1.2.0/4BN_Envs/dev/ReleaseChanges/MID16.1.2_Release_Ch
anges.txt

_U  4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/DB_Scripts/

A   4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/DB_Scripts/MID16.1.2/

_U  4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/LDAP_Scripts/

A   4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/LDAP_Scripts/MID16.1.2/

 

 

svn diff -r5595:5596 --summarize file:///data/ans/repos/r4BN
 

A
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_Envs/dev/Release
Changes/MID16.1.2_Release_Changes.txt
 

A
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/LDAP
_Scripts/MID16.1.2/MID16.1.2_PJ019964_Epic363_Add_New_Programs.ldif
 

A
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/LDAP
_Scripts/MID16.1.2
 

M
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/LDAP
_Scripts
 

A
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/DB_S
cripts/MID16.1.2/MID16.1.2_PJ019964_Epic363_AUTO_ACTIVITY_WRKFLW_TASK_DML_Ch
anges.sql
 

A
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/DB_S
cripts/MID16.1.2/MID16.1.2_PJ019964_Epic363_ADD_New_Programs_DML_Changes.sql
 

A
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/DB_S
cripts/MID16.1.2
 

M
file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/DB_S
cripts
 

M  file:///data/ans/repos/r4BN/4BN/cmblds/1551-MID16.1.2.0
 

 

 

 

  _  


This e-mail may contain Sprint proprietary information intended for the sole
use of the recipient(s). Any use by others is prohibited. If you are not the
intended recipient, please contact the sender and delete all copies of the
message.



RE: svnlook changed doesn't include all of the files that are part of the commit

2015-11-23 Thread Hartleroad, James [IT]
Version 1.8.10

$ svn log -r 5596 -v file:///data/ans/repos/r4BN

r5596 | cmadmin | 2015-11-20 09:55:22 -0600 (Fri, 20 Nov 2015) | 15 lines
Changed paths:
   M /4BN/cmblds/1551-MID16.1.2.0
   A 
/4BN/cmblds/1551-MID16.1.2.0/4BN_Envs/dev/ReleaseChanges/MID16.1.2_Release_Changes.txt
 (from 
/4BN/releases/1551-MID16.1.2.0/4BN_Envs/dev/ReleaseChanges/MID16.1.2_Release_Changes.txt:5591)
   M /4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/DB_Scripts
   A /4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/DB_Scripts/MID16.1.2 (from 
/4BN/releases/1551-MID16.1.2.0/4BN_FAST_source/DB_Scripts/MID16.1.2:5589)
   M /4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/LDAP_Scripts
   A /4BN/cmblds/1551-MID16.1.2.0/4BN_FAST_source/LDAP_Scripts/MID16.1.2 (from 
/4BN/releases/1551-MID16.1.2.0/4BN_FAST_source/LDAP_Scripts/MID16.1.2:5590)

When I look at the svnbook.red-bean.com for 1.8, 
http://svnbook.red-bean.com/en/1.8/svn.ref.svnlook.c.changed.html, I got the 
impression that new files added in a new directory would be shown.

If I run svnlook on the initial change, not the merge than the files are shown.
$ svnlook changed -r5589 /data/ans/repos/r4BN
A   4BN/releases/1551-MID16.1.2.0/4BN_FAST_source/DB_Scripts/MID16.1.2/
A   
4BN/releases/1551-MID16.1.2.0/4BN_FAST_source/DB_Scripts/MID16.1.2/MID16.1.2_PJ019964_Epic363_ADD_New_Programs_DML_Changes.sql
A   
4BN/releases/1551-MID16.1.2.0/4BN_FAST_source/DB_Scripts/MID16.1.2/MID16.1.2_PJ019964_Epic363_AUTO_ACTIVITY_WRKFLW_TASK_DML_Changes.sql

Just trying to get a better understanding on why svnlook shows the files when 
reviewing one commit and not the other, when both commits "changed" what was in 
the repository, at least to the point that the files are copied to the new 
location.



-Original Message-
From: Ivan Zhakov [mailto:i...@visualsvn.com]
Sent: Monday, November 23, 2015 8:51 AM
To: Hartleroad, James [IT] 
Cc: users@subversion.apache.org
Subject: Re: svnlook changed doesn't include all of the files that are part of 
the commit

On 23 November 2015 at 17:29, Hartleroad, James [IT] 
 wrote:
> Why doesn’t svnlook changed show all of the files that are part of the
> commit?
>
> A developer created a new directory with two files in a branch and the
> branch was merged into another branch.  When running svnlook it shows
> the directory was added, but not the included files.  If I run a svn
> diff with the summarize option it does list the files, so shouldn’t
> svnlook include them too?
>
>
Thanks for problem report.

Could you please specify what version of Subversion do you use? Output of 'svn 
log -r 5596 -v file:///data/ans/repos/r4BN' (without log
message) will be also useful.


--
Ivan Zhakov



This e-mail may contain Sprint proprietary information intended for the sole 
use of the recipient(s). Any use by others is prohibited. If you are not the 
intended recipient, please contact the sender and delete all copies of the 
message.


Re: svnlook changed doesn't include all of the files that are part of the commit

2015-11-23 Thread Philip Martin
"Hartleroad, James [IT]"  writes:

> Just trying to get a better understanding on why svnlook shows the
> files when reviewing one commit and not the other, when both commits
> "changed" what was in the repository, at least to the point that the
> files are copied to the new location.

You might want to use --copy-into to see which changes are copies.  You
can use 'svnlook tree' to get the copied tree.  If a copy has additional
modification beyond a simple copy then 'svnlook changed' will show them.

Adds and copies are different and there is no single answer to the
question of what diff should show for copies.  The 'svnlook changed'
answer is often what is wanted, for example when making a tag:

  $ svnlook changed --copy-info -r1703885 apache-repo-fsfs
  A + subversion/tags/1.9.2/
  (from subversion/branches/1.9.x/:r1703836)
  U   subversion/tags/1.9.2/subversion/include/svn_version.h

For 'svn diff' there are options: --no-diff-added, --no-diff-deleted,
--show-copies-as-adds, etc. precisely because different things are
wanted in different cases.  'svnlook changed' doesn't have equivalent
options and that is partly because there is less demand for them.

-- 
Philip Martin
WANdisco