Submitter | Mads Kiilerich |
---|---|
Date | Jan. 30, 2015, 5:51 p.m. |
Message ID | <c408bf3b32f8126b7bf1.1422640309@ssl.google-analytics.com> |
Download | mbox | patch |
Permalink | /patch/7581/ |
State | Accepted |
Commit | c408bf3b32f8126b7bf1fa401d5746c51edfa5e6 |
Headers | show |
Comments
On Fri, 2015-01-30 at 18:51 +0100, Mads Kiilerich wrote: > # HG changeset patch > # User Mads Kiilerich <madski@unity3d.com> > # Date 1422640280 -3600 > # Fri Jan 30 18:51:20 2015 +0100 > # Branch stable > # Node ID c408bf3b32f8126b7bf1fa401d5746c51edfa5e6 > # Parent 6becb9dbca25057c6186e255a48dd2c2ce5701a5 > convert: replace revision references in messages if they are >= short hashes Queued for stable, thanks.
Patch
diff --git a/hgext/convert/hg.py b/hgext/convert/hg.py --- a/hgext/convert/hg.py +++ b/hgext/convert/hg.py @@ -26,7 +26,7 @@ from mercurial import hg, util, context, from common import NoRepo, commit, converter_source, converter_sink import re -sha1re = re.compile(r'\b[0-9a-f]{6,40}\b') +sha1re = re.compile(r'\b[0-9a-f]{12,40}\b') class mercurial_sink(converter_sink): def __init__(self, ui, path):