gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnu-arch-users] write-through commit and archive names


From: Aaron Bentley
Subject: [Gnu-arch-users] write-through commit and archive names
Date: Fri, 09 Apr 2004 11:49:33 -0400
User-agent: Mozilla Thunderbird 0.5 (X11/20040306)

Hi all,

I've implemented a first pass at write-through commits. If you try to commit to a mirror, it looks for the mirror's source, and tries to commit to that instead. It doesn't attempt to update the mirror.

The brave can find it here:
address@hidden/tlasrc--writethrough--0--patch-1
The only testing it's had is that it has been used to commit itself, and

This is a baby-steps approach, making sure write-through works properly for one command, rather than implementing a new type of archive, and having to fix everything at once.

Half the work was changing old code to use the official name of the archive where appropriate. Each registered archive has two names, which may or may not differ.

Official name: The name of the archive as specified at creation time, reflected in =meta-info/name and arch->official_name

Registered name: The name of the archive as specified at registration time, reflected in ~/.arch-params/=locations/ and arch->name

Until now, these have been the same for writeable archives, so the distinction didn't matter. But now, it's possible to commit address@hidden/tlasrc--writethrough--0--patch-1 to the archive address@hidden If there's an error, should it be like this:

Cannot write revision address@hidden/tlasrc--writethrough--0--patch-1

Or like this:
Cannot write revision address@hidden/tlasrc--writethrough--0--patch-1

Or like this:
Cannot write revision address@hidden/tlasrc--writethrough--0--patch-1
to archive address@hidden

?

Because often, we only have an archive name and a non-fully-qualified revision name to work with, and the third version is pretty clunky in the general case, anyhow.

Aaron




reply via email to

[Prev in Thread] Current Thread [Next in Thread]