2016-05-25 12 views
4

私はUbuntu 16.04とMercurial 3.7.3を使用しています。私たちのリポジトリは、SMB共有としてのみアクセス可能です。Mercurial:smb共有への "hg push"が機能しません

> hg clone "/run/user/1000/gvfs/smb-share:server=xyz.com,share=abc$/Repo" Repo 

私の問題は、私は何を(など、プルコミット)を行うが、プッシュすることができるということです:

> hg push -v 
pushing to /run/user/1000/gvfs/smb-share:server=xyz.com,share=abc$/Repo 
searching for changes 
2 changesets found 
uncompressed size of bundle content: 
    876 (changelog) 
    724 (manifests) 
    586 a.txt 
    2869 b.txt 
    34900 c.rpm 
    37325 d.rpm 
abort: Operation not supported: '/run/user/1000/gvfs/smb-share:server=xyz.com,share=abc$/Repo/.hg/store/journal' 
私は私のホームフォルダ内のフォルダにシェアをクローン化した(私は名前ビットを簡素化)

私はsudoを使用する場合:事前にあなたの助けを

> sudo hg push -v 
[sudo] password for kol: 
pushing to /run/user/1000/gvfs/smb-share:server=xyz.com,share=abc$/Repo 
abort: repository /run/user/1000/gvfs/smb-share:server=xyz.com,share=abc$/Repo not found! 

感謝を!

UPDATE

私は、Windows 7で同じことを試みたが、hg pushが働きました。

UPDATE 2

SMB共有がWindowsマシン上にあります。

--debugオプション(コミット私はプッシュしてみました上記とは異なります)とUbuntuの上hg pushの出力:

> hg push -v --debug 
pushing to /run/user/1000/gvfs/smb-share:server=xyz.com,share=abc$/Repo 
query 1; heads 
searching for changes 
all remote heads known locally 
listing keys for "phases" 
checking for updated bookmarks 
listing keys for "bookmarks" 
listing keys for "bookmarks" 
1 changesets found 
list of changesets: 
9ce3f6fbf7217a7eea79cf21ccbb2d7fc851cbd3 
bundle2-output-bundle: "HG20", 4 parts total 
bundle2-output-part: "replycaps" 155 bytes payload 
bundle2-output-part: "check:heads" streamed payload 
bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload 
bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload 
abort: Operation not supported: '/run/user/1000/gvfs/smb-share:server=xyz.com,share=abc$/Repo/.hg/store/journal' 
+0

SMBサーバーはどのシステム(Linux/Windowsなど)で動作しますか? –

+0

また、引数として '--debug'を追加すると有用な情報が得られるでしょうか? 'dmesg'はあなたがプッシュを試みている間に何か興味深いものを表示しますか? 'dmesg |を実行するtail -f'は何が起こっているのかを知るのに役立ちます。 –

+0

@ManuelJacob私の2回目の更新をご覧ください。 – kol

答えて

1

任意のバージョン管理システムのネットワークファイルシステムを使用しないでくださいしてくださいしてください。ネットワークファイルシステムは、ほとんどのバージョン管理システムが依存している一貫性保証に違反しています。ジャーナルファイルで見ていることは、ほぼ確実です。

代わりに、同じマシンでhttp hgサーバーを実行できますか?それはとなるでしょう。はデータ損失のリスクを軽減します。

関連する問題