Question about auto-refresh and detecting manual edits to standins

Tessa Starkey testarkey at gmail.com
Mon Feb 8 10:30:25 CST 2010


Forgot to add the link to the  issue in question:
https://ucosp.fogbugz.com/default.asp?36#450.


On Mon, Feb 8, 2010 at 11:23 AM, Tessa Starkey <testarkey at gmail.com> wrote:

> Hello,
>
>  I'm a part of the group of students working on improvements to bfiles.
> Recently we were discussing how to detect manual modifications of the bfile
> stand-in files and a question arose. (Issue
>
> There are two different situations that would lead to the stand-in files
> not match the working copy:
>
>  1)  the stand-in hasn't been bfrefreshed since the working copy was edited
>  2) Someone opened the stand-in in editied it manually, or another program
> modified the stand-in
>
> The question is: How do we tell the difference?
> One possiblility is to store the last bfrefresh time for each file,
> possibly somewhere in the .hgbfiles directory, If the bfrefresh time  <
> mtime of the stand-in, then we know it has been modified.
>
>  Any opinion/suggestions on how to detect modifications of stand-ins?
>
> Thanks,
>
> - Tessa Starkey
>
>
> I am participating in the Undergraduate Capstone Open-source Project
> (UCOSP).You can learn more about UCOSP at
> http://ucosp.wordpress.com/about/
> For Mercurial-specific information see
> https://ucosp.fogbugz.com/default.asp?W1
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100208/f8f66df3/attachment.htm>


More information about the Mercurial-devel mailing list