Subversion: Unterschied zwischen den Versionen
Aus SchnallIchNet
Cbs (Diskussion | Beiträge) (→externals (remote - without local working copy)) |
Cbs (Diskussion | Beiträge) (→externals (on working copy)) |
||
Zeile 8: | Zeile 8: | ||
# <pre>https://svn.some.repo.anywhere/repo/blub/bla/branches/1.8.0-stable NAME</pre> creates a directory '.../myProject/someDIR/NAME' inside my repo<br/>which points to 'https://svn.some.repo.anywhere/repo/blub/bla/branches/1.8.0-stable' | # <pre>https://svn.some.repo.anywhere/repo/blub/bla/branches/1.8.0-stable NAME</pre> creates a directory '.../myProject/someDIR/NAME' inside my repo<br/>which points to 'https://svn.some.repo.anywhere/repo/blub/bla/branches/1.8.0-stable' | ||
− | ==externals (on working copy)== | + | == 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: <br/> | ||
+ | # ./LocalDirectoryName --> with content of https://svn.bla.domain/repo/something | ||
+ | # ./OtherDirectoryName --> with content of https://svn.bla.domain/repo/something_else | ||
svn propset svn:externals "LocalDirectoryName https://svn.bla.domain/repo/something" . | svn propset svn:externals "LocalDirectoryName https://svn.bla.domain/repo/something" . | ||
Zeile 18: | Zeile 29: | ||
will create a link named 'LocalDirectoryName' inside the directory library | will create a link named 'LocalDirectoryName' inside the directory library | ||
− | |||
==executable bit== | ==executable bit== |
Aktuelle Version vom 16. Januar 2014, 11:32 Uhr
Inhaltsverzeichnis
externals (remote - without local working copy)
svn propedit svn:externals https://svn.bla.domain/repo/somerepo/branches/myProject/someDIR
- this will open your editor ($SVN_EDITOR, e.g. vim) and shows the current externals in directory 'someDIR'.
- the externals, if any, will have the syntax:
https://svn.some.repo.anywhere/repo/blub/bla/branches/1.8.0-stable NAME
- if there isn't any external, feel free to create one, by typing a line with the syntax above...
-
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:
- ./LocalDirectoryName --> with content of https://svn.bla.domain/repo/something
- ./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
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