Change prevprops in pre-commit

2014-09-08 Thread Sergey Azarkevich
Hello,

I see in pre-commit hook template that changing revisions properties in
transaction are allowed.
But I can't find way for it (I want change svn:author to more readable).

Is here way for this with svn, svnadmin, svnlook ... or other standard
tool? Or I should use Subversion API and write simple tool?

BR, Sergey Azarkevich


svn.exe crashed when output of 'log' command interrupted

2013-09-12 Thread Sergey Azarkevich
Reproduced on:

svn, version 1.8.4-dev (under development)
   compiled Aug 23 2013, 17:30:38 on x86-microsoft-windows

svn, version 1.8.3 (r1516576)
   compiled Aug 27 2013, 22:13:03 on x86-microsoft-windows

svn, version 1.8.0 (r1490375)
   compiled Jun 18 2013, 13:38:49 on x86/x86_64-microsoft-windows6.1.7601

Windows + cygwin.

Steps:

svn.exe log | less

show first N log entries. Then press 'q' for exit. svn.exe application
crashed.

Same crash for
svn.exe log | more


Crashed in apr\memory\unix\apr_pools.c line 681:

active = pool-active;

pool parameter not initialized:
pool = 0x3b0f363b552b0a7f {parent=??? child=??? sibling=??? ...}

Call stack:

 libapr_tsvn.dll!apr_palloc(apr_pool_t * pool, unsigned __int64 in_size)
Line 681 C
  libsvn_tsvn.dll!make_error_internal(int apr_err, svn_error_t * child)
Line 118 C
  libsvn_tsvn.dll!svn_error__trace(const char * file, long line,
svn_error_t * err) Line 245 C
  libsvn_tsvn.dll!expat_response_handler(serf_request_t * request,
serf_bucket_t * response, void * baton, apr_pool_t * scratch_pool) Line 2634
C
  libsvn_tsvn.dll!handle_response(serf_request_t * request, serf_bucket_t *
response, svn_ra_serf__handler_t * handler, int * serf_status, apr_pool_t *
scratch_pool) Line 2122 C
  libsvn_tsvn.dll!handle_response_cb(serf_request_t * request,
serf_bucket_t * response, void * baton, apr_pool_t * scratch_pool) Line 2155
C
  libsvn_tsvn.dll!handle_response(serf_request_t * request, apr_pool_t *
pool) Line 941 C
  libsvn_tsvn.dll!read_from_connection(serf_connection_t * conn) Line 1127 C
  libsvn_tsvn.dll!serf__process_connection(serf_connection_t * conn, short
events) Line 1248 C
  libsvn_tsvn.dll!serf_event_trigger(serf_context_t * s, void * serf_baton,
const apr_pollfd_t * desc) Line 227 C
  libsvn_tsvn.dll!serf_context_run(serf_context_t * ctx, int duration,
apr_pool_t * pool) Line 294 C
  libsvn_tsvn.dll!svn_ra_serf__context_run_wait(int * done,
svn_ra_serf__session_t * sess, apr_pool_t * scratch_pool) Line 819 C
  libsvn_tsvn.dll!svn_ra_serf__context_run_one(svn_ra_serf__handler_t *
handler, apr_pool_t * scratch_pool) Line 889 C
  libsvn_tsvn.dll!svn_ra_serf__get_log(svn_ra_session_t * ra_session, const
apr_array_header_t * paths, long start, long end, int limit, int
discover_changed_paths, int strict_node_history, int
include_merged_revisions, const apr_array_header_t * revprops, svn_error_t
* (void *, svn_log_entry_t *, apr_pool_t *) * receiver, void *
receiver_baton, apr_pool_t * pool) Line 595 C
  libsvn_tsvn.dll!svn_ra_get_log2(svn_ra_session_t * session, const
apr_array_header_t * paths, long start, long end, int limit, int
discover_changed_paths, int strict_node_history, int
include_merged_revisions, const apr_array_header_t * revprops, svn_error_t
* (void *, svn_log_entry_t *, apr_pool_t *) * receiver, void *
receiver_baton, apr_pool_t * pool) Line 910 C
  libsvn_tsvn.dll!run_ra_get_log(apr_array_header_t * revision_ranges,
apr_array_header_t * paths, apr_array_header_t * log_segments,
svn_client__pathrev_t * actual_loc, svn_ra_session_t * ra_session, const
apr_array_header_t * targets, int limit, int discover_changed_paths, int
strict_node_history, int include_merged_revisions, const apr_array_header_t
* revprops, svn_error_t * (void *, svn_log_entry_t *, apr_pool_t *) *
real_receiver, void * real_receiver_baton, svn_client_ctx_t * ctx,
apr_pool_t * scratch_pool) Line 782 C
  libsvn_tsvn.dll!svn_client_log5(const apr_array_header_t * targets, const
svn_opt_revision_t * peg_revision, const apr_array_header_t *
opt_rev_ranges, int limit, int discover_changed_paths, int
strict_node_history, int include_merged_revisions, const apr_array_header_t
* revprops, svn_error_t * (void *, svn_log_entry_t *, apr_pool_t *) *
real_receiver, void * real_receiver_baton, svn_client_ctx_t * ctx,
apr_pool_t * pool) Line 894 C
  svn.exe!svn_cl__log(apr_getopt_t * os, void * baton, apr_pool_t * pool)
Line 868 C
  svn.exe!sub_main(int argc, const char * * argv, apr_pool_t * pool) Line
2878 C
  svn.exe!main(int argc, const char * * argv) Line 2969 C
  svn.exe!__tmainCRTStartup() Line 536 C
  svn.exe!mainCRTStartup() Line 377 C


I also has minidump, but it is 60MB. I can send it by request.


Update/Revert doesn't restore missed files

2013-08-01 Thread Sergey Azarkevich
I have working copy in which some files and directories missed: present on
server but absent locally. Update, revert doesn't restore them. Also it
doesn't look like sparse.
Problem was resolved via clean checkout, so I only report about it and not
look for solution.

--
C:\temp\svn-test\solution1\proj1ls
App_Data  Bootstrapper.cs  proj1.csproj  Properties  Unity.config
 Web.config  Wse.config  classes


C:\temp\svn-test\solution1\proj1svn ls
App_Data/
App_GlobalResources/
App_Themes/
Bootstrapper.cs
[... 8 ...]

C:\temp\svn-test\solution1\proj1svn st



C:\temp\svn-test\solution1\proj1svn up
Updating '.':
At revision 24799.

C:\temp\svn-test\solution1\proj1svn revert . -R


C:\temp\svn-test\solution1\proj1svn up . --force
Updating '.':
At revision 24799.

C:\temp\svn-test\solution1\proj1svn up . --set-depth=infinity --force
Updating '.':
At revision 24799.

C:\temp\svn-test\solution1\proj1svn up . --depth=infinity --force
Updating '.':
At revision 24799.


C:\temp\svn-test\solution1\proj1svn info .
Path: .
Working Copy Root Path: C:\temp\svn-test
URL: https:///svn/GF/trunk/solution1/proj1
Relative URL: ^/trunk/solution1/proj1
Repository Root: https:///svn/GF
Repository UUID: 01c7c80d-d356-5740-a48b-b9b5f862b89e
Revision: 24799
Node Kind: directory
Schedule: normal
Last Changed Author: xxx
Last Changed Rev: 24488
Last Changed Date: 2013-07-19 11:27:37 +0300 (Пт, 19 июл 2013)


C:\temp\svn-test\solution1\proj1svn info App_Themes
svn: warning: W155010: The node
'C:\temp\svn-test\solution1\proj1\App_Themes' was not found.

svn: E29: Could not display info for all targets because some targets
don't exist

C:\temp\svn-test\solution1\proj1svn up App_Themes
Updating 'App_Themes':
AApp_Themes
AApp_Themes\default
Updated to revision 24799.

--

(some file names was changed)

Here you can see that App_GlobalResources, App_Themes (and many others)
absent locally. But eventually downloaded when it was specified explicitly.


I can't say, how it was reached, because it is not my working copy. I
observe next hustle actions:

0. Working copy was bind to already deleted branch.
Working copy has local modifications
Some solutions from wc was opened in Visual Studio (with addin
VisualSVN)
1. Try switch wc root to ^/trunk with TortoiseSVN. Abort in the middle.
Cleanup.
2. Try switch wc/solution1 to ^/trunk/solution1 with TortoiseSVN. (I recall
that svn start delete many files and folders, but not sure). Abort in the
middle. Cleanup.
3. Try exclude(sparse wc) some solutions from wc with TortoiseSVN. Not sure
if it was started at all. May be also aborted.

This was performed with TortoiseSVN linked with subversion:
svn, version 1.7.2 (r1207936)
   compiled Dec  6 2011, 16:02:36

4. Then I start analyze working copy. I upgrade WC to 1.8, problem
preserved. All tests above was executed with 1.8
svn, version 1.8.0 (r1490375)
   compiled Jun 18 2013, 13:38:49 on x86/x86_64-microsoft-windows6.1.7601

5. Do not digg in depth, but seems wc.db no not hold references to (for
example) App_Themes in table NODES

Ask me for details.