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

Re: svn commit: revision 133 - trunk/subversion/include trunk/subversion/libsvn_wc trunk/subversion/libsvn_client

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2001-09-21 21:16:45 CEST

sussman@tigris.org writes:

> Author: sussman
> Date: 2001-09-21 19:08 GMT
> New Revision: 133
>
> New mechanisms: 'svn status' now calls a function which adds
> update-information to the existing hash of of status structures.

So the main thrust of this change is the fact that svn_wc_status_t now
contains two new "repository" fields, and that 'svn status' is now
contacting the repository to fill them in.

('svn status' was already contacting the repository to get the head
revision, but now it's actually running a "dry-run" update to fill in
these new fields.)

Of course, this info isn't being printed yet. I'm not going to
implement any new UI things just yet. :-) But here's some sample
output, created by screwing around:

% svn st
_ 1045 [_ ] ( 1056) ./Newbies.pdf
_ 1045 [_ ] ( 1056) ./advice.txt
_ 1045 [_ ] ( 1056) ./advice.txt~
_ 1045 [M ] ( 1056) ./campaign1
_ 1045 [_ ] ( 1056) ./campaign1~
_ 1045 [M ] ( 1056) ./campaign2
_ 1045 [_ ] ( 1056) ./campaign2~
__ 1045 [M ] ( 1056) ./dan
_ 1045 [_ ] ( 1056) ./dan/CharacterGuide.pdf
_ 1045 [_ ] ( 1056) ./dan/character_proposal.txt
_ 1045 [_ ] ( 1056) ./dan/character_proposal.txt~
_ 1045 [_ ] ( 1056) ./dan/liljim.txt
_ 1045 [_ ] ( 1056) ./dan/liljim.txt~
_ 1045 [M ] ( 1056) ./dan/liltim.txt
_ 1045 [_ ] ( 1056) ./dan/liltim.txt~
_ 1045 [M ] ( 1056) ./faces.html
_ 1045 [_ ] ( 1056) ./faces.html~
_ 1045 [_ ] ( 1056) ./timetrak.pdf
_ 1045 [M ] ( 1056) ./war_ideas.txt

To see this output, you only need change one function in cmdline/status.c:

--- status.c Fri Sep 21 13:38:24 2001
+++ cool_status Fri Sep 21 13:38:16 2001
@@ -105,14 +105,22 @@
 svn_cl__print_status (svn_stringbuf_t *path, svn_wc_status_t *status)
 {
   svn_revnum_t entry_rev;
- char str_status[4];
+ char str_status[4], str_rstatus[4];
 
- /* Create either a one or two character status code */
+ /* Create either a one or two character status code for local mods. */
   generate_status_codes (str_status,
                          status->text_status,
                          status->prop_status,
                          status->entry->prop_time,
                          status->locked);
+
+ /* Create either a one or two character status code for repos mods. */
+ generate_status_codes (str_rstatus,
+ status->repos_text_status,
+ status->repos_prop_status,
+ 0,
+ FALSE);
+
   
   /* Grab the entry revision once, safely. */
   if (status->entry)
@@ -132,8 +140,8 @@
     printf ("%s %-6ld ( ? ) %s\n",
             str_status, entry_rev, path->data);
   else
- printf ("%s %-6ld (%6ld) %s\n",
- str_status, entry_rev, status->repos_rev, path->data);
+ printf ("%s %-6ld [%s] (%6ld) %s\n",
+ str_status, entry_rev, str_rstatus, status->repos_rev, path->data); }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:42 2006

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

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