"Pull to here" error: invoking hg with integer rev. number instead of hex id?
Created originally on Bitbucket by Pi Delport
After doing an incoming check, i used the "Pull to here" context menu action on one of the revisions, but it failed with an "unknown revision" error message.
It appears that TortoiseHg is passing the integer revision number from hg incoming
to hg pull --rev
, which fails because the revision does not exist locally yet.
The output log shows the following, for the incoming check and pull attempt:
#!text
% hg --repository [...] incoming --quiet --bundle /tmp/[...] ssh://hg@bitbucket.org/[...]
96:[...]
97:[...]
98:[...]
99:[...]
100:[...]
101:[...]
102:[...]
103:[...]
104:[...]
105:[...]
106:[...]
107:[...]
108:[...]
109:[...]
[command completed successfully Mon May 13 09:03:59 2013]
% hg --repository [...] pull --verbose --update --config ui.merge=internal:fail --rev 109 ssh://hg@bitbucket.org/[...]
running ssh hg@bitbucket.org 'hg -R [...] serve --stdio'
pulling from ssh://hg@bitbucket.org/[...]
unknown revision '109'
[command returned code 255 Mon May 13 09:04:05 2013]
Manually running hg pull --rev
with the hex revid (instead of 109) works fine.
I'm using Ubuntu 12.10, with the latest packages from the TortoiseHg PPA:
- TortoiseHg 2.8
- Mercurial-2.6
- PyQt-4.9.3, Qt-4.8.2
- Python-2.7.3