[darcs-users] TortoiseDarcs and Darcs 2 Hashed Repos
daveroundy at gmail.com
Thu Oct 9 16:57:58 UTC 2008
The root of the pristine filesystem is given in the first line of
_darcs/hashed_inventory, as in
Starting with inventory:
Then you just look at the file
which is probably gzipped, and it has contents such as:
which I think is pretty much self-explanatory. The timestamp
associated with each file is just the timestamp of the file in
pristine.hashed that contains its contents.
On Thu, Oct 9, 2008 at 12:53 PM, Grant Husbands
<darcsusers at grant.x43.net> wrote:
> How feasible would it be for Darcs 2 to store a
> filename->(hash,timestamp) mapping in a text file somewhere in the
> _darcs folder? It would be very useful for TortoiseDarcs.
> We're willing to do the necessary work, but we would really appreciate
> some hints as to where's best to insert the necessary code and whether
> it's a good idea and would be accepted.
> We want to make TortoiseDarcs (the Windows Explorer darcs interface)
> work with Darcs 2 Hashed-format repos. This might sound familiar, as we
> aren't the first to ask questions in this area.
> Now, the current TortoiseDarcs supports the darcs 1 pristine cache,
> which has the advantage that we can trivially find the pristine copy of
> a file and can compare the modified time of it to the modified time of
> the associated file, to know whether a file might have changed.
> If it's at all possible, we want to avoid spawning a copy of Darcs each
> time we want a file-listing in Explorer, which is why it would be ideal
> for darcs to maintain the information in an easily-accessible file. The
> timestamp is so that TortoiseDarcs can compare that to the modification
> time of the file in the working directory and avoid having TortoiseDarcs
> read all of the files just to find out whether they're likely to have
> Is there a better way?
More information about the darcs-users