Layout files not added to VCS

Answered

Idea 15 running on OSX, Android project.

When I create a new layout file (in res/layout) it does not get added to VCS, and the option to do so is greyed out. Other non-layout files I create get added (with a prompt.) On the command line "hg status" does not show the the new file with a ? and it's not listed when I do "hg files" but I can add it manually from the command line. 

What's going on with this? The screenshot below shows the newly created file test.xml, coloured as an excluded file. "Add to VCS" is not available for it.

 

2 comments
Comment actions Permalink

Can you share .hgignore file?

0
Comment actions Permalink

Aha!

In my .hgignore file I had this line:

out

which was matching the directory "layout/"

I have changed that to ^out/ and now it seems ok. It seems I'm still in SVN mode.

Thanks.

0

Please sign in to leave a comment.