Bug: ignoring files

Jeff Sipek jeffpc at optonline.net
Wed Aug 24 21:55:25 CDT 2005


If a file is ignored by .hgignore, you can't add it to the repo, which
in my opinion is a bug.

Running latest hg (9344f5dd4488).

Here's what happens, when I add '\.jpg$' to .hgignore:

$ hg init foo
$ cd foo/
$ ls -a
.  ..  .hg
$ vi .hgignore    # added '\.jpg$'
$ hg status
? .hgignore
$ hg add .hgignore
$ hg commit
2 files to edit
$ touch foo.jpg
$ ls -l
total 0
-rw-r--r--  1 jeffpc users 0 Aug 24 22:30 foo.jpg
$ hg status
$ hg add foo.jpg
$ hg status       # no output
$


Jeff.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.selenic.com/pipermail/mercurial/attachments/20050824/fbcf22dd/attachment.pgp


More information about the Mercurial mailing list