This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 137610 - .hgignore is committed on the first commit
Summary: .hgignore is committed on the first commit
Status: REOPENED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-18 17:48 UTC by Mikhail Matveev
Modified: 2011-10-10 12:11 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Matveev 2008-06-18 17:48:27 UTC
1. Create a project.
2. Add several file to the project.
3. Create a Mercurial repository for this project.
4. In the Projects window, select the project name.
5. In the main menu, choose Versioning->Commit...
6. Press Commit in the appeared dialog.
Result: .hgignore file is committed. It shouldn't.
Comment 1 Tomas Stupka 2008-06-19 15:44:52 UTC
well, the .hgignore file is listed in the commit dialog and it is up to the user if he decides to commit it or not - click on the relevant cell in the 'comit action' 
column and choose exclude.


Comment 2 Mikhail Matveev 2008-06-19 16:00:48 UTC
I disagree. When user asks IDE to commit all project's files, he expects that it will commit files which are really part
of project. He may even don't know about .hgignore, and he will NEVER want .hgignore to be committed, because it makes
no sense. So it's up to IDE to exclude .hgignore from the list. In my opinion, at least it should have unchecked commit
flag, but the better choice would be not to show .hgignore in the list at all.
Comment 3 Tomas Stupka 2008-06-19 19:23:16 UTC
> he will NEVER want .hgignore to be committed, because it makes no sense.
definitely don't think so. It may easily happen that there is a wish and need to share the ignore settings as they may be of general use in the whole project 
infrastructure and believe me, many projects do - e.g. netbeans. Not giving the user a chance to commit the file would be wrong.

agree on the point that the file is easy to overlook in the commit dlg - we should reconsider a way how to made it more explicit if it has to be committed or 
not.