Commit Graph

2 Commits

Author SHA1 Message Date
Pulkit Goyal
4f214eeba8 rewriteutil: add a precheck function to check if revs can be rewritten
The precheck function is intended to be used before we start rewritting
changesets.

Differential Revision: https://phab.mercurial-scm.org/D1503
2017-11-24 03:44:50 +05:30
Pulkit Goyal
579e1d7f54 rewriteutil: add utility function to check if we can create new unstable cset
This patch adds a new file which will contain utility functions related to
rewritting changesets. It also adds a utility function to check if the
rewritting operation creates new unstable changesets and are we allowed to
create them.

This rewriteutil.py introduced in this patch and the utility functions added in
the upcoming patches exists in the evolve extension are being ported from there.

Differential Revision: https://phab.mercurial-scm.org/D1502
2017-11-24 03:40:33 +05:30