{"id":1551,"date":"2006-12-18T17:50:00","date_gmt":"2006-12-18T17:50:00","guid":{"rendered":"http:\/\/gleamynode.net\/articles\/1551\/setting-svnkeyword-property-automatically"},"modified":"2022-12-28T01:46:44","modified_gmt":"2022-12-27T16:46:44","slug":"setting-svnkeyword-property-automatically","status":"publish","type":"post","link":"https:\/\/vault.motd.kr\/wordpress\/posts\/1551\/setting-svnkeyword-property-automatically\/","title":{"rendered":"Setting svn:keyword Property Automatically"},"content":{"rendered":"\n
svn:keywords<\/tt> \ud504\ub85c\ud37c\ud2f0 \uc790\ub3d9\uc73c\ub85c \uc124\uc815\ud558\uae30<\/p>\n\n\n\n
Subclipse<\/a> dropped \u2018Add Keywords\u2026\u2019 dialog since 1.1.7. I couldn\u2019t understand why they got rid of such a useful feature, but now I figure out that it is because there\u2019s much easier way to do that. Yes, I don\u2019t need to forget to set the property or to make mistakes by applying the properties to wrong targets such as binary files; we got auto-props<\/tt>.<\/p>\n\n\n\n Subclipse<\/a> 1.1.7\ubd80\ud130\ub294 \u2018Add Keywords\u2026\u2019 \ub300\ud654\ucc3d\uc774 \uc5c6\uc5b4\uc84c\uc2b5\ub2c8\ub2e4. \uc544\uc8fc \uc720\uc6a9\ud55c \uae30\ub2a5\uc774\uc5c8\ub294\ub370 \uc65c \uc5c6\uc574\ub294\uc9c0 \uc774\ud574\uac00 \uc548\uac14\uc9c0\ub9cc, \ub354 \uc26c\uc6b4 \ubc29\ubc95\uc774 \uc788\uc5b4\uc11c\uc600\ub2e4\ub294 \uac83\uc744 \uc54c\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ud504\ub85c\ud37c\ud2f0 \uc124\uc815\ud558\ub294 \uac83\uc744 \uc78a\uc5b4\ubc84\ub9ac\uac70\ub098 \ubc14\uc774\ub108\ub9ac \uac19\uc740 \uc5c9\ub6b1\ud55c \ud30c\uc77c\uc5d0 \ud504\ub85c\ud37c\ud2f0\ub97c \uc801\uc6a9\ud558\ub294 \uc2e4\uc218\ub97c \ud560 \ud544\uc694\uac00 \uc5c6\uc5c8\ub358 \uac83\uc774\uc8e0. auto-props<\/tt>\uac00 \uc788\uc73c\ub2c8\uae4c\uc694.<\/p>\n\n\n\n auto-props<\/tt> configuration adds specified properties to the files that matches certain patterns automatically when svn add<\/tt> or svn import<\/tt> operation is executed. This feature is disabled by default. To enable it, add the following line to the [miscellany]<\/tt> section of your ~\/.subversion\/config<\/tt> file.<\/p>\n\n\n\n auto-props<\/tt> \uc124\uc815\uc744 \uc0ac\uc6a9\ud558\uba74 svn add<\/tt>\ub098 svn import<\/tt> \uba85\ub839\uc744 \uc218\ud589\ud560 \ub54c \ud2b9\uc815 \ud328\ud134\uc5d0 \ub9de\ub294 \ud30c\uc77c\ub4e4\uc5d0 \ud504\ub85c\ud37c\ud2f0\ub97c \uc790\ub3d9\uc73c\ub85c \ucd94\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uae30\ub2a5\uc740 \ucc98\uc74c\uc5d0\ub294 \uaebc\uc838 \uc788\uc2b5\ub2c8\ub2e4. \ucf1c\ub824\uba74 ~\/.subversion\/config<\/tt> \ud30c\uc77c\uc758 [miscellany]<\/tt> \uc139\uc158\uc5d0 \ub2e4\uc74c \ub77c\uc778\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n Now, you can add your auto-prop settings to the [auto-props]<\/tt> section. Here\u2019s mine I brought from here<\/a>.<\/p>\n\n\n\n \uc774\uc81c auto-prop \uc124\uc815\uc744 [auto-props]<\/tt> \uc139\uc158\uc5d0 \ucd94\uac00\ud558\uba74 \ub429\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uc81c\uac00 \uc5ec\uae30<\/a>\uc11c \ube4c\ub824\uc628 \uac83\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n svn:keywords \ud504\ub85c\ud37c\ud2f0 \uc790\ub3d9\uc73c\ub85c \uc124\uc815\ud558\uae30 Subclipse dropped \u2018Add Keywords\u2026\u2019 dialog since 1.1.7. I couldn\u2019t understand why they got rid of such a useful feature, but now I figure out that it is because there\u2019s much easier way to do that. Yes, I don\u2019t need to forget to set the property or to make mistakes by applying… Continue reading enable-auto-props = yes<\/code><\/pre>\n\n\n\n
*.java = svn:eol-style=native;svn:keywords=Rev Date\n*.xml = svn:mime-type=text\/xml;svn:eol-style=native;svn:keywords=Rev Date\n*.xsl = svn:mime-type=text\/xml;svn:eol-style=native;svn:keywords=Rev Date\n*.xsd = svn:mime-type=text\/xml;svn:eol-style=native;svn:keywords=Rev Date\n*.wsdl = svn:mime-type=text\/xml;svn:eol-style=native;svn:keywords=Rev Date\n*.properties = svn:mime-type=text\/plain;svn:eol-style=native;svn:keywords=Rev Date\n*.c = svn:eol-style=native;svn:keywords=Rev Date\n*.cpp = svn:eol-style=native;svn:keywords=Rev Date\n*.h = svn:eol-style=native;svn:keywords=Rev Date\n*.dsp = svn:eol-style=CRLF\n*.dsw = svn:eol-style=CRLF\n*.sh = svn:eol-style=native;svn:executable\n*.bat = svn:eol-style=native\n*.pl = svn:eol-style=native\n*.py = svn:eol-style=native\n*.cmd = svn:eol-style=native\n*.txt = svn:eol-style=native;svn:mime-type=text\/plain\n*.htm* = svn:eol-style=native;svn:mime-type=text\/html\nChangeLog = svn:eol-style=native;svn:mime-type=text\/plain\nREADME* = svn:eol-style=native;svn:mime-type=text\/plain\nLICENSE* = svn:eol-style=native;svn:mime-type=text\/plain\nNOTICE* = svn:eol-style=native;svn:mime-type=text\/plain\nTODO* = svn:eol-style=native;svn:mime-type=text\/plain\nKEYS* = svn:eol-style=native;svn:mime-type=text\/plain\nINSTALL* = svn:eol-style=native;svn:mime-type=text\/plain\nWHATSNEW* = svn:eol-style=native;svn:mime-type=text\/plain\n*.png = svn:mime-type=image\/png\n*.jpg = svn:mime-type=image\/jpeg\n*.gif = svn:mime-type=image\/gif\nMakefile = svn:eol-style=native\n*.css = svn:eol-style=native\n*.js = svn:eol-style=native<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"