How to return to a tag in gifts?

I want to check the old flagged state in the current darcs repository (its working directory).

I do not want to clone to another directory (because I installed the cabal sandbox in the current directory).

I have already introduced all the new changes to the remote repo, so I don't care if they are completely lost. (But still: can I save the saved patches, but still check the older state?)

How to do it?

Attempts

I tried

darcs obliterate --from-tag=TAG

but that’s not quite what I wanted. It also destroyed the tag!

So, to return the TAG, I had to darcs pullselect the first patch in the line (TAG) and press dto skip all the other patches.

Well, I darcs obliterate --from-tag=TAGasked interactively what to erase, so I could theoretically leave TAG, but he starts asking the latest patch, so I had to go through many recent fixes before I could inform darcsabout my decision to leave TAG.

+1
source share
1 answer

You can use the --reversefor option obliterateto first ask about the tag, say n, and then ato remove everything else.

In fact, obliterate --from-tagit will not be necessary to select everything that is not covered by the tag, since its behavior depends on the specific patches and patch tags currently in the repository.

, --from-tag --reverse. ( , ), n, a - , , .

, , , , , .

, , -o -o obliterate , . "darcs apply". , , , , , .

+1

Source: https://habr.com/ru/post/1621975/


All Articles