Nickolai
Nickolai

Reputation: 1748

Force svn update after commit

Somewhat related to https://serverfault.com/questions/380286/svn-info-shows-old-revision-as-the-current-revision, how can I force SVN to update my working copy immediately after I've committed it? Essentially, I'd like my svn info to always be current, since I attach that information to my executables when I send them out.

Upvotes: 1

Views: 790

Answers (1)

Lazy Badger
Lazy Badger

Reputation: 97365

You can not "force" svn up after svn ci. But you can

  • Use always svn ci && svn up as shell-alias
  • Always commit from WC-root, not from deep subdirectory (avoid mixed-WC)
  • Use not output of svn info|svninfo on deploy, but results of subwcrev|svnrev

Upvotes: 1

Related Questions