This is an archive of the discontinued Mercurial Phabricator instance.

uncommit: drop the extension from fb-hgext as it was moved to core
ClosedPublic

Authored by pulkit on Sep 20 2017, 2:09 PM.
Tags
None
Subscribers

Details

Summary

This patch drops the uncommit extensions which has been moved to core. The
in-core extension does not allow bare hg uncommit on dirty working directory.
One need to set experimental.uncommitondirtywdir = True to do hg uncommit on
dirty working directory.

So this patch also set the required config to True in tweakdeafults.py to
maintain the behaviour.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Sep 20 2017, 2:09 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptSep 20 2017, 2:09 PM
stash requested changes to this revision.Sep 21 2017, 3:55 AM
stash added a subscriber: stash.

We have tweakdefaults.py which is used for the same purpose. Can you use it to add uncommitondirtywdir config?

This revision now requires changes to proceed.Sep 21 2017, 3:55 AM
pulkit edited the summary of this revision. (Show Details)Sep 21 2017, 5:35 AM
pulkit updated this revision to Diff 1955.
stash accepted this revision.Sep 21 2017, 6:08 AM
This revision is now accepted and ready to land.Sep 21 2017, 6:08 AM
durham accepted this revision.Sep 26 2017, 7:48 AM
quark added a subscriber: quark.EditedOct 13 2017, 2:47 AM

@durham @stash When you are accepting @pulkit's changes, could you also push them? That can be done by something like:

hg phabread D751 | hg import -
hg push -r . --to @

Assuming .hgrc has:

[phabricator]
token = cli-... # get it from https://phab.mercurial-scm.org/conduit/login
url = https://phab.mercurial-scm.org/
callsign = FBHGX

I have just pushed this one.

This revision was automatically updated to reflect the committed changes.

There are several other uncommit tests that were not removed:

  • test-uncommit-bookmark.t
  • test-uncommit-merge.t
  • test-uncommit-bookmark.t

@pulkit, did all of these tests get moved upstream?

In D751#17582, @ryanmce wrote:

There are several other uncommit tests that were not removed:

Ah :(

  • test-uncommit-bookmark.t
  • test-uncommit-merge.t

@pulkit, did all of these tests get moved upstream?

Yes all the tests are merged into one single test and are pushed upstream. D529 for reference.

hgext3rd/tweakdefaults.py