From: Johannes Schindelin Date: Tue, 09 Jan 2007 13:51:36 GMT Subject: Re: Pushing into a repository with working directory? Message-ID: In-Reply-To: <45A35D30.3070305@op5.se> Hi, On Tue, 9 Jan 2007, Andreas Ericsson wrote: > Shawn O. Pearce wrote: > > > > Pushing into the current branch of a repository with a working > > directory probably shouldn't be allowed by default as users probably > > don't want to do that. > > > I do this all the time. I develop on my laptop and send changes to a > testserver where I check out the revision I just pushed to the working > directory attached to it. This is still possible. I also do it all the time. Only I do not update the _current_ branch, but a throwaway one. > Since we can determine if there's a working directory or not, why not > just allow the fast-forward case if the working directory is clean and > update the working directory for the user? Because maybe that user could be working on them right now? The behaviour is safe as is. Ciao, Dscho