Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 127180 - duplicate items added to .hgignore
duplicate items added to .hgignore
Status: RESOLVED FIXED
Product: versioncontrol
Classification: Unclassified
Component: Mercurial
6.x
All All
: P3 (vote)
: TBD
Assigned To: issues@versioncontrol
issues@versioncontrol
:
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo