LINUX.ORG.RU

#!/bin/sh
svn status | perl -ne 's/^\?\s+(\S.+)$/\1/g;chomp;system("svn add \"$_\"");'


Легче наверное так, ну или попробовать с ключом 'force' выполнить svn add.

hdclnr ()
Ответ на: комментарий от TERRANZ

4.2

vv@crusader ~/work/own/python/portage3/portage $ svn st 
?       Flash_Player
vv@crusader ~/work/own/python/portage3/portage $ tree Flash_Player/
Flash_Player/
└── AssetCache
    └── JH82A7GG
        ├── 1C04C61346A1FA3139A37D860ED92632AA13DECF.heu
        ├── 1C04C61346A1FA3139A37D860ED92632AA13DECF.swz
        ├── 1C74D7AC0B79B5975AF35EC0476A3613FA9317DA.heu
        ├── 1C74D7AC0B79B5975AF35EC0476A3613FA9317DA.swz
        ├── 22C5B7F88CBA5CB4E15DF3105E0D43964C518472.heu
        ├── 22C5B7F88CBA5CB4E15DF3105E0D43964C518472.swz
        ├── 381814F6F5270FFBB27E244D6138BC023AF911D5.heu
        ├── 381814F6F5270FFBB27E244D6138BC023AF911D5.swz
        ├── 440AE73B017A477382DEFF7C0DBE4896FED21079.heu
        ├── 440AE73B017A477382DEFF7C0DBE4896FED21079.swz
        ├── 6344DCC80A9A6A3676DCEA0C92C8C45EFD2F3220.heu
        ├── 6344DCC80A9A6A3676DCEA0C92C8C45EFD2F3220.swz
        ├── 6DDB94AE3365798230849FA0F931AC132FE417D1.heu
        ├── 6DDB94AE3365798230849FA0F931AC132FE417D1.swz
        ├── 7421C71F94DB4F028E7528B2D278F3FE4DC21273.heu
        ├── 7421C71F94DB4F028E7528B2D278F3FE4DC21273.swz
        ├── 871F12AF0853C06E4EB80A1CCAB295CEADBB817A.heu
        ├── 871F12AF0853C06E4EB80A1CCAB295CEADBB817A.swz
        ├── B02DEFB39F361A7F2CFF00FF37E8AE5F69BBD086.heu
        ├── B02DEFB39F361A7F2CFF00FF37E8AE5F69BBD086.swz
        ├── C3306B26751D6A80EB1FCB651912469AE18819AB.heu
        ├── C3306B26751D6A80EB1FCB651912469AE18819AB.swz
        ├── cacheSize.txt
        ├── E4E7877A8240620F334A0B19069715ED843B26D4.heu
        └── E4E7877A8240620F334A0B19069715ED843B26D4.swz

2 directories, 25 files
vv@crusader ~/work/own/python/portage3/portage $ svn add Flash_Player/ --depth infinity
A         Flash_Player
A         Flash_Player/AssetCache
A         Flash_Player/AssetCache/JH82A7GG
A  (bin)  Flash_Player/AssetCache/JH82A7GG/440AE73B017A477382DEFF7C0DBE4896FED21079.swz
A  (bin)  Flash_Player/AssetCache/JH82A7GG/22C5B7F88CBA5CB4E15DF3105E0D43964C518472.swz
A  (bin)  Flash_Player/AssetCache/JH82A7GG/B02DEFB39F361A7F2CFF00FF37E8AE5F69BBD086.swz
A  (bin)  Flash_Player/AssetCache/JH82A7GG/1C04C61346A1FA3139A37D860ED92632AA13DECF.heu
A  (bin)  Flash_Player/AssetCache/JH82A7GG/C3306B26751D6A80EB1FCB651912469AE18819AB.heu
A  (bin)  Flash_Player/AssetCache/JH82A7GG/6344DCC80A9A6A3676DCEA0C92C8C45EFD2F3220.heu
A  (bin)  Flash_Player/AssetCache/JH82A7GG/B02DEFB39F361A7F2CFF00FF37E8AE5F69BBD086.heu
A         Flash_Player/AssetCache/JH82A7GG/cacheSize.txt
A  (bin)  Flash_Player/AssetCache/JH82A7GG/7421C71F94DB4F028E7528B2D278F3FE4DC21273.heu
A  (bin)  Flash_Player/AssetCache/JH82A7GG/7421C71F94DB4F028E7528B2D278F3FE4DC21273.swz
A  (bin)  Flash_Player/AssetCache/JH82A7GG/6DDB94AE3365798230849FA0F931AC132FE417D1.heu
A  (bin)  Flash_Player/AssetCache/JH82A7GG/E4E7877A8240620F334A0B19069715ED843B26D4.swz
A  (bin)  Flash_Player/AssetCache/JH82A7GG/E4E7877A8240620F334A0B19069715ED843B26D4.heu
A  (bin)  Flash_Player/AssetCache/JH82A7GG/6DDB94AE3365798230849FA0F931AC132FE417D1.swz
A  (bin)  Flash_Player/AssetCache/JH82A7GG/1C74D7AC0B79B5975AF35EC0476A3613FA9317DA.swz
A  (bin)  Flash_Player/AssetCache/JH82A7GG/871F12AF0853C06E4EB80A1CCAB295CEADBB817A.swz
A  (bin)  Flash_Player/AssetCache/JH82A7GG/381814F6F5270FFBB27E244D6138BC023AF911D5.swz
A  (bin)  Flash_Player/AssetCache/JH82A7GG/381814F6F5270FFBB27E244D6138BC023AF911D5.heu
A  (bin)  Flash_Player/AssetCache/JH82A7GG/1C04C61346A1FA3139A37D860ED92632AA13DECF.swz
A  (bin)  Flash_Player/AssetCache/JH82A7GG/6344DCC80A9A6A3676DCEA0C92C8C45EFD2F3220.swz
A  (bin)  Flash_Player/AssetCache/JH82A7GG/C3306B26751D6A80EB1FCB651912469AE18819AB.swz
A  (bin)  Flash_Player/AssetCache/JH82A7GG/22C5B7F88CBA5CB4E15DF3105E0D43964C518472.heu
A  (bin)  Flash_Player/AssetCache/JH82A7GG/1C74D7AC0B79B5975AF35EC0476A3613FA9317DA.heu
A  (bin)  Flash_Player/AssetCache/JH82A7GG/440AE73B017A477382DEFF7C0DBE4896FED21079.heu
A  (bin)  Flash_Player/AssetCache/JH82A7GG/871F12AF0853C06E4EB80A1CCAB295CEADBB817A.heu
vv@crusader ~/work/own/python/portage3/portage $ 

ZuBB ★★★★★ ()
Ответ на: комментарий от andreyu

Ну, например вот этим:

vir@zavulon ~/Other/ufs $ svn add *
svn: warning: 'apps' is already under version control
svn: warning: 'cache' is already under version control
svn: warning: 'config' is already under version control
svn: warning: 'data' is already under version control
svn: warning: 'lib' is already under version control
svn: warning: 'log' is already under version control
svn: warning: 'plugins' is already under version control
svn: warning: 'symfony' is already under version control
svn: warning: 'test' is already under version control
svn: warning: 'web' is already under version control

VirRaa ★★★ ()
Ответ на: комментарий от VirRaa
vir@zavulon ~/Other/ufs $ svn add *
svn: warning: 'apps' is already under version control
svn: warning: 'cache' is already under version control
svn: warning: 'config' is already under version control
svn: warning: 'data' is already under version control
svn: warning: 'lib' is already under version control
svn: warning: 'log' is already under version control
svn: warning: 'plugins' is already under version control
svn: warning: 'symfony' is already under version control
svn: warning: 'test' is already under version control
svn: warning: 'web' is already under version control

Вас удивляет нежелание системы контроля версий добавлять уже добавленные файлы?

Кроме того существует параметр --force

andreyu ★★★★★ ()
Ответ на: комментарий от andreyu

> Кроме того существует параметр --force

Про него-то я и спрашивал =)

VirRaa ★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.