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 127180 - duplicate items added to .hgignore
Summary: duplicate items added to .hgignore
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-12 10:29 UTC by Patrick Keegan
Modified: 2008-02-13 16:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
main_work_66770_17ae6fe70cac-127180-dup-hgignore.patch (7.81 KB, text/plain)
2008-02-12 23:01 UTC, John Rice
Details
main_work_66773_07fc9e2fd198-127180-hgignore-reduceprompts-onadd.patch (3.76 KB, text/plain)
2008-02-13 15:53 UTC, John Rice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Keegan 2008-02-12 10:29:31 UTC
If you click "yes" when prompted after a clone to add entries to the .hgignore file, it adds entries even if they are
already in the version of the .hgignore file that has been pulled.
Comment 1 John Rice 2008-02-12 23:01:18 UTC
Created attachment 56560 [details]
main_work_66770_17ae6fe70cac-127180-dup-hgignore.patch
Comment 2 John Rice 2008-02-12 23:11:35 UTC
Should be fixed now, if the file existed we had just been appending them, we now check the file contents before adding
any of the ignore patterns if they are not already there.

changeset:   67140:7d01fab7d873
user:        jrice@netbeans.org
date:        Tue Feb 12 22:57:52 2008 +0000
files:       mercurial/src/org/netbeans/modules/mercurial/ui/clone/CloneAction.java
mercurial/src/org/netbeans/modules/mercurial/util/Bundle.properties
mercurial/src/org/netbeans/modules/mercurial/util/HgUtils.java
description:
#127180: duplicate items added to .hgignore m- corrects this only adding ignore entries to an existing .hgignore file if
required.
Comment 3 John Rice 2008-02-13 15:53:54 UTC
Created attachment 56617 [details]
main_work_66773_07fc9e2fd198-127180-hgignore-reduceprompts-onadd.patch
Comment 4 John Rice 2008-02-13 16:02:19 UTC
Just wanted to reduce the amount of times the user is prompted to add the patterns to ignore. Now only get prompted if
there is an existing .hgignore file and it does not contain at least one of the patterns.

changeset:   67305:f12f9bec3596
tag:         tip
user:        jrice@netbeans.org
date:        Wed Feb 13 15:50:52 2008 +0000
files:       mercurial/src/org/netbeans/modules/mercurial/util/Bundle.properties
mercurial/src/org/netbeans/modules/mercurial/util/HgUtils.java
description:
#127180: multiple entries added into .hgirnore on clone - only prompt user to add if they have an existing .hgirnore and
it does not have these entries

p