files: use ctx object to access dirstate
This allows the cmdutil method to not need to be passed the repo as well as the
ctx.
copies: added manifests to computenonoverlap
Commit
30219bd46ed7 changed the computenonoverlap api's to not require the
manifests. We actually need the manifests in the remotefilelog extension so
we can find the file nodes for the various files that change. Let's add it
back to the function signature with a note explaining why.
This doesn't affect any behavior.
record: move dorecord from record to cmdutil
Part of a serie of patches to move record from hgext to core
record: remove dependency on hg module in record
Part of a series of patches to move record from hgext to core
record: remove dependency on extensions module in dorecord
Part of a series of patches to move record from hgext to core
record: move filterpatch from record to patch
Part of a series of patches to move record from hgext to core
patch.internalpatch: add a default value for prefix
Rev
60c279ab7bd3 adding a parameter here. This breaks third-party extensions
like crecord and also makes the issue fairly hard to fix on the extension's
side if it wants to retain compatibility across Mercurial versions -- in old
versions, the positional argument will be passed into the next unknown
argument, which is 'files'.
The patch also undoes a change to the record extension that is no longer
necessary.
histedit: remove extra histedit constructor call
In a previous commit we removed the extra histedit object instance being
constructed in --continue and --abort. The new --edit-todo missed this fix
though (which means the state object it produces doesn't have the locks on it).
It's not breaking anything now, but let's go ahead and clean that up before we
forget.
color: consolidate cut-and-paste code
This fixes a mild case of cut-and-paste code regarding failing to set
terminal modes. This is evident in the win32 comment that is misplaced
for the terminfo mode since cset
ad6ad51cc0dd.
Instead, we refactor this C&P into a small local function.