Changeset 33976 in project


Ignore:
Timestamp:
04/16/17 14:35:26 (8 months ago)
Author:
sjamaan
Message:

svn-client: Allow relative root path to be passed in for svn-diff

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

Legend:

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

    r33974 r33976  
    323323                              (svn-opt-revision-type rev1)
    324324                              (svn-opt-revision-type rev2)
     325                              (c-string rel_path)
    325326                              (svn-depth depth)
    326327                              (c-string user) (c-string pass))
     
    342343
    343344  err = svn_client_diff6(diff_opts, path, rev1, path, rev2,
    344                          NULL, depth, FALSE, TRUE, TRUE, FALSE,
     345                         rel_path, depth, FALSE, TRUE, TRUE, FALSE,
    345346                         FALSE, FALSE, FALSE, FALSE, APR_LOCALE_CHARSET,
    346347                         outstream, NULL, NULL, svn_ctx, tmp_pool);
  • release/4/svn-client/trunk/tests/run.scm

    r33974 r33976  
    102102                              svn-opt-revision-head
    103103                              svn-opt-revision-working
     104                              (svn-file "testdir")
    104105                              #t user pass))
    105106         (diff (with-input-from-file diff-file read-lines)))
    106107    (delete-file* diff-file)
     108    (test "relative to testdir" "Index: bar" (car diff))
    107109    (test "Unified context diff file contents"
    108110          '("@@ -1 +1 @@"
     
    114116                              svn-opt-revision-head
    115117                              svn-opt-revision-working
    116                               #t user pass))
     118                              (svn-file "testdir") #t user pass))
    117119         (diff (with-input-from-file diff-file read-lines)))
    118120    (delete-file* diff-file)
     
    132134                              (make-svn-opt-revision-number (sub1 rev))
    133135                              (make-svn-opt-revision-number rev)
    134                               #t user pass))
     136                              (svn-file "") #t user pass))
    135137         (diff (with-input-from-file diff-file read-lines)))
    136138    (test "revision just committed is 3" 3 rev)
    137139    (delete-file* diff-file)
     140    (test "relative to root" "Index: testdir/bar" (car diff))
    138141    (test "Unified context diff file contents of revision just committed"
    139142          '("@@ -1 +1 @@"
Note: See TracChangeset for help on using the changeset viewer.