SVN使用:no-ignore解决导入版本库时忽略文件问题

本文介绍了解决SVN导入版本库时忽略特定文件的问题。提供了两种方法:一是修改配置文件中的忽略列表;二是使用--no-ignore参数。适用于需要完整导入SVN版本库的所有文件的场景。

SVN使用:no-ignore解决导入版本库时忽略文件问题



在使用svn import linphone-android代码时,svn把.o以及.DS_Store文件全部忽略了, check out的代码就不包含这些文件.

 

如何导入SVN版本库全部文件而不忽略任一文件呢?

方法一:

可通过终端打开配置文件: open ~/.subversion/config
把下面两行(也可能是一行)中的注释和*.o去掉,
然后保存.
#global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo  
#*.rej *~ #*# .#* .*.swp .DS_Store

注意:去掉#号后要顶行

 

方法二: 

或者在svn import 的时候加入参数 --no-ignore

实例:

svn import --no-ignore . file:///home/user/svn/LinphoneSVN



1、Umi-OCR未生成结果文件 2、以下是全部日志PS D:\Tool\Tool_python> & C:/Users/chen.yang/AppData/Local/Microsoft/WindowsApps/python3.13.exe d:/Tool/Tool_python/svn_subrepo.py usage: Umi-OCR [-h] [--show] [--hide] [--quit] [--screenshot] [--clipboard] [--path] [--qrcode_create] [--qrcode_read] [--reload] [--all_pages] [--add_page ADD_PAGE] [--del_page DEL_PAGE] [--all_modules] [--call_py CALL_PY] [--call_qml CALL_QML] [--func FUNC] [--thread] [--clip] [--output OUTPUT] [--output_append OUTPUT_APPEND] [--> >] [-->> >>] [paras [paras ...]] positional arguments: paras parameters of [--func]. optional arguments: -h, --help show this help message and exit --show Make the app appear in the foreground. --hide Hide app in the background. --quit Quit app. --screenshot Screenshot OCR and output the result. --clipboard Clipboard OCR and output the result. --path OCR the image in path and output the result. --qrcode_create Create a QR code from the text. Use --qrcode_create "text" "save_image.jpg" --qrcode_read Read the QR code. Use --qrcode_read "image_to_recognize.jpg" --reload Reload settings from the configuration file ".settings" --all_pages Output all template and page information. --add_page ADD_PAGE usage: Umi-OCR --all_pages --del_page DEL_PAGE usage: Umi-OCR --all_pages --all_modules Output all module names that can be called. --call_py CALL_PY Calling a function on a Python module. --call_qml CALL_QML Calling a function on a Qml module. --func FUNC The name of the function to be called. --thread The function will be called on the child thread and return the result, but it may be unstable or cause QML to crash. --clip Copy the results to the clipboard. --output OUTPUT The path to the file where results will be saved. (overwrite) --output_append OUTPUT_APPEND The path to the file where results will be saved. (append) --> > "-->" equivalent to "--output" -->> >> "-->>" equivalent to "--output_append" Your argv: ['ocr', 'C:\\Users\\CHEN~1.YAN\\AppData\\Local\\Temp\\ocr_temp_e76300e0.png', '--lang', 'ch', '--out', 'C:\\Users\\CHEN~1.YAN\\AppData\\Local\\Temp\\ocr_result_e76300e0.json'] [Error]: 2 usage: Umi-OCR --help Fatal Python error: init_sys_streams: can't initialize sys standard streams Python runtime state: core initialized OSError: [WinError 6] 蜿・譟・裏謨医 Current thread 0x00001824 (most recent call first): <no Python frame> Your argv: ['ocr', 'C:\\Users\\CHEN~1.YAN\\AppData\\Local\\Temp\\ocr_temp_e668da49.png', '--lang', 'ch_tra', '--out', 'C:\\Users\\CHEN~1.YAN\\AppData\\Local\\Temp\\ocr_result_e668da49.json'] [Error]: 2 usage: Umi-OCR --help
最新发布
12-02
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

JerryHe

你的鼓励是我创作最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值