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

[PATCH] Have default log message use relative paths

From: Justin Erenkrantz <justin_at_erenkrantz.com>
Date: 2003-03-20 20:35:44 CET

The following patch changes the default log message to use relative paths
(corresponding to the log_baton's base_dir) rather than absolute paths.

So, the default log message would be:

--This line, and those below, will be ignored--

M spaz/file

instead of:

--This line, and those below, will be ignored--

M /foo/bar/bang/spaz/file

Any objections to applying this? I really, really hate having absolute paths
in the log message... -- justin

* subversion/clients/cmdline/util.c(svn_cl__get_log_message): Set path to
be relative to the log message baton's base_dir.

Index: subversion/clients/cmdline/util.c
===================================================================
--- subversion/clients/cmdline/util.c (revision 5398)
+++ subversion/clients/cmdline/util.c (working copy)
@@ -464,6 +464,11 @@
           else if (! *path)
             path = ".";

+ if (path && lmb->base_dir)
+ {
+ path = svn_path_is_child(lmb->base_dir, path, pool);
+ }
+
           if ((item->state_flags & SVN_CLIENT_COMMIT_ITEM_DELETE)
               && (item->state_flags & SVN_CLIENT_COMMIT_ITEM_ADD))
             text_mod = 'R';

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 20 20:36:28 2003

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.