Shelve can't work if I init a repository in my shelves directory

Issue #832 resolved
Anonymous created an issue

I really like the shelve tool. However, I had a scare when I thought I may have accidentally blown my shelves away. Fortunately, I had saved them, but I thought I'd save myself the trouble in the future and init a repo so I could version my changes to the shelf, much the same way some people init a repo of MQ patchsets. However, something explodes all over the {{{.hg}}} directory inside the shelves subdirectory.

Steps to reproduce:

Init a repository.

Inside {{{$REPO/.hg/shelves}}}, init another repository.

Go to {{{Repository -> Shelve...}}} in the Workbench.

Here's the capture: {{{


Mercurial version (1.8.4). TortoiseHg version (2.0.5) Command: --nofork workbench CWD: C:\Users\USER\CODE Extensions loaded: fixfrozenexts, rebase, mq, hgk, graphlog, churn, histedit, hgsubversion, eol, mercurial_keyring, purge Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)] Windows version: (6, 1, 7600, 2, '') Processor architecture: x64 Qt-4.7.1 PyQt-4.8.3 Traceback (most recent call last): File "tortoisehg\hgqt\workbench.pyo", line 532, in forwarder File "tortoisehg\hgqt\repowidget.pyo", line 500, in shelve File "tortoisehg\hgqt\shelve.pyo", line 189, in init File "tortoisehg\hgqt\shelve.pyo", line 414, in refreshCombos File "tortoisehg\hgqt\shelve.pyo", line 441, in comboBChanged File "tortoisehg\hgqt\thgrepo.pyo", line 249, in changectx File "mercurial\localrepo.pyo", line 581, in changectx File "mercurial\localrepo.pyo", line 206, in getitem File "mercurial\context.pyo", line 27, in init File "mercurial\localrepo.pyo", line 556, in lookup RepoLookupError: unknown revision 'C:\Users\USER\CODE.hg\shelves.hg' }}}

Comments (4)

  1. Log in to comment