> -----Original Message----- > From: s...@apache.org [mailto:s...@apache.org] > Sent: maandag 8 augustus 2011 18:05 > To: comm...@subversion.apache.org > Subject: svn commit: r1155001 - in /subversion/trunk/subversion: > include/svn_wc.h libsvn_wc/info.c svn/info-cmd.c svn/schema/info.rnc > > Author: stsp > Date: Mon Aug 8 16:05:24 2011 > New Revision: 1155001 > > URL: http://svn.apache.org/viewvc?rev=1155001&view=rev > Log: > Show moved-to/moved-from information in 'svn info' output. > > * subversion/include/svn_wc.h > (svn_wc_info_t): New fields MOVED_FROM_RELPATH and > MOVED_TO_RELPATH. > > * subversion/svn/info-cmd.c > (print_info_xml, print_info): Show move information in wc info, if any. > > * subversion/svn/schema/info.rnc > (wc-info): Add moved-from and moved-to tags. > > * subversion/libsvn_wc/info.c > (svn_wc_info_dup): Dup the new fields. > (build_info_for_node): Obtain move information from DB and put it into > the returned wc-info structure. > > Modified: > subversion/trunk/subversion/include/svn_wc.h > subversion/trunk/subversion/libsvn_wc/info.c > subversion/trunk/subversion/svn/info-cmd.c > subversion/trunk/subversion/svn/schema/info.rnc > > Modified: subversion/trunk/subversion/include/svn_wc.h > URL: > http://svn.apache.org/viewvc/subversion/trunk/subversion/include/svn_wc > .h?rev=1155001&r1=1155000&r2=1155001&view=diff > ========================================================== > ==================== > --- subversion/trunk/subversion/include/svn_wc.h (original) > +++ subversion/trunk/subversion/include/svn_wc.h Mon Aug 8 16:05:24 > 2011 > @@ -3068,6 +3068,15 @@ typedef struct svn_wc_info_t > /** The local absolute path of the working copy root. */ > const char *wcroot_abspath; > > + /** The path the node was moved from, if it was moved here. Else NULL. > + * This path is relative to the working copy root. > + * @since New in 1.8. */ > + const char *moved_from_relpath; > + > + /** The path the node was moved to, if it was moved away. Else NULL. > + * This path is relative to the working copy root. > + * @since New in 1.8. */ > + const char *moved_to_relpath; > } svn_wc_info_t;
I think the api should just provide abspaths here, like we do in all new in 1.7+ wc apis. The client - in this case 'svn'- can then decide what to do with the path. Bert