Ticket #25 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Put cache in .hg in the repository

Reported by: sheep Owned by: sheep
Priority: High Milestone: 1.4.0
Component: Hatta Wiki Version: unknown
Keywords: Cc:

Description

Hatta needs a cache directory for storing some files. Currently it just creates a "cache" subdirectory wherever you tell it, and uses that -- by default in the directory where Hatta is started, often inside the repository. This is bad, as this directory should not be tracked.

Hatta could attempt to add the cache directory to .hgignore, but that's too much magic to my taste.

I think the best option is to find one good place for keeping the cache. The .hg directory of the repository sound like such a place. It's never tracked and Hatta has to locate it anyways. It also has to exist for Hatta to work, so we can remove one configuration option this way.

Change History

comment:1 Changed 2 years ago by sheep

  • Status changed from new to closed
  • Resolution set to fixed

Hatta now defaults to .hg/hatta/cache for the cache directory, but it still can be changed with an option.

comment:2 Changed 2 years ago by sheep

fixed in 614dad3d8a07

Note: See TracTickets for help on using tickets.