The default commit message that fetch uses, "Automated merge with ...." is long, ugly and litters the history with local directory paths. I'd like to replace it with a simple "Automated merge" or just "Merge".
How can we customize the default commit message used by the fetch extension?
988 Views Asked by Plumenator At
2
There are 2 best solutions below
Related Questions in MERCURIAL
- "Mercurial only supports encoded strings" error?
- Mercurial: Uncommitted local changes are detected while there are none
- How to prevent CMake rerun after CMakeLists.txt changed?
- Using Beyond Compare with Mercurial as the external diff tool to perform in-place directory comparison
- Mercurial/TortoiseHg: Can multiple repositories share the exact same file(s)?
- Is there any way to use hg copy from a specific revision?
- Mercurial in WSL: HGEDITOR $PATH is different from my $PATH
- PYTHONHOME environment variable is unset and empty, I don't know what put to have my python related command working again on linux
- Pushing to local phabricator with TortoiseHG produces Error
- How to prevent a mercurial commit with no files specified (prevent commiting all modified files) using a hook
- What does `hg cp` do and how to "undo" it?
- Reliably run Mercurial's "hg status" from a C# program
- How to uncommit one file in a series of commits in TortoiseHG (Mercurial)?
- Finding changes to a block of text with mercurial
- UnicodeDecodeError while pulling in mercurial (hg) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4: ordinal not in range(128)
Related Questions in FETCH
- (in promise) TypeError: NetworkError when attempting to fetch resource
- Nextjs fetching data from child component
- Fetch file, read contents and return contents all in one function
- How to combine JSON objects and unnest array of arrays
- Flask: Template file cannot fetch from locally stored .json file in another directory
- fetch APi request for forex rates
- Why does fetching from local grape Api (rails server) cause repeated GET-Requests and/or page reloads?
- How to fetch a specific span tag on a webpage using Chrome console?
- Must the fetch method request correspond to the server side http method
- Type generation in openapi-fetch
- How can I convert row data to column in PHP
- Fetch api doesn't return data but a Promise
- Preventing Data Tampering in HTTPS Requests: Safeguarding User-Initiated Donations
- Fetch and json in Angular
- fetching is not happening in client component?
Related Questions in HGRC
- How to set up a different pager and color mode in Mercurial?
- mercurial on macos doesn't read ~/.config/hg/hgrc
- Post-clone hook in .hgrc is not always executed?
- Mercurial config: merge-patterns working on `hg update`
- Sharing .hg/hgrc settings across all clones
- Are Mercurial hgrc section headings lowercase?
- Untracking files without them being deleted from yours AND OTHERS' file system?
- Cannot commit in mercurial repo
- hgk/hg view works with established repo but not with new repo
- Can I reuse a Mercurial config item?
- hgignore - ignore file by specific remote location
- Kallithea does not use hooks defined in .hg/hgrc
- mercurial hg clone a repo from a server connected through another server
- How can we unset all names in a section (Mercurial)
- What is the entry upstream in hgrc for?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
By default the message is not customizable (check out "library.zip" under your Mercurial install folder, you'll see the message in plain text under
hgext\fetch.pyc).So the only way is to update source code of "fetch" - try this version, I just changed the message to "Fetch merge" and it works like a blast :)
You'd need to remove
library.zip\hgext\fetch.pycand put therefetch.py(plain python file) with the content from the link above.