Mercurial: Globalnie Ignoruj Pliki

Wiem o .hgignore i jak Mogę ignorować pliki na podstawie projektu po projekcie. Chcę ignorować wszystkie repozytoria Mercurial.

Czy jest coś, co mogę włożyć .hgrc? Lub umieścić .hgignore w mojej ścieżce $HOME (próbowałem już, ale może zrobiłem coś nie tak).

Author: Martin Geisler, 2011-07-11

2 answers

Możesz dodać ścieżkę do pliku ignorowanego globalnego lub dla każdego użytkownika w [ui] Sekcja twojego globalnego / użytkownika hgrc lub Mercurial.ini:

[ui]
ignore = ~/.hgignore

W Systemie Windows:

[ui]
ignore = %USERPROFILE%\.hgignore
 97
Author: Joel B Fant,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2011-07-10 22:44:44

W powershell możesz dostać się do plików globalnych w ten sposób.

PS> notepad $env:userprofile/mercurial.ini
...
[ui]
ignore = %USERPROFILE%\.hgignore
...

PS> notepad $env:userprofile/.hgignore
/bin/
/obj/
 2
Author: uffe hellum,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2015-05-28 16:04:04