This is an archive of the discontinued Mercurial Phabricator instance.

fbamend: add --clean flag to hg prev/next
ClosedPublic

Authored by kulshrax on Jul 18 2017, 9:25 PM.
Tags
None
Subscribers

Details

Reviewers
quark
Group Reviewers
Restricted Project
Commits
rFBHGXfbbcb5c6a1fb: fbamend: add --clean flag to hg prev/next
Summary

This patch adds a --clean flag to hg prev and next that discards any pending changes, similar to hg update --clean.

Test Plan

hgarc unit && hgarc lint

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

kulshrax created this revision.Jul 18 2017, 9:25 PM
kulshrax edited the test plan for this revision. (Show Details)Jul 18 2017, 9:28 PM

I'm seeing a unit test failure I don't understand in test-check-config-hg.t. Any idea what's going on?

--- /data/users/kulshrax/facebook-hg-rpms/fb-hgext/tests/test-check-config-hg.t
+++ /data/users/kulshrax/facebook-hg-rpms/fb-hgext/tests/test-check-config-hg.t.err
@@ -16,11 +16,11 @@
   > ) | sed 's|\|/|g' |
   >   $PYTHON $RUNTESTDIR/../contrib/check-config.py
       elif ui.configbool('p4fastimport', 'useworker', False):
-
   conflict on p4fastimport.useworker: ('bool', '') != ('str', '')
+  at hgext3rd/p4fastimport/util.py:49:
       if ui.configbool("experimental", "histeditng"):
-
   conflict on experimental.histeditng: ('bool', '') != ('str', '')
+  at /data/users/kulshrax/facebook-hg-rpms/hg-crew/tests/../hgext/histedit.py:1607:
   undocumented: fastlog.debug (str)
   undocumented: fastlog.enabled (bool)
   undocumented: fastmanifest.cachecutoffdays (int) [60]
quark added a subscriber: ryanmce.Jul 18 2017, 10:13 PM
quark accepted this revision.
In D140#2069, @kulshrax wrote:

I'm seeing a unit test failure I don't understand in test-check-config-hg.t. Any idea what's going on?

I think that's @ryanmce's upstream change https://www.mercurial-scm.org/repo/hg/rev/e470f12d7d05

This revision is now accepted and ready to land.Jul 18 2017, 10:13 PM
This revision was automatically updated to reflect the committed changes.