Changeset 33963 in project


Ignore:
Timestamp:
04/16/17 12:24:40 (5 weeks ago)
Author:
sjamaan
Message:

svn-client: ensure uri is canonicalized before performing a checkout

Location:
release/4/svn-client/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • release/4/svn-client/trunk/svn-client.scm

    r32360 r33963  
    4141  apr-pool-ptr
    4242  make-apr-pool)
    43 
    44 (define svn-pool-create
    45   (foreign-lambda apr-pool-type "svn_pool_create" apr-pool-type))
    4643
    4744;;; Hashes
     
    274271  set_creds_for_next_command(user, pass);
    275272
    276   err = svn_client_checkout3(&revnum, url, path, &peg_revision,
     273  char const *canonical_url = svn_uri_canonicalize(url, tmp_pool);
     274  err = svn_client_checkout3(&revnum, canonical_url, path, &peg_revision,
    277275                             rev, depth, FALSE, FALSE, svn_ctx, tmp_pool);
    278276  svn_pool_destroy(tmp_pool);
  • release/4/svn-client/trunk/tests/run.scm

    r32358 r33963  
    2929      0 (svn-checkout repo-uri checkout-dir svn-opt-revision-head #t user pass))
    3030
    31 (test "Make another checkout of revision 0"
    32       0 (svn-checkout repo-uri checkout-dir2 svn-opt-revision-head #t user pass))
     31(test "Make another checkout of revision 0, using a non-canonicalized uri"
     32      0 (svn-checkout (conc repo-uri "/") checkout-dir2 svn-opt-revision-head #t user pass))
    3333
    3434(test-group "initial state"
Note: See TracChangeset for help on using the changeset viewer.