TortoiseHg 推送时“设备上没有剩余空间"错误 [英] TortoiseHg 'No space left on device' error while pushing

查看:67
本文介绍了TortoiseHg 推送时“设备上没有剩余空间"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用 TortoiseHg 作为我们的 Mercurial 客户端 UI.今天我们在尝试从一个特定的工作站推送时遇到了一个问题.它收到以下错误:

We are using TortoiseHg as our Mercurial client UI. Today we ran into an issue while trying to push from one particular workstation. It was receiving the following error:

abort:设备上没有剩余空间[命令返回代码 255 ....]

当 TortoiseHg/Mercurial 正在捆绑文件以准备推送到存储库时,会发生此错误.我做了一些测试并注意到工作站 (C:) 驱动器在文件被捆绑时逐渐被填满.(C:) 驱动器从 ~900MB 变为 ~100MB,然后收到错误消息.所以这显然是原因.

This error occurs while TortoiseHg/Mercurial is bundling files in preparation to pushing to the repository. I did some testing and noticed that the workstations (C:) drive was gradually being filled up as the file were being bundled. The (C:) drive went from ~900MB to ~100MB and then the error message was received. So this is obviously the cause.

我的问题是:

  1. 有谁知道哪个默认目录用于存储在 TortoiseHg/Mercurial 捆绑文件以准备推送时创建的临时文件?这似乎与安装 TortoiseHg 的驱动器无关.我重新安装到一个有足够空间的数据驱动器,仍然使用 (C:) 来存储它正在使用的任何临时文件.

  1. Does anyone know which default directory is used to store the temp files created while TortoiseHg/Mercurial bundles files in prep for a push? This seems to be independent of the drive TortoiseHg is installed to. I re-installed to a data drive with plenty of space and still used (C:) to store whatever temp files it was using.

有没有办法配置 TortoiseHg/Mercurial 以使用您选择的临时目录?

Is there a way to configure TortoiseHg/Mercurial to use a temp directory of your choice?

在此先感谢您的帮助!

推荐答案

Mercurial 是 python 并且 python 有很好的平台特定的临时文件位置默认值.如果你想要默认值以外的东西,它们很容易被覆盖,在 Windows 上可能是 c:\temp.

Mercurial is python and python has good platform specific defaults for temporary file locations. They're pretty easily overridden if you want something other than the defaults, which on Windows are probably c:\temp.

http://docs.python.org/library/tempfile.html#tempfile.tempdir 说它是:

  1. 由 TMPDIR 环境变量命名的目录.
  2. 由 TEMP 环境变量命名的目录.
  3. 由 TMP 环境变量命名的目录.
  4. 特定于平台的位置:
    • 在 RiscoOS 上,由 Wimp$ScrapDir 环境变量命名的目录.
    • 在 Windows 上,目录 C:\TEMP、C:\TMP、\TEMP 和 \TMP,按此顺序.
    • 在所有其他平台上,目录/tmp、/var/tmp 和/usr/tmp,按此顺序.

因此,如果您在客户端计算机上安装了使用 Mercurial 的软件,请将环境变量设置为您知道有空间的某个位置.

So if you've got software using Mercurial on a client computer set the environment variable to some place you know has space.

这篇关于TortoiseHg 推送时“设备上没有剩余空间"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆