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

Re: Cannot commit files that I've renamed.

From: Nico Kadel-Garcia <nkadel_at_comcast.net>
Date: 2006-03-23 13:23:58 CET

Alf Lacis wrote:
> Hi,
> I used Tortoise SVN to 'Tortoise Rename':
> move_long.c to srt_state_m.c, and
> move_long.h to srt_state_m.h
>
> I then used Subversion from a cygwin|bash command line to check in my
> eight subproject repository changes. Some output, snipped to show
> highlights, is shown below.
>
> alacis@AIS-PC95 /cygdrive/d/firmware
> $ ./svn_update.sh ; ./svn_commit.sh <<<< this commits eight
> subprojects
> + svn update
> At revision 2247.
> + cd libs_all
> + svn update
> <SNIP>
> Sending bcr.h
> Sending doxygen/Doxyfile
> Adding (bin) doxygen/help.chm
> Sending global.h
> Sending main.c
> Deleting move_long.c <<<< this was Tortoise
> Renamed to srt_state_m.c
> Deleting move_long.h <<<< this was Tortoise
> Renamed to srt_state_m.h
> Sending parser_body_local.i
> Sending parser_head_local.h
> Sending parser_table_local.i
> Sending srt.hwp
> Adding srt_state_m.c <<<< commit failed on
> this file.
> svn: Commit failed (details follow):
> svn: Couldn't determine absolute path of
> 'D:/CompanyData/ProjDev/svn/PSPS' alacis@AIS-PC95 /cygdrive/d/firmware
> $
>
> I could only fix this by 'Tortoise Revert' on these two files, then
> 'Tortoise Deleting' them, and 'Tortoise Add'ing them.
>
> Then doing a Subversion commit worked OK.
>
> Should the original 'Tortoise Rename' have worked?
> What should I do in the future?

I think the issue is that the path name in TortoiseSVN is something like
"D:\CompanyData\ProjDev\svn\PSPS", while the CygWin path is something like
"D:/CompanyData/ProjDev/svn/PSPS". The filename handling for CygWin is
always an issue, as is the handling of end-of-line characters.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 23 13:25:30 2006

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