[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Was: Enhancement needed in svn status -u

From: Paul Burba <PaulB_at_softlanding.com>
Date: 2005-08-23 00:08:56 CEST

In response to this thread:
http://svn.haxx.se/dev/archive-2005-08/0257.shtml, here is my first
attempt at a patch to provide more detailed out of date information in
svn_wc_status2_t when using the -u option with svn status.

If anyone has some time to take a look at this I'd appreciate it.

One known problem with the patch: It doesn't pick up the last committed
author and date for a WC item that has been deleted in the repository. If
anyone has suggestions on this front I'd love to hear them.

Thanks,

Paul B.

[[[
Provide more complete server-side information about out of date items when
using svn status with -u option.

* subversion/include/svn_wc.h
  (svn_wc_status2_t): Add new fields to store the most recent revision,
author,
  and commit date for an out of date item, as well as its url and node
type.

* subversion/libsvn_repos/reporter.c
  (delta_dirs): Pass s_rev to b->editor->delete_entry so it has the last
    committed rev of the deleted item.

* subversion/libsvn_wc/status.c
  include svn_time.h
  (dir_baton, file_baton): Add new fields mirroring those in
svn_wc_status2_t.
  (assemble_status): Initialize new svn_wc_status2_t members.
  (make_dir_baton): Initialize new dir_baton members.
  (make_file_baton): Initialize new file_baton members.
  (copy_ood_info): New helper function.
  (delete_entry): Store readily available out of date info in appropriate
    svn_wc_status2_t structure in db->statii.
  (change_dir_prop, change_file_prop): Temporarily store out of date info
in
    dir_baton or file_baton respectively.
  (close_directory, close_file): If item is out of date, copy ood info
from
    dir_baton or file_baton respectively to the appropriate
svn_wc_status2_t
    structure in dir/file_baton->parent_baton->statii.
]]]

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________

Received on Tue Aug 23 08:08:56 2005

This is an archived mail posted to the Subclipse Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.