如何解决NS3 hg的权限

时间:2016-01-06 17:48:06

标签: mercurial user-permissions ns-3

我正在尝试在我的Mac OS 10.10.3中安装ns3,当我输入./download.py时,我收到以下消息:

Updating ns-3 branch
 =>  hg --cwd ns-3-dev pull -u
not trusting file /Users/username/Documents/ns-3-allinone/ns-3-dev/.hg/hgrc from untrusted user username, group staff
not trusting file /Users/username/Documents/ns-3-allinone/ns-3-dev/.hg/hgrc from untrusted user username, group staff
abort: repository default not found!
Traceback (most recent call last):
  File "./download.py", line 242, in <module>
    sys.exit(main())
  File "./download.py", line 198, in main
    ns3_dir = get_ns3(options.ns3_branch)
  File "./download.py", line 29, in get_ns3
    run_command(['hg', '--cwd', ns3_dir, 'pull', '-u'])
  File "/Users/username/Documents/ns-3-allinone/util.py", line 25, in run_command
    raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['hg', '--cwd', 'ns-3-dev', 'pull', '-u'] exited with code 255

我不知道如何激活ns3 hg的权限。

1 个答案:

答案 0 :(得分:0)

为避免您的问题,我认为您需要提出:

[trusted]
users = root

/Users/username/Documents/ns-3-allinone/ns-3-dev/.hg/hgrc文件中,这应该可行。

有关其他信息,请阅读help on trust in Mercurial并确保您设置了正确的信任设置。