Subversion

Aus SchnallIchNet
Wechseln zu: Navigation, Suche

externals (remote - without local working copy)

svn propedit svn:externals https://svn.bla.domain/repo/somerepo/branches/myProject/someDIR
  1. this will open your editor ($SVN_EDITOR, e.g. vim) and shows the current externals in directory 'someDIR'.
  2. the externals, if any, will have the syntax:
    https://svn.some.repo.anywhere/repo/blub/bla/branches/1.8.0-stable NAME
  3. if there isn't any external, feel free to create one, by typing a line with the syntax above...
  4. https://svn.some.repo.anywhere/repo/blub/bla/branches/1.8.0-stable NAME
    creates a directory '.../myProject/someDIR/NAME' inside my repo
    which points to 'https://svn.some.repo.anywhere/repo/blub/bla/branches/1.8.0-stable'

externals (on working copy)

svn propedit svn:externals .

will will open an EDITOR where you can enter multiple rows inf the form of:

LocalDirectoryName https://svn.bla.domain/repo/something
OtherDirectoryName https://svn.bla.domain/repo/something_else

after writing contents and exiting the editor and an 'svn up' you will get 2 directories:

  1. ./LocalDirectoryName --> with content of https://svn.bla.domain/repo/something
  2. ./OtherDirectoryName --> with content of https://svn.bla.domain/repo/something_else
svn propset svn:externals "LocalDirectoryName https://svn.bla.domain/repo/something" .

will create a link named 'LocalDirectoryName' with the contents of https://svn.bla.domain/repo/something in then actual directory of your working copy
you can also do:

svn propset svn:externals "LocalDirectoryName https://svn.bla.domain/repo/something" library

will create a link named 'LocalDirectoryName' inside the directory library

executable bit

svn propset svn:executable ON someScript

will set the executable bit on files

Achtung.jpeg The executable bit is NOT set on the local file-system while check-out!
the umask has precedence


owner, group, perms

$ svn propset owner phil foo
$ svn propset group phil foo
$ svn propset mode 644 foo