You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Uwe Zeisberger <ze...@informatik.uni-freiburg.de> on 2004/02/19 19:05:03 UTC
path missing in file provided for typing the log message
Using subversion (version 0.37.0 (r8509) from the debian distribution) I
found an inconsistence:
After the following commands:
/tmp$ svnadmin create repo
/tmp$ svn co file:///tmp/repo wc
Checked out revision 0.
/tmp$ cd wc
/tmp/wc$ mkdir dir
/tmp/wc$ echo content > dir/file
/tmp/wc$ svn add dir
A dir
A dir/file
/tmp/wc$ svn ci -m ''
Adding dir
Adding dir/file
Transmitting file data .
Committed revision 1.
/tmp/wc$ echo "more content" >> dir/file
the file loaded in my editor, if I type 'svn ci' looks like this:
------>8-----
--This line, and those below, will be ignored--
M dir/file
------>8-----
It looks identical, if I check in with 'cd dir; svn ci'.
But using 'svn ci dir/file' results in:
------>8-----
--This line, and those below, will be ignored--
M file
------>8-----
I don't think this intentional, is it?
Regards
Uwe
--
Uwe Zeisberger
http://www.google.com/search?q=e+%5E+%28i+pi%29
Re: path missing in file provided for typing the log message
Posted by Ben Reser <be...@reser.org>.
On Thu, Feb 19, 2004 at 02:12:39PM -0600, Ben Collins-Sussman wrote:
> I'm not sure if it's intentional, but I'm not sure it's a bug.
>
> 'svn ci' causes the commit to be anchored at ".", and all committable
> targets are relative to that anchor. That's why you see 'dir/file'
> listed as a committable target.
>
> 'svn ci dir/file' causes the commit to be anchored at 'dir', and the
> committable target is just 'file', again, relative to the anchor.
It should also be noted that a subdirectory in a wc is a valid wc in and
of itself. You can pull it out throw it away and use it. As a result,
svn only knows as much of the path as you tell it.
--
Ben Reser <be...@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: path missing in file provided for typing the log message
Posted by Uwe Zeisberger <ze...@informatik.uni-freiburg.de>.
Ben Collins-Sussman wrote:
> 'svn ci' causes the commit to be anchored at ".", and all committable
> targets are relative to that anchor. That's why you see 'dir/file'
> listed as a committable target.
>
> 'svn ci dir/file' causes the commit to be anchored at 'dir', and the
> committable target is just 'file', again, relative to the anchor.
>
imho there are two consistent behaviours
1)
svn ci -> dir/file
cd dir; svn ci -> file
svn ci dir/file -> file
2)
svn ci -> dir/file
cd dir; svn ci -> dir/file
svn ci dir/file -> dir/file
but the reality is:
svn ci -> dir/file
cd dir; svn ci -> dir/file
svn ci dir/file -> file
Regards
Uwe
--
Uwe Zeisberger
http://www.google.com/search?q=half+a+cup+in+teaspoons
Re: path missing in file provided for typing the log message
Posted by Ben Collins-Sussman <su...@collab.net>.
On Thu, 2004-02-19 at 13:05, Uwe Zeisberger wrote:
>
> I don't think this intentional, is it?
I'm not sure if it's intentional, but I'm not sure it's a bug.
'svn ci' causes the commit to be anchored at ".", and all committable
targets are relative to that anchor. That's why you see 'dir/file'
listed as a committable target.
'svn ci dir/file' causes the commit to be anchored at 'dir', and the
committable target is just 'file', again, relative to the anchor.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org