UiPath Documentation
studio
latest
false
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

Studio 用户指南

使用 SVN 管理项目

从 SVN 打开项目

  1. 在“团队”选项卡中,选择“从 SVN 打开”。系统随即会打开“从 SVN 存储库打开”窗口。

  2. Type in the Repository URL or use the docs image button to open the repository browser. In the repository browser, you can browse to and select an existing folder or copy the Selected Path. Select OK to confirm the selection and close the window.

  3. Pick an empty Check out directory. Under Authentication, select None or select the User/Password and fill in your User and Password. Select Open. The project is now available in the check out directory.

  4. 当您从 Studio 打开文件时,例如 Main.xaml,“问题”对话框随即打开,并提供两个选项用于从存储库中提取文件:

    • 签出最新版本并编辑 - 在编辑模式下,从存储库打开 Main.xaml 文件的最新版本。“中断锁定”选项允许您从 SVN 存储库中签出一个先前已由其他用户签出的项目。
    • 以只读方式打开本地版本 - 以只读模式打开 Main.xaml 文件的本地版本。即使文件处于只读模式,也可以打开包管理器,但是为了执行更改和安装依赖项,需要签出 project.json 文件。

      选中“始终签出最新版本并编辑,不再显示”复选框,如此一来,在其后续出现时,“签出最新版本并编辑”选项便会传播您的选择。无论您选择哪个选项,都需要单独签出 project.json 文件,以使特定更改生效。

结果

The project is checked out from the SVN repository and available locally in Studio for editing.

向 SVN 中添加项目

备注:

有些 SVN 操作无法通过 Studio 直接管理。因此,为了确保最佳兼容性,请使用 SVN 客户端的最新版本。对于 TortoiseSVN,支持的最高版本是 1.9.7。

  1. Create or open a project in Studio from the Start tab in the Backstage view. Select Start > Team > Add to TFS button, or Add to Source Control > Add to SVN shortcut in the status bar. The Add to SVN window is displayed.

  2. Type in the Repository URL or use the docs image button to open the repository browser. In the repository browser, you can browse to and select an existing folder, or select Create Folder docs image above the left navigation pane to add a new folder. Select OK to confirm the selection and close the window.

  3. If applicable, under Authentication, select User/Password and type in the credentials. Select Add to upload the project to the SVN repository.

  4. 在“签入更改”窗口中,选择要添加到存储库中的文件,并写入“提交消息”。

  5. Select Check In. The files are now available in the repository, together with the Commit message. The project.json file returns to read-only mode in Studio.

结果

The project files are committed to the SVN repository. The project.json file returns to read-only mode in Studio.

将项目添加到 SVN 时,“项目”面板中的上下文菜单包含 SVN 专属选项。 有关更多信息,请参阅“SVN 和 TFS 的上下文菜单选项”

编辑和签入对 SVN 的更改

  1. 将您的一个项目连接到 SVN 存储库。

  2. Open the context menu for the .xaml file and select Check Out for Edit. The latest version of the .xaml file is mapped locally and opened in the Project panel. It becomes locked for editing until it’s checked in. Perform any sort of changes to the files.

    备注:

    一旦从 SVN 存储库签出某个文件,其他拥有访问权限的用户便无法再签出该文件。

  3. Open the context menu for the .xaml file or project node, and select Check In, or select the 文档图像 icon in the Status bar, which also counts the number of uncommitted changes. The Check In Changes window is displayed.

  4. 检查更改并选中“显示无版本文件”框,以将导入的文件添加到存储库中。写入“提交消息”来描述更改。

  5. Select Check In. The latest version is now available in the repository, together with the Commit message. In Studio, the project.json file returns to the read-only mode.

  6. Select Start > Team > Disconnect to disconnect the current project from source control.

    备注:

    如果您在外部编辑器中编辑添加到来源控件的项目中的文件,则仅在您单击“刷新”后,更改才会在“项目”面板和状态栏中显示文档图像在“项目”面板中。

结果

The changes are committed to the SVN repository. The project.json file returns to read-only mode in Studio.

更改凭据

如果您在共享计算机上工作,则可能需要在对项目提交任何更改之前将凭据更改为当前的 SVN 存储库。

转到“开始”>“团队”选项卡,然后从 SVN 部分中选择“更改凭据”。输入您当前存储库的用户名和密码,然后选择“确定”。

  • 从 SVN 打开项目
  • 结果
  • 向 SVN 中添加项目
  • 结果
  • 编辑和签入对 SVN 的更改
  • 结果
  • 更改凭据

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新