##// END OF EJS Templates
merge with stable
Augie Fackler -
r42406:e64d8d73 merge default
parent child Browse files
Show More
@@ -178,3 +178,4 b' 593718ff5844cad7a27ee3eb5adad89ac8550949'
178 178 83377b4b4ae0e9a6b8e579f7b0a693b8cf5c3b10 0 iQJEBAABCAAuFiEEK8zhT1xnJaouqK63ucncgkqlvdUFAlxUk3gQHHJhZkBkdXJpbjQyLmNvbQAKCRC5ydyCSqW91aT7EACaycWeal53ShxaNyTNOa5IPZ71+iyWA9xEh7hK6cDDirpItarWLRVWoWqBlWRBBs6uU4BxnpPSCLFkJLu6ts/5p4R6/0Z04Pasd6sFi14bCGslmPJFlwrpfFDpQvFR6xZAtv1xGb8n+rjpK+wfstjRgyf84zn4//0dOdylY5EUXOk4/3zcXKAzPgZHBRper+PlQ0ICgYHiKQUlyDWrFrdSEis6OqBa+PbxdmgzLYbhXi0bvS5XRWM9EVJZa+5ITEVOEGPClRcoA7SJE5DiapMYlwNnB3U6TEazJoj5yuvGhrJzj9lx7/jx9tzZ/mhdOVsSRiSCBu46B/E63fnUDqaMw8KKlFKBRuzKnqnByZD8fuD34YJ6A82hta56W4SJ4pusa/X2nAJn1QbRjESY4wN4FEaNdYiMbpgbG2uBDhmEowAyhXtiuQAPCUra5o42a+E+tAgV5uNUAal8vk0DcPRmzc4UntQiQGwxL0fsTEpMQtG5ryxWRmOIBq6aKGuLVELllPCwOh8UIGLlpAoEynlNi9qJNT6kHpSmwquiU6TG6R1dA/ckBK2H90hewtb/jwLlenGugpylLQ2U/NsDdoWRyHNrdB4eUJiWD/BBPXktZQJVja97Js+Vn44ctCkNjui/53xcBQfIYdHGLttIEq56v/yZiSviCcTUhBPRSEdoUg==
179 179 4ea21df312ec7159c5b3633096b6ecf68750b0dd 0 iQJEBAABCAAuFiEEK8zhT1xnJaouqK63ucncgkqlvdUFAlyQ7VYQHHJhZkBkdXJpbjQyLmNvbQAKCRC5ydyCSqW91aziD/4uI/Nr+UJgOri1zfa6ObXuMVO2FeadAolKemMD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m4YNrLJNL/Ns7zoWmdmEUXT1NEnK1r3Pe2Xi1o56FHGPffOWASmqFnF/coZCq6b4vmBWK/n8mI/JF1yxltfwacaY+1pEor92ztK34Lme1A+R7zyObGYNDcWiGZgA==
@@ -191,3 +191,4 b' 593718ff5844cad7a27ee3eb5adad89ac8550949'
191 191 83377b4b4ae0e9a6b8e579f7b0a693b8cf5c3b10 4.9
192 192 4ea21df312ec7159c5b3633096b6ecf68750b0dd 4.9.1
193 193 4a8d9ed864754837a185a642170cde24392f9abf 5.0rc0
194 07e479ef7c9639be0029f00e6a722b96dcc05fee 5.0
@@ -1,4 +1,4 b''
1 PYTHONVER=2.7.14
1 PYTHONVER=2.7.16
2 2 PYTHONNAME=python-
3 3 PREFIX=$(HOME)/bin/prefix-$(PYTHONNAME)$(PYTHONVER)
4 4 SYMLINKDIR=$(HOME)/bin
@@ -20,8 +20,8 b' while [ "$1" ]; do'
20 20 ;;
21 21 --withpython | --with-python)
22 22 shift
23 PYTHONVER=2.7.14
24 PYTHONMD5=cee2e4b33ad3750da77b2e85f2f8b724
23 PYTHONVER=2.7.16
24 PYTHONMD5=f1a2ace631068444831d01485466ece0
25 25 ;;
26 26 --rpmbuilddir )
27 27 shift
@@ -22,9 +22,9 b' entrypoints==0.3 \\'
22 22 --hash=sha256:589f874b313739ad35be6e0cd7efde2a4e9b6fea91edcc34e58ecbb8dbe56d19 \
23 23 --hash=sha256:c70dd71abe5a8c85e55e12c19bd91ccfeec11a6e99044204511f9ed547d48451 \
24 24 # via keyring
25 keyring==18.0.0 \
26 --hash=sha256:12833d2b05d2055e0e25931184af9cd6a738f320a2264853cabbd8a3a0f0b65d \
27 --hash=sha256:ca33f5ccc542b9ffaa196ee9a33488069e5e7eac77d5b81969f8a3ce74d0230c
25 keyring==18.0.1 \
26 --hash=sha256:67d6cc0132bd77922725fae9f18366bb314fd8f95ff4d323a4df41890a96a838 \
27 --hash=sha256:7b29ebfcf8678c4da531b2478a912eea01e80007e5ddca9ee0c7038cb3489ec6
28 28 pygments==2.3.1 \
29 29 --hash=sha256:5ffada19f6203563680669ee7f53b64dabbeb100eb51b61996085e99c03b284a \
30 30 --hash=sha256:e8218dd399a61674745138520d0d4cf2621d7e032439341bc3f647bff125818d
@@ -31,8 +31,9 b' from mercurial.utils import ('
31 31 stringutil,
32 32 )
33 33
34 _NARROWACL_SECTION = 'narrowhgacl'
34 _NARROWACL_SECTION = 'narrowacl'
35 35 _CHANGESPECPART = 'narrow:changespec'
36 _RESSPECS = 'narrow:responsespec'
36 37 _SPECPART = 'narrow:spec'
37 38 _SPECPART_INCLUDE = 'include'
38 39 _SPECPART_EXCLUDE = 'exclude'
@@ -142,6 +143,10 b' def getbundlechangegrouppart_narrow(bund'
142 143
143 144 @bundle2.parthandler(_SPECPART, (_SPECPART_INCLUDE, _SPECPART_EXCLUDE))
144 145 def _handlechangespec_2(op, inpart):
146 # XXX: This bundle2 handling is buggy and should be removed after hg5.2 is
147 # released. New servers will send a mandatory bundle2 part named
148 # 'Narrowspec' and will send specs as data instead of params.
149 # Refer to issue5952 and 6019
145 150 includepats = set(inpart.params.get(_SPECPART_INCLUDE, '').splitlines())
146 151 excludepats = set(inpart.params.get(_SPECPART_EXCLUDE, '').splitlines())
147 152 narrowspec.validatepatterns(includepats)
@@ -153,6 +158,21 b' def _handlechangespec_2(op, inpart):'
153 158 op.repo.setnarrowpats(includepats, excludepats)
154 159 narrowspec.copytoworkingcopy(op.repo)
155 160
161 @bundle2.parthandler(_RESSPECS)
162 def _handlenarrowspecs(op, inpart):
163 data = inpart.read()
164 inc, exc = data.split('\0')
165 includepats = set(inc.splitlines())
166 excludepats = set(exc.splitlines())
167 narrowspec.validatepatterns(includepats)
168 narrowspec.validatepatterns(excludepats)
169
170 if repository.NARROW_REQUIREMENT not in op.repo.requirements:
171 op.repo.requirements.add(repository.NARROW_REQUIREMENT)
172 op.repo._writerequirements()
173 op.repo.setnarrowpats(includepats, excludepats)
174 narrowspec.copytoworkingcopy(op.repo)
175
156 176 @bundle2.parthandler(_CHANGESPECPART)
157 177 def _handlechangespec(op, inpart):
158 178 repo = op.repo
@@ -1824,7 +1824,7 b' class overlayworkingctx(committablectx):'
1824 1824 def data(self, path):
1825 1825 if self.isdirty(path):
1826 1826 if self._cache[path]['exists']:
1827 if self._cache[path]['data']:
1827 if self._cache[path]['data'] is not None:
1828 1828 return self._cache[path]['data']
1829 1829 else:
1830 1830 # Must fallback here, too, because we only set flags.
@@ -49,7 +49,7 b' from .utils import ('
49 49 urlerr = util.urlerr
50 50 urlreq = util.urlreq
51 51
52 _NARROWACL_SECTION = 'narrowhgacl'
52 _NARROWACL_SECTION = 'narrowacl'
53 53
54 54 # Maps bundle version human names to changegroup versions.
55 55 _bundlespeccgversions = {'v1': '01',
@@ -2213,13 +2213,10 b' def _getbundlechangegrouppart(bundler, r'
2213 2213
2214 2214 if (kwargs.get(r'narrow', False) and kwargs.get(r'narrow_acl', False)
2215 2215 and (include or exclude)):
2216 narrowspecpart = bundler.newpart('narrow:spec')
2217 if include:
2218 narrowspecpart.addparam(
2219 'include', '\n'.join(include), mandatory=True)
2220 if exclude:
2221 narrowspecpart.addparam(
2222 'exclude', '\n'.join(exclude), mandatory=True)
2216 # this is mandatory because otherwise ACL clients won't work
2217 narrowspecpart = bundler.newpart('Narrow:responsespec')
2218 narrowspecpart.data = '%s\0%s' % ('\n'.join(include),
2219 '\n'.join(exclude))
2223 2220
2224 2221 @getbundle2partsgenerator('bookmarks')
2225 2222 def _getbundlebookmarkpart(bundler, repo, source, bundlecaps=None,
@@ -142,7 +142,7 b' def has_bzr():'
142 142
143 143 @checkvers("bzr", "Canonical's Bazaar client >= %s", (1.14,))
144 144 def has_bzr_range(v):
145 major, minor = v.split('.')[0:2]
145 major, minor = v.split('rc')[0].split('.')[0:2]
146 146 try:
147 147 import bzrlib
148 148 return (bzrlib.__doc__ is not None
@@ -10,7 +10,7 b' Make a narrow clone then archive it'
10 10 > hg commit -m "Add $x"
11 11 > done
12 12 $ cat >> .hg/hgrc << EOF
13 > [narrowhgacl]
13 > [narrowacl]
14 14 > default.includes=f1 f2
15 15 > EOF
16 16 $ hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid
@@ -760,3 +760,46 b' Test rebasing a commit with copy informa'
760 760 rebasing 3:ca58782ad1e4 "b"
761 761 rebasing 5:71cb43376053 "merge"
762 762 note: not rebasing 5:71cb43376053 "merge", its destination already has all its changes
763
764 $ cd ..
765
766 Test rebasing when the file we are merging in destination is empty
767
768 $ hg init test
769 $ cd test
770 $ echo a > foo
771 $ hg ci -Aqm 'added a to foo'
772
773 $ rm foo
774 $ touch foo
775 $ hg di
776 diff --git a/foo b/foo
777 --- a/foo
778 +++ b/foo
779 @@ -1,1 +0,0 @@
780 -a
781
782 $ hg ci -m "make foo an empty file"
783
784 $ hg up '.^'
785 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
786 $ echo b > foo
787 $ hg di
788 diff --git a/foo b/foo
789 --- a/foo
790 +++ b/foo
791 @@ -1,1 +1,1 @@
792 -a
793 +b
794 $ hg ci -m "add b to foo"
795 created new head
796
797 $ hg rebase -r . -d 1 --config ui.merge=internal:merge3
798 rebasing 2:fb62b706688e "add b to foo" (tip)
799 merging foo
800 hit merge conflicts; re-running rebase without in-memory merge
801 rebasing 2:fb62b706688e "add b to foo" (tip)
802 merging foo
803 warning: conflicts while merging foo! (edit, then use 'hg resolve --mark')
804 unresolved conflicts (see hg resolve, then hg rebase --continue)
805 [1]
General Comments 0
You need to be logged in to leave comments. Login now