Re: subversion equivalent of 'cvs update -C'

2002-10-15 Thread Brian Nelson

Colin Watson [EMAIL PROTECTED] writes:

 On Mon, Oct 14, 2002 at 05:16:34PM -0700, Sean 'Shaleh' Perry wrote:
 On Monday 14 October 2002 17:11, Colin Watson wrote:
  On Mon, Oct 14, 2002 at 03:01:21PM -0700, Brian Nelson wrote:
   Does subversion have an equivalent to the command 'cvs update -C',
   i.e. overwrite locally modified files with the current ones from the
   repository?
 
  At least from experimentation and reading through the code, it appears
  not to. So far I've just been doing the old hack of removing the files
  and running 'svn update'. Perhaps file an issue at subversion.tigris.org
  to ask that 'svn update -f' do this?
 
 how annoying, I use that feature of cvs quite often.  nah that was a bad 
 idea, revert.

 'svn revert'

 (So yes, I guess lateral thinking leads to 'svn revert; svn update'.)

Yeah, that'll work.

 Damn shame it should be moving forward not removing useful features.

 I wouldn't be so quick to discount subversion. :) I keep much of my
 home directory in it, and it's behaving very nicely.

Me too.  It seems to be working well so far.  If nothing else, at least
it beats having all those annoying CVS directories lying around...

-- 
People said I was dumb, but I proved them!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: subversion equivalent of 'cvs update -C'

2002-10-15 Thread Colin Watson

On Mon, Oct 14, 2002 at 11:58:51PM -0700, Brian Nelson wrote:
 Colin Watson [EMAIL PROTECTED] writes:
  I wouldn't be so quick to discount subversion. :) I keep much of my
  home directory in it, and it's behaving very nicely.
 
 Me too.  It seems to be working well so far.  If nothing else, at least
 it beats having all those annoying CVS directories lying around...

What are you doing about partitioning public and private dotfiles? I'd
like to be able to check out public parts of my home directory (e.g.
.bashrc) onto any machine where I have an account, but private parts
(e.g. .fetchmailrc) only onto machines where I'm also root. So far I
haven't come up with a good way to do this, especially because symlinks
and Unix permissions aren't versioned yet.

The best I've come up with is a .hide directory for private things and a
(partially written) 'svnfix' script that sorts out symlinks and
permissions after each checkout based on some properties I set.

-- 
Colin Watson  [[EMAIL PROTECTED]]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: subversion equivalent of 'cvs update -C'

2002-10-15 Thread Brian Nelson

Colin Watson [EMAIL PROTECTED] writes:

 On Mon, Oct 14, 2002 at 11:58:51PM -0700, Brian Nelson wrote:
 Colin Watson [EMAIL PROTECTED] writes:
  I wouldn't be so quick to discount subversion. :) I keep much of my
  home directory in it, and it's behaving very nicely.
 
 Me too.  It seems to be working well so far.  If nothing else, at least
 it beats having all those annoying CVS directories lying around...

 What are you doing about partitioning public and private dotfiles? I'd
 like to be able to check out public parts of my home directory (e.g.
 .bashrc) onto any machine where I have an account, but private parts
 (e.g. .fetchmailrc) only onto machines where I'm also root. So far I
 haven't come up with a good way to do this, especially because symlinks
 and Unix permissions aren't versioned yet.

I haven't run into this problem yet.  So far for files that are
site-specific (like my .emacs file), I've been able to code them to
detect the environment and adjust accordingly.

 The best I've come up with is a .hide directory for private things and a
 (partially written) 'svnfix' script that sorts out symlinks and
 permissions after each checkout based on some properties I set.

I used to do something similar when I was using CVS for my home
directory.  Since I didn't want it tracking stuff directly in my $HOME,
I tucked it away in a subdirectory and used a script to take care of
symlinks and stuff.  It sucked.  :)

-- 
People said I was dumb, but I proved them!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




subversion equivalent of 'cvs update -C'

2002-10-14 Thread Brian Nelson

Does subversion have an equivalent to the command 'cvs update -C',
i.e. overwrite locally modified files with the current ones from the
repository?

-- 
People said I was dumb, but I proved them!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: subversion equivalent of 'cvs update -C'

2002-10-14 Thread Colin Watson

On Mon, Oct 14, 2002 at 03:01:21PM -0700, Brian Nelson wrote:
 Does subversion have an equivalent to the command 'cvs update -C',
 i.e. overwrite locally modified files with the current ones from the
 repository?

At least from experimentation and reading through the code, it appears
not to. So far I've just been doing the old hack of removing the files
and running 'svn update'. Perhaps file an issue at subversion.tigris.org
to ask that 'svn update -f' do this?

(svn deliberately doesn't have command-specific options, but -f is being
used for force so seems appropriate.)

-- 
Colin Watson  [[EMAIL PROTECTED]]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: subversion equivalent of 'cvs update -C'

2002-10-14 Thread Sean 'Shaleh' Perry

On Monday 14 October 2002 17:11, Colin Watson wrote:
 On Mon, Oct 14, 2002 at 03:01:21PM -0700, Brian Nelson wrote:
  Does subversion have an equivalent to the command 'cvs update -C',
  i.e. overwrite locally modified files with the current ones from the
  repository?

 At least from experimentation and reading through the code, it appears
 not to. So far I've just been doing the old hack of removing the files
 and running 'svn update'. Perhaps file an issue at subversion.tigris.org
 to ask that 'svn update -f' do this?


how annoying, I use that feature of cvs quite often.  nah that was a bad 
idea, revert.  Damn shame it should be moving forward not removing useful 
features.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: subversion equivalent of 'cvs update -C'

2002-10-14 Thread Colin Watson

On Mon, Oct 14, 2002 at 05:16:34PM -0700, Sean 'Shaleh' Perry wrote:
 On Monday 14 October 2002 17:11, Colin Watson wrote:
  On Mon, Oct 14, 2002 at 03:01:21PM -0700, Brian Nelson wrote:
   Does subversion have an equivalent to the command 'cvs update -C',
   i.e. overwrite locally modified files with the current ones from the
   repository?
 
  At least from experimentation and reading through the code, it appears
  not to. So far I've just been doing the old hack of removing the files
  and running 'svn update'. Perhaps file an issue at subversion.tigris.org
  to ask that 'svn update -f' do this?
 
 how annoying, I use that feature of cvs quite often.  nah that was a bad 
 idea, revert.

'svn revert'

(So yes, I guess lateral thinking leads to 'svn revert; svn update'.)

 Damn shame it should be moving forward not removing useful features.

I wouldn't be so quick to discount subversion. :) I keep much of my home
directory in it, and it's behaving very nicely.

-- 
Colin Watson  [[EMAIL PROTECTED]]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]