applications implement file open/save.
In Windows API you can open a file, read to it, and optionally close it.
Multiple program can get a shared open of a file or programs can get an
exclusive open of a file. If you do an exclusive open and leave it open,
then the file is locked and windows won't let another program open it. This
is how Office does it's file open/save. It even allows the program to be
notified when the file is no longer locked, which is a very kewl feature not
present in most source control systems. However, most text editors,
including HomeSite, open a file, read to memory, and then close it. When
the save, then open, write, and close. They don't leave it open and thus it
can be modified by another program. AFAIK, there is no option to change
this behavior.
Sam
----------------------------------------------
Blog: http://www.rewindlife.com
Chart: http://www.blinex.com/products/charting
----------------------------------------------
-----Original Message-----
From: Gyrus [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 11:27 AM
To: CF-Talk
Subject: RE: "lite" source control for Homesite+ ?
At 15:50 15/10/2003 +0100, you wrote:
>Yep... you could do it several ways...though not truly in homesite.....All
>source control is is ensuring that two people cant edit the same file...so
>its a process of checking if the file is read-only before you go and make
>changes....
We thought of just manually changing files to read-only before editing
them, but of course this stops YOU from editing it as well. Duh. But I'm
not sure what you're saying here... a description of the basics of source
control software, not suggestions for "manual" source control?
>What source control does add is history and disaster recovery...in my
>opinion, even if you are working alone, source control should be used.
Homesite's backup systems and CD-Rs serve us well. A full "source control"
app seems silly when all we want is a notification when someone else has
the same file open.
We're on the same network. How does MS Office do it so effortlessly? Do
Word and Excel have a built-in CVS system?! Or is there just a bit of
Windows scripting that can replicate this? The more I look at it, the more
it seems odd that this basic little idea isn't built into Windows
drive/file sharing.
Bah.
Gyrus
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]