hgignore and Netbeans behavior

Tony Zakula tonyzakula at gmail.com
Thu Jun 10 13:21:55 UTC 2010


Thank you for your reply.  Actually, I thought the hgignore file had
errors and struggled with changing that for a while, but it turns out
that I stepped on my own toes.  Being a total newbie, I followed some
of the beginning tutorials out there, but for an existing project.  In
the beginning, I did "hg add" and added everything.  I then wrote my
hgignore file and thought it would apply.  I did not realize, until
after some searching, that hgignore does not apply to files already
tracked.  So I did an "hg forget" on those files, and now everything
works as it should.  The other wrinkle I ran into with this though,
was that hg forget did not delete the files in my local working
directory.  However, when I pulled the changes to my production server
and did an update, I was quite surprised to see that 1200 files were
deleted!  I assumed that they would not be deleted.  It was not a big
deal, as I am using Java, and I simply did a build.  The app server
continued to run because those classes were already deployed.

Thanks,

Tony Z

On Wed, Jun 9, 2010 at 10:23 PM, Vinayak Mahadevan
<vinayak.mahadevan at gmail.com> wrote:
> On Wed, Jun 9, 2010 at 10:17 PM, Tony Zakula <tonyzakula at gmail.com> wrote:
>> I am struggling with hgignore.  I thought I had this working.  I had
>> manually set up an ignore file, and it seems to work fine from the
>> command line.  However, when I open a project in Netbeans, the files
>> are grayed out like they are ignored, but when I edit them, or do a
>> build, when I go to do a commit, they are put into a commit.  It seems
>> I read somewhere that if you do an "hg add" even if the file should be
>> ignored, it will be tracked.  Is that true?  Would I be better off
>> doing a "hg remove" on files I do not want tracked?
>>
>> Thanks,
>>
>> Tony Z
>
> I am a newbie myself with regard to mercurial. I have always add good
> experience with  .hgignore file. Can you please post your .hgignore
> file. There maybe some errors in the way it is written.
>
> Regards
> Vinayak
>
>
> --
> M. Vinayak
> Mobile: +91-9444883529
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>



More information about the Mercurial mailing list