Symlink kind changed to file on windows
Paul Harris
harris.pc at gmail.com
Fri Nov 20 14:15:55 GMT 2009
Hi,
I have a project that includes a Ruby on Rails website. I checked the
website plus the rails directories in on Linux, and all is well.
I checked it out in Windows Vista, and I have win32symlink installed, so in
cygwin, the symlinks actually work. I don't use them in windows (I do
other things in the project unrelated to rails), but they work.
However, bzr 1.18.1, and now 2.0.2 (I just upgraded) keeps insisting that
the symlinks have been modified... "kind changed" symlink => File. If I
check them in, it converts them into a completely useless file.
Heres what I see... I have a branch that looks like this
branch/
branch/website
branch/website/vendor/rails/railties/bin/ (some files in here)
branch/website/script --> vendor/rails/railties/bin/
dos> dir website\script
etc etc
File Not Found
dos> type website\script
!<symlink>vendor/rails/railties/bin/
dos> bzr status
modified:
website/script@
dos> bzr diff website/script
=== modified symlink 'website/script'
=== target changed u'vendor/rails/railties/bin/' =>
u'vendor/rails/railties/bin/'
dos> bzr diff | gvim - (strip out the relevant bit)
=== modified symlink 'website/script'
=== target was u'vendor/rails/railties/bin/'
Binary files website/script 1970-01-01 00:00:00 +0000 and
website/script 2009-02-13
01:07:38 +0000 differ
If I revert the files, they still show as modified.
If I bzr branch to a whole new working directory, the files still show as
modified.
On linux, the file looks like this:
lrwxrwxrwx 1 paul paul 26 2009-11-20 21:51 script ->
vendor/rails/railties/bin/
I checked in the modified symlinks on windows, and then pushed the branch to
a linux system. Now the file looks like this:
-rw-r--r-- 1 paul paul 37 2009-11-20 21:51 script
and if I cat it:
$ cat website/script
!<symlink>vendor/rails/railties/bin/$
(the dollar at the end is the prompt - ie the prompt doesn't appear on the
next line, no newline in the file)
Now I want to merge a patch on my windows system, but I can't commit a
partial merge. (aka Selected-file commit of merges is not supported yet:
files src)
So I guess I have to merge FROM windows INTO linux, and then pull from linux
back to windows. Very very very annoying and error-prone.
please help, whats wrong?
thanks,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20091120/e1ecfa55/attachment.htm
More information about the bazaar
mailing list