You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Mark Kempster <ma...@kempster.org> on 2009/01/29 04:29:12 UTC

Why does svn think that file 'login' should be absent?

I'm trying to add a file named 'login' to a test directory in my
repository. I can add it just fine, and svn info seems to indicate (to
my inexpert eye) that things are ok:

$ svn info
Path: .
URL: http://projects.kempster.org/repos/binder/test
Repository Root: http://projects.kempster.org/repos/binder
Repository UUID: 7b2b5eff-65aa-436a-985b-ac804fb3f248
Revision: 61
Node Kind: directory
Schedule: normal
Last Changed Author: mark
Last Changed Rev: 61
Last Changed Date: 2009-01-28 23:31:12 -0500 (Wed, 28 Jan 2009)


There are a couple files in the 'test' directory there, with names like 'login'

$ svn ls http://projects.kempster.org/repos/binder/test
logi
login
login.xhtml


When I go to check out that directory, only the first file shows up in
the working copy

$ svn co http://projects.kempster.org/repos/binder/test
A    test/logi
Checked out revision 63.


test/.svn/entries seems to indicate that the files "login" and
"login.xhtml" are absent. The mailing list has a couple other
questions along this route, but no answers.

http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=660929
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&viewType=browseAll&dsMessageId=501439#messagefocus

So, a couple questions.

1. Where can I find out more about the 'absent' file status?
2. How can I make subversion un-absent a file?
3. What's special about the word / prefix 'login'?

Thanks much for any pointers.
Mark

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1066588

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Why does svn think that file 'login' should be absent?

Posted by Mark Kempster <ma...@kempster.org>.
Long story short, I'm the victim of my own stupidity. I have apache
managing trac and subversion on that machine. This little gem, which
comes from Trac's stock-standard config, seems to be the culprit:

  ## Trac and subversion authentication ##
  <LocationMatch "/[^/]+/login">
    AuthType Basic
    AuthName "Projects"
    AuthUserFile /etc/svn.htpasswd
    Require valid-user
  </LocationMatch>

Commenting that bit out seems to fix things.

Big thanks to Daniel and Ryan for the suggestions to noodle around
with the server config.

Just have to tighten up that regex, and I think all will be well.

- Mark




On Thu, Jan 29, 2009 at 12:57 AM, B Smith-Mannschott
<bs...@gmail.com> wrote:
> On Thu, Jan 29, 2009 at 5:29 AM, Mark Kempster <ma...@kempster.org> wrote:
>> I'm trying to add a file named 'login' to a test directory in my
>> repository. I can add it just fine, and svn info seems to indicate (to
>> my inexpert eye) that things are ok:
>>
>> $ svn info
>> Path: .
>> URL: http://projects.kempster.org/repos/binder/test
>> Repository Root: http://projects.kempster.org/repos/binder
>> Repository UUID: 7b2b5eff-65aa-436a-985b-ac804fb3f248
>> Revision: 61
>> Node Kind: directory
>> Schedule: normal
>> Last Changed Author: mark
>> Last Changed Rev: 61
>> Last Changed Date: 2009-01-28 23:31:12 -0500 (Wed, 28 Jan 2009)
>>
>>
>> There are a couple files in the 'test' directory there, with names like 'login'
>>
>> $ svn ls http://projects.kempster.org/repos/binder/test
>> logi
>> login
>> login.xhtml
>>
>>
>> When I go to check out that directory, only the first file shows up in
>> the working copy
>>
>> $ svn co http://projects.kempster.org/repos/binder/test
>> A    test/logi
>> Checked out revision 63.
>>
>>
>> test/.svn/entries seems to indicate that the files "login" and
>> "login.xhtml" are absent. The mailing list has a couple other
>> questions along this route, but no answers.
>>
>> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=660929
>> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&viewType=browseAll&dsMessageId=501439#messagefocus
>>
>> So, a couple questions.
>>
>> 1. Where can I find out more about the 'absent' file status?
>> 2. How can I make subversion un-absent a file?
>> 3. What's special about the word / prefix 'login'?
>>
>> Thanks much for any pointers.
>> Mark
>
> (1) did you commit login and login.html after adding them?
> (2) have you inadvertently told svn to ignore files matching the
> pattern "login*"?
>
> This could be in ~/.subversion/config
> smithma@wesley:~/w/files.svn$ grep ignore /home/smithma/.subversion/config
> ### Set global-ignores to a set of whitespace-delimited globs
> ### which Subversion will ignore in its 'status' output, and
> global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc
> *.pyo *.rej *~ .*.swp .DS_Store *.class #*# .#*
>
> Or through having the svn:ignore property set on your directory.
> $ svn pg svn:ignore .
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1069081

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Why does svn think that file 'login' should be absent?

Posted by B Smith-Mannschott <bs...@gmail.com>.
On Thu, Jan 29, 2009 at 5:29 AM, Mark Kempster <ma...@kempster.org> wrote:
> I'm trying to add a file named 'login' to a test directory in my
> repository. I can add it just fine, and svn info seems to indicate (to
> my inexpert eye) that things are ok:
>
> $ svn info
> Path: .
> URL: http://projects.kempster.org/repos/binder/test
> Repository Root: http://projects.kempster.org/repos/binder
> Repository UUID: 7b2b5eff-65aa-436a-985b-ac804fb3f248
> Revision: 61
> Node Kind: directory
> Schedule: normal
> Last Changed Author: mark
> Last Changed Rev: 61
> Last Changed Date: 2009-01-28 23:31:12 -0500 (Wed, 28 Jan 2009)
>
>
> There are a couple files in the 'test' directory there, with names like 'login'
>
> $ svn ls http://projects.kempster.org/repos/binder/test
> logi
> login
> login.xhtml
>
>
> When I go to check out that directory, only the first file shows up in
> the working copy
>
> $ svn co http://projects.kempster.org/repos/binder/test
> A    test/logi
> Checked out revision 63.
>
>
> test/.svn/entries seems to indicate that the files "login" and
> "login.xhtml" are absent. The mailing list has a couple other
> questions along this route, but no answers.
>
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=660929
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&viewType=browseAll&dsMessageId=501439#messagefocus
>
> So, a couple questions.
>
> 1. Where can I find out more about the 'absent' file status?
> 2. How can I make subversion un-absent a file?
> 3. What's special about the word / prefix 'login'?
>
> Thanks much for any pointers.
> Mark

(1) did you commit login and login.html after adding them?
(2) have you inadvertently told svn to ignore files matching the
pattern "login*"?

This could be in ~/.subversion/config
smithma@wesley:~/w/files.svn$ grep ignore /home/smithma/.subversion/config
### Set global-ignores to a set of whitespace-delimited globs
### which Subversion will ignore in its 'status' output, and
global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc
*.pyo *.rej *~ .*.swp .DS_Store *.class #*# .#*

Or through having the svn:ignore property set on your directory.
$ svn pg svn:ignore .

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1067021

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Why does svn think that file 'login' should be absent?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 28, 2009, at 22:29, Mark Kempster wrote:

> I'm trying to add a file named 'login' to a test directory in my
> repository. I can add it just fine, and svn info seems to indicate (to
> my inexpert eye) that things are ok:
>
> $ svn info
> Path: .
> URL: http://projects.kempster.org/repos/binder/test
> Repository Root: http://projects.kempster.org/repos/binder
> Repository UUID: 7b2b5eff-65aa-436a-985b-ac804fb3f248
> Revision: 61
> Node Kind: directory
> Schedule: normal
> Last Changed Author: mark
> Last Changed Rev: 61
> Last Changed Date: 2009-01-28 23:31:12 -0500 (Wed, 28 Jan 2009)
>
>
> There are a couple files in the 'test' directory there, with names  
> like 'login'
>
> $ svn ls http://projects.kempster.org/repos/binder/test
> logi
> login
> login.xhtml
>
>
> When I go to check out that directory, only the first file shows up in
> the working copy
>
> $ svn co http://projects.kempster.org/repos/binder/test
> A    test/logi
> Checked out revision 63.
>
>
> test/.svn/entries seems to indicate that the files "login" and
> "login.xhtml" are absent. The mailing list has a couple other
> questions along this route, but no answers.
>
> http://subversion.tigris.org/ds/viewMessage.do? 
> dsForumId=1065&dsMessageId=660929
> http://subversion.tigris.org/ds/viewMessage.do? 
> dsForumId=1065&viewType=browseAll&dsMessageId=501439#messagefocus
>
> So, a couple questions.
>
> 1. Where can I find out more about the 'absent' file status?
> 2. How can I make subversion un-absent a file?
> 3. What's special about the word / prefix 'login'?

 From Subversion's point of view, there shouldn't be anything special  
about a file with a name like "login." Your web server or proxy  
server may be configured to react specially to such a file, however;  
ask your server admin.

I'm not sure about this "absent" status, unless it's what "svn help  
status" describes as "!" (missing).

In the working copy where these files exist, what does "svn status -- 
no-ignore" say?

Did someone delete these files from the repository between revision  
61 and 63? Check "svn log -v -r 61:63"

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1067015

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Why does svn think that file 'login' should be absent?

Posted by Daniel Becroft <Da...@supercorp.com.au>.
> -----Original Message-----
> From: Mark Kempster [mailto:mark@kempster.org] 
> Sent: Thursday, January 29, 2009 2:29 PM
> To: users@subversion.tigris.org
> Subject: Why does svn think that file 'login' should be absent?
> 
> I'm trying to add a file named 'login' to a test directory in 
> my repository. I can add it just fine, and svn info seems to 
> indicate (to my inexpert eye) that things are ok:
> 
> $ svn info
> Path: .
> URL: http://projects.kempster.org/repos/binder/test
> Repository Root: http://projects.kempster.org/repos/binder
> Repository UUID: 7b2b5eff-65aa-436a-985b-ac804fb3f248
> Revision: 61
> Node Kind: directory
> Schedule: normal
> Last Changed Author: mark
> Last Changed Rev: 61
> Last Changed Date: 2009-01-28 23:31:12 -0500 (Wed, 28 Jan 2009)
> 
> 
> There are a couple files in the 'test' directory there, with 
> names like 'login'
> 
> $ svn ls http://projects.kempster.org/repos/binder/test
> logi
> login
> login.xhtml
> 
> 
> When I go to check out that directory, only the first file 
> shows up in the working copy
> 
> $ svn co http://projects.kempster.org/repos/binder/test
> A    test/logi
> Checked out revision 63.
> 
> 
> test/.svn/entries seems to indicate that the files "login" 
> and "login.xhtml" are absent. The mailing list has a couple 
> other questions along this route, but no answers.
> 
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&
> dsMessageId=660929
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&
> viewType=browseAll&dsMessageId=501439#messagefocus
> 
> So, a couple questions.
> 
> 1. Where can I find out more about the 'absent' file status?
> 2. How can I make subversion un-absent a file?
> 3. What's special about the word / prefix 'login'?
> 
> Thanks much for any pointers.
> Mark

Hi Mark,

I have never heard of anything like an 'absent' file status in SVN
before, but my 2c is that it might be related to http:// protocol,
rather than SVN itself. What HTTP library are you using (svn --version)?

Are you able to replicate this problem over svn:// rather than just
http://? I just attempted to replicate it using svn://, and it worked
fine.

What happens if you try updating the specific 'login' file in your
working copy?

Ie svn update test/login

Regards,
Daniel B.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1066785

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].