[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Implementing the Lock->Edit->Unlock cycle

From: Andreas Krey <a.krey_at_gmx.de>
Date: Thu, 29 Sep 2016 20:02:42 +0200

On Thu, 29 Sep 2016 14:58:44 +0000, Anton Shepelev wrote:
...
> Is there no protection against an oblivious users's
> losing a day's work merely because he forgot to up-
> date his working copy, which was obsolete beyond
> merging?

He will learn it, lucky eddie style.

If you plan doing massive work in a module, you
need to talk to the other people working in the
same module anyway, as they would be annoyed if
you locked the file, and they can't do planned work.

Ideally the other people do their commits in small
increments as well, and you could go and try to
merge their work to see if that works or starts
to fall apart. (Even more ideally you'd get
notifications if other people commit changes
that happen in parallel to yours, and will need
to be merged.)

...
> I should like svn to update the local copy automati-
> cally once the lock is issued, but it seems impossi-
> ble via server-side hooks, for they don't have ac-
> cess the user's woking copy where the file must be
> updated.

If you want such things you should visit clearcase,
with their basically-mandatory central file server.

...
> time it is locked? As I understand, it requires
> customization of the svn client so that whenever
> asked to unlock a file it shall update it also. Is
> it possible?

No. SVN clients may not even be online at that time.
Also I would seriously *not* want files to change
in my workspace e.g under a test run.

...
> Maybe, but I am under peer pressure, and TFS is the
> alternative, and I think we still need it at least
> for "binary" files such as MS Word documents.

Actually, we use svn for such purposes (non-mergable files),
and git for regular sources. Unfortunately I'm not the
svn side admin, so I can't tell how they do the locking.

Andreas

-- 
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800
Received on 2016-09-29 20:02:54 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.