[Top][All Lists]

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

Re: [Gnu-arch-users] using sha1 as explicit id

From: Martin Pool
Subject: Re: [Gnu-arch-users] using sha1 as explicit id
Date: Fri, 30 Apr 2004 18:30:06 +1000
User-agent: Mutt/

On 28 Apr 2004, Aaron Bentley <address@hidden> wrote:
> Colin Walters wrote:
> >Hi,
> >
> >I was wondering - why not just use a SHA1 hash as the file identity for
> >explicit IDs?  That way if two people independently import the same
> >version of a project into arch, they would be able to apply patches from
> >one another, etc.
> But if you have two files with the same contents, won't you get 
> duplicate IDs?

You would.  

Perhaps a better way would be to use the initial path of the file as
an explicit id, so it's almost like names tagging that can later
support moves.  If two people imported a package using the same scheme
they could later merge.  However it could cause clashes at a later


reply via email to

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