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

Subversion svn client doesn't show branch when checking in

From: Andrew Haley <aph_at_redhat.com>
Date: 2006-03-01 15:10:31 CET

Forgive me if this is a FAQ, but I haven't been able to find it in
issue tracker or the lists.

When I do a commit, svn doesn't tell me which branch I'm committing
to. So, when I check in the log, I have no way to know which files
I'm about to overwrite. This is a regression from CVS, which does
tell me which branch I'm committing to.

'svn diff' doesn't show the paths either, which I find annoying but is
something I can live with. The lack of the full path in the commit
message isn't.

I've made a patch to svn (attached) which makes it do something
better, but as it seems so obviously wrong at the moment I'm quite
mystified why it works in this way.

Andrew.

Index: subversion/svn/util.c
===================================================================
*** subversion/svn/util.c (revision 18657)
--- subversion/svn/util.c (working copy)
***************
*** 525,538 ****
            svn_client_commit_item2_t *item
              = APR_ARRAY_IDX(commit_items, i, svn_client_commit_item2_t *);
! const char *path = item->path;
            char text_mod = '_', prop_mod = ' ', unlock = ' ';
  
            if (! path)
! path = item->url;
! else if (! *path)
! path = ".";
!
! if (path && lmb->base_dir)
! path = svn_path_is_child(lmb->base_dir, path, pool);
  
            /* If still no path, then just use current directory. */
--- 525,533 ----
            svn_client_commit_item2_t *item
              = APR_ARRAY_IDX(commit_items, i, svn_client_commit_item2_t *);
! const char *path = item->url;
            char text_mod = '_', prop_mod = ' ', unlock = ' ';
  
            if (! path)
! path = item->path;
  
            /* If still no path, then just use current directory. */

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 1 15:32:50 2006

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

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