2

I'm using hg with the mq extension installed (I do not have the rebase extension to the best of my knowledge)

After making a few changes and doing a few qdiffs, qrefs I am suddenly faced with this error, I am not sure how or why it occured, but I'd like to be able to qref again and get rid of this error or atleast extract all my work from the given repo.


Outputs:

hg qref

abort: cannot refresh immutable revision
(see "hg help phases" for details)

-

hg qseries

0 A bug-822459-fix

-

hg status

M templates/testEmptyTest.js
M templates/testModalDialog.js
M templates/testPreferencesDialog.js
M templates/testSharedModules.js

and a whole lot of other untracked files ( files with a ? infront of them)

ffledgling
  • 11,502
  • 8
  • 47
  • 69

2 Answers2

2

hg phase -fd qbase:qtip helps. See also https://www.mercurial-scm.org/wiki/Phases

I have this in my ~/.hgrc:

[phases]
publish = False
Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Ringding
  • 2,856
  • 17
  • 10
  • 1
    I used hg phase --force --draft to get it to work. Does -fd do the same thing? – ffledgling May 22 '13 at 20:52
  • @ffledgling: Yes, [according to the manual](https://www.mercurial-scm.org/repo/hg/help/phase) the `hg phase` switch `-f` is an alias to `--force` and `-d` to `--draft` – ecm Mar 19 '22 at 08:34
1

The following command worked for me:

hg phase --force --draft .
hg qref
user4780495
  • 2,642
  • 2
  • 18
  • 24