Apply keyword expansion for existing files checked in

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
derekmcloughlin
Posts: 3
Joined: Thu Feb 17, 2005 8:57 am

Apply keyword expansion for existing files checked in

Post by derekmcloughlin » Thu Feb 17, 2005 9:02 am

Hi,

When we migrated from VSS to Vault, we forgot to switch on keyword expansion in Vault Admin.

I've checked the setting for enabling keyword expansion, but would now like to apply the expansion to all files in the repository.

I can't simply check out and then check-in, because Vault will only check-in if changes have been made.

Is there any way to force a check-in even if there are no changes? That way, the old values of the expanded keywords will be replaced by new values.

Derek.

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Thu Feb 17, 2005 9:45 am

Go to Tools->Options->Check In, and you can change the value under "Check In unchanged files" to check them in rather than undo the checkout.

mlippert
Posts: 252
Joined: Wed Oct 06, 2004 10:49 am
Location: Cambridge, MA

Post by mlippert » Thu Feb 17, 2005 10:39 am

That's interesting.

I made a concious decision to do the opposite. It made sense to me to made sure that keyword expansion was off during the VSS Import so that the files in Vault would exactly match the files as the existed in SourceSafe.

I then turned keyword expansion back on so that all new files changed and checked into Vault would have their keywords reflect their new status.

These are pretty much the only keywords we use though:

Code: Select all

//*   $Workfile:: StdAfx.h                                                   $
//*   $Revision:: 5                                                          $
//*     $Author:: Mlippert                                                   $
//*       $Date:: 4/01/04 12:27p                                             $
//* $NoKeywords::                                                            $

derekmcloughlin
Posts: 3
Joined: Thu Feb 17, 2005 8:57 am

Checkin unchanged files doesn't update the $Revision keyword

Post by derekmcloughlin » Thu Feb 17, 2005 10:53 am

Dan,

I tried your suggestion, but on the check-in, though the revision number went from 3 to 4 in a sample file, the $Revision keyword in the file didn't change.

Derek.

derekmcloughlin
Posts: 3
Joined: Thu Feb 17, 2005 8:57 am

I should mention that this is version 2.0.6

Post by derekmcloughlin » Thu Feb 17, 2005 10:54 am

I should mention that this is version 2.0.6

bfinney
Posts: 81
Joined: Fri Dec 17, 2004 11:27 am

Post by bfinney » Thu Feb 17, 2005 3:18 pm

Yeah... it looks like there's a bug where non-modified files' keywords are not updated. It's been logged, but for the short term, the only way around this is to make a trivial change to each affected file.

Sorry for the bad news.
Brody Finney
SourceGear QA Thug
"I break things for a living"

Locked