dirstate and .hgignore

Thomas Arendsen Hein thomas at intevation.de
Fri Jul 29 05:35:30 UTC 2005


* Matt Mackall <mpm at selenic.com> [20050729 00:21]:
> The plan is to make .hgignore default to regex but issue warnings for
> a release and then switch over to glob style as the default.

Does this really help?

If it warns, people will have to change it to re: or glob:, which
makes it ugly.

After the second change (defaulting to glob without warning) people
have to do a second change to make it nice again.

I propose an 'UPGRADING' document, which states such differences:

Upgrading to 0.7:

- .hgignore now defaults to glob patterns instead of regexp.
  (give some examples, e.g.  .*\.foo becomes *.foo etc.)

- Directories ending in .d, .i or .hg have to be renamed.
  (Recipe to check this, ask list to fix this or something)

Upgrading to 0.5:

- The repo layout changed.
  You'll need to run 'python convert-repo' in the top level of any
  repo you wish to convert. It should be pretty safe and backs up
  your old data in .hg/data-old, but making a backup is a good idea.

Thomas

-- 
Email: thomas at intevation.de
http://intevation.de/~thomas/



More information about the Mercurial mailing list