This adds a flag --allow-dirty-working-copy as an alias for
the experimental config option experimental.uncommitondirtydir.
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHGaa284d9a33ca: uncommit: add flag --allow-dirty-working-copy
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
hgext/uncommit.py | ||
---|---|---|
165 | how about making this as: allowdirty = opts['allow_dirty_working_copy'] or repo.ui.configbool('experimental', 'uncommitondirtywdir') This will make the if condition more simpler to understand. |
hgext/uncommit.py | ||
---|---|---|
165 | Done. |
tests/test-uncommit.t | ||
---|---|---|
164 | Did we lose test coverage here? The output before the prior patch noted it was keeping an empty commit, so maybe the suggested flag needs to be used after this abort? |
tests/test-uncommit.t | ||
---|---|---|
164 | @mharbison72 I looked at the test file an there are more instances of that being tested. I am not sure whether we test that here also. |
how about making this as:
allowdirty = opts['allow_dirty_working_copy'] or repo.ui.configbool('experimental', 'uncommitondirtywdir')
This will make the if condition more simpler to understand.