Closed Bug 389826 Opened 14 years ago Closed 14 years ago
.hgignore improvements again
This patch switches to glob notation, which I think is a little more readable; adds comments; and eliminates all the remaining cruft from "hg status" except for one file: security/manager/.nss.checkout, which I didn't add because I don't know what creates it.
Attachment #274152 - Flags: review?(benjamin)
Comment on attachment 274152 [details] [diff] [review] new .hgignore I think the intent of the changes is fine, but I prefer regex syntax to glob.
Attachment #274152 - Flags: review?(benjamin) → review-
Glob syntax was designed especially for matching filenames. It's the syntax used by the shell and by Unix find. So when most people think about matching filenames, they think in globs. Glob is less powerful than regex, therefore better. - You don't have to remember to escape dots. - You don't have to remember to anchor patterns with ^$. - You don't have to write [^/]* to say "a single path segment". - You don't have to know the details of Python regexps, as opposed to grep regexps, Emacs regexps, etc. - So the globs are easier for the average guy to read and write, and mistakes are less likely. None of our current patterns require regex. But you can use glob and regex in the same .hgignore file, should the need arise.
Well, how about this then? :)
Assignee: nobody → jorendorff
Attachment #274152 - Attachment is obsolete: true
Attachment #280647 - Flags: review?(benjamin)
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Pushed changeset 45182e442e21 to mozilla-central.
You need to log in before you can comment on or make changes to this bug.