##// END OF EJS Templates
merge with stable
Augie Fackler -
r45872:78cafd48 merge default
parent child Browse files
Show More
@@ -196,3 +196,4 b' 6d121acbb82e65fe4dd3c2318a1b61981b958492'
196 8fca7e8449a847e3cf1054f2c07b51237699fad3 0 iQJEBAABCAAuFiEEK8zhT1xnJaouqK63ucncgkqlvdUFAl6GDVQQHHJhZkBkdXJpbjQyLmNvbQAKCRC5ydyCSqW91egzEACNEyQwLWCQEeNyxXKuTsnXhYU/au7nSGOti/9+zg/22SSceMsVcIyNr2ZnkMf3hnzBjL7Efsthif0QXyfB0LZDXwNuDmNlDtUV2veyVGSDE2UqiSbDBRu6MYTvtfYX87RmSWla3HHO09pwpcrhxyHs3mliQsXyB2+D+ovTOIjYukQLnh34jQnwiWEYLDXkHEHHTpdXqAnA7tVen3ardLyTWgky6DUwlfcnoVsAPXnDkqQ9aE2w7SoAsNtEAddmkjKoYYdBkV5aUInU/DyFVF7qnlCcvWm+EkN1708xZUQ1KzdAyeeoIrMkBgpSoyeNQ9pcU3T7B100UxLo/FP/A7y96b2kHnKJU6fVyD3OeHvP9SeucurC6jn2YoG3e1wSOQcbEuCsdGjqgAHnKt2SMPsEBu2qJJcUdco9tANN5BdntBo7bLc/zcpXZH3TkRfRSndWXPaXDJaQNvbH7aLIUTCP9oQaqTN+9BQ+Egt7YsB4C58JZmC87FAuekDULc4LWK2gDPFf7F/PvBnMh7+YylPl/8LLrEnz2Q/GM0S1HLhBrDf6vzxV5wVzCu9Q2N0PCkg6lDAJFVWLTEbxcRukKxbyK88Yzrb4GuUY4F5V21fN4vuxkOay7eoiXUcHMN2IN+DwhNWQSm5pUnpqGTfCYj/ZBbAykP2UnVOClL6O2JQA2A==
196 8fca7e8449a847e3cf1054f2c07b51237699fad3 0 iQJEBAABCAAuFiEEK8zhT1xnJaouqK63ucncgkqlvdUFAl6GDVQQHHJhZkBkdXJpbjQyLmNvbQAKCRC5ydyCSqW91egzEACNEyQwLWCQEeNyxXKuTsnXhYU/au7nSGOti/9+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5oXq2Vt9O6sjgExLxr8zdud6w5hl9b8h2MrxyisgcnVR7efbumaRuNb8QZZPzk5QqlRxbaEcStyIXzAdar4fArQUY2vrmv1WyLJR3S/G3p8QkyWYL3CZNKjCAVxSa5ytS5Dr/bM2sWaEnIHqq+W6DOagpWV4uRRnwaId9tB9b0KBoFElXZRlaq0FlNYG8RLg65ZlkF+lj6RACO23epxapadcJwibDQiNYX20mcSEFDkSEgECnLQBecA2WZvw134RRbL3vuvB49SKS0ZEJ95myXMZa9kyIJY/g+oAFBuyZeK9O8DwGii0zFDOi6VWDTZzc3/15RRS6ehqQyYrLQntYtVGwHpxnUrp2kBjk3hDIvaYOcFbTnhTGcQCzckFnIZN2oxr5YZOI+Fpfak6RQTVhnHh0/
@@ -209,3 +209,4 b' 6d121acbb82e65fe4dd3c2318a1b61981b958492'
209 8fca7e8449a847e3cf1054f2c07b51237699fad3 5.3.2
209 8fca7e8449a847e3cf1054f2c07b51237699fad3 5.3.2
210 26ce8e7515036d3431a03aaeb7bc72dd96cb1112 5.4rc0
210 26ce8e7515036d3431a03aaeb7bc72dd96cb1112 5.4rc0
211 cf3e07d7648a4371ce584d15dd692e7a6845792f 5.4
211 cf3e07d7648a4371ce584d15dd692e7a6845792f 5.4
212 065704cbdbdbb05dcd6bb814eb9bbdd982211b28 5.4.1
@@ -368,7 +368,9 b' class rebaseruntime(object):'
368 skippedset.update(obsoleteextinctsuccessors)
368 skippedset.update(obsoleteextinctsuccessors)
369 _checkobsrebase(self.repo, self.ui, obsoleteset, skippedset)
369 _checkobsrebase(self.repo, self.ui, obsoleteset, skippedset)
370
370
371 def _prepareabortorcontinue(self, isabort, backup=True, suppwarns=False):
371 def _prepareabortorcontinue(
372 self, isabort, backup=True, suppwarns=False, dryrun=False, confirm=False
373 ):
372 self.resume = True
374 self.resume = True
373 try:
375 try:
374 self.restorestatus()
376 self.restorestatus()
@@ -391,7 +393,12 b' class rebaseruntime(object):'
391
393
392 if isabort:
394 if isabort:
393 backup = backup and self.backupf
395 backup = backup and self.backupf
394 return self._abort(backup=backup, suppwarns=suppwarns)
396 return self._abort(
397 backup=backup,
398 suppwarns=suppwarns,
399 dryrun=dryrun,
400 confirm=confirm,
401 )
395
402
396 def _preparenewrebase(self, destmap):
403 def _preparenewrebase(self, destmap):
397 if not destmap:
404 if not destmap:
@@ -750,7 +757,7 b' class rebaseruntime(object):'
750 ):
757 ):
751 bookmarks.activate(repo, self.activebookmark)
758 bookmarks.activate(repo, self.activebookmark)
752
759
753 def _abort(self, backup=True, suppwarns=False):
760 def _abort(self, backup=True, suppwarns=False, dryrun=False, confirm=False):
754 '''Restore the repository to its original state.'''
761 '''Restore the repository to its original state.'''
755
762
756 repo = self.repo
763 repo = self.repo
@@ -794,7 +801,10 b' class rebaseruntime(object):'
794
801
795 updateifonnodes = set(rebased)
802 updateifonnodes = set(rebased)
796 updateifonnodes.update(self.destmap.values())
803 updateifonnodes.update(self.destmap.values())
797 updateifonnodes.add(self.originalwd)
804
805 if not dryrun and not confirm:
806 updateifonnodes.add(self.originalwd)
807
798 shouldupdate = repo[b'.'].rev() in updateifonnodes
808 shouldupdate = repo[b'.'].rev() in updateifonnodes
799
809
800 # Update away from the rebase if necessary
810 # Update away from the rebase if necessary
@@ -1120,7 +1130,10 b' def _dryrunrebase(ui, repo, action, opts'
1120 rbsrt._finishrebase()
1130 rbsrt._finishrebase()
1121 else:
1131 else:
1122 rbsrt._prepareabortorcontinue(
1132 rbsrt._prepareabortorcontinue(
1123 isabort=True, backup=False, suppwarns=True
1133 isabort=True,
1134 backup=False,
1135 suppwarns=True,
1136 confirm=confirm,
1124 )
1137 )
1125 needsabort = False
1138 needsabort = False
1126 else:
1139 else:
@@ -1135,7 +1148,10 b' def _dryrunrebase(ui, repo, action, opts'
1135 if needsabort:
1148 if needsabort:
1136 # no need to store backup in case of dryrun
1149 # no need to store backup in case of dryrun
1137 rbsrt._prepareabortorcontinue(
1150 rbsrt._prepareabortorcontinue(
1138 isabort=True, backup=False, suppwarns=True
1151 isabort=True,
1152 backup=False,
1153 suppwarns=True,
1154 dryrun=opts.get(b'dry_run'),
1139 )
1155 )
1140
1156
1141
1157
@@ -1647,7 +1647,7 b' class Zeroconf(object):'
1647 and record.alias == info.name
1647 and record.alias == info.name
1648 ):
1648 ):
1649 if info.name.find(b'.') < 0:
1649 if info.name.find(b'.') < 0:
1650 info.name = b"%w.[%s:%d].%s" % (
1650 info.name = b"%s.[%s:%d].%s" % (
1651 info.name,
1651 info.name,
1652 info.address,
1652 info.address,
1653 info.port,
1653 info.port,
@@ -95,3 +95,9 b' Here is an example ignore file. ::'
95 # switch to regexp syntax.
95 # switch to regexp syntax.
96 syntax: regexp
96 syntax: regexp
97 ^\.pc/
97 ^\.pc/
98
99 Debugging
100 =========
101
102 Use the ``debugignore`` command to see if and why a file is ignored, or to
103 see the combined ignore pattern. See :hg:`help debugignore` for details.
@@ -143,6 +143,11 b' if ispy3:'
143
143
144 long = int
144 long = int
145
145
146 # Warning: sys.stdout.buffer and sys.stderr.buffer do not necessarily have
147 # the same buffering behavior as sys.stdout and sys.stderr. The interpreter
148 # initializes them with block-buffered streams or unbuffered streams (when
149 # the -u option or the PYTHONUNBUFFERED environment variable is set), never
150 # with a line-buffered stream.
146 # TODO: .buffer might not exist if std streams were replaced; we'll need
151 # TODO: .buffer might not exist if std streams were replaced; we'll need
147 # a silly wrapper to make a bytes stream backed by a unicode one.
152 # a silly wrapper to make a bytes stream backed by a unicode one.
148 stdin = sys.stdin.buffer
153 stdin = sys.stdin.buffer
@@ -651,7 +651,10 b' class revlog(object):'
651 nodemap_data = nodemaputil.persisted_data(self)
651 nodemap_data = nodemaputil.persisted_data(self)
652 if nodemap_data is not None:
652 if nodemap_data is not None:
653 docket = nodemap_data[0]
653 docket = nodemap_data[0]
654 if d[0][docket.tip_rev][7] == docket.tip_node:
654 if (
655 len(d[0]) > docket.tip_rev
656 and d[0][docket.tip_rev][7] == docket.tip_node
657 ):
655 # no changelog tampering
658 # no changelog tampering
656 self._nodemap_docket = docket
659 self._nodemap_docket = docket
657 index.update_nodemap_data(*nodemap_data)
660 index.update_nodemap_data(*nodemap_data)
@@ -23,10 +23,10 b' def mainfrozen():'
23 (portable, not much used).
23 (portable, not much used).
24 """
24 """
25 return (
25 return (
26 pycompat.safehasattr(sys, "frozen")
26 pycompat.safehasattr(sys, "frozen") # new py2exe
27 or pycompat.safehasattr(sys, "importers") # new py2exe
27 or pycompat.safehasattr(sys, "importers") # old py2exe
28 or imp.is_frozen("__main__") # old py2exe
28 or imp.is_frozen("__main__") # tools/freeze
29 ) # tools/freeze
29 )
30
30
31
31
32 # the location of data files matching the source code
32 # the location of data files matching the source code
@@ -210,7 +210,7 b' dependencies = ['
210 "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
210 "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
211 "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
211 "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
212 "memmap 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
212 "memmap 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
213 "micro-timer 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
213 "micro-timer 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
214 "pretty_assertions 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
214 "pretty_assertions 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
215 "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
215 "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
216 "rand_distr 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
216 "rand_distr 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -280,16 +280,16 b' dependencies = ['
280
280
281 [[package]]
281 [[package]]
282 name = "micro-timer"
282 name = "micro-timer"
283 version = "0.2.1"
283 version = "0.3.0"
284 source = "registry+https://github.com/rust-lang/crates.io-index"
284 source = "registry+https://github.com/rust-lang/crates.io-index"
285 dependencies = [
285 dependencies = [
286 "micro-timer-macros 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
286 "micro-timer-macros 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
287 "scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
287 "scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
288 ]
288 ]
289
289
290 [[package]]
290 [[package]]
291 name = "micro-timer-macros"
291 name = "micro-timer-macros"
292 version = "0.2.0"
292 version = "0.3.0"
293 source = "registry+https://github.com/rust-lang/crates.io-index"
293 source = "registry+https://github.com/rust-lang/crates.io-index"
294 dependencies = [
294 dependencies = [
295 "proc-macro2 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)",
295 "proc-macro2 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -672,8 +672,8 b' source = "registry+https://github.com/ru'
672 "checksum memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400"
672 "checksum memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400"
673 "checksum memmap 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b"
673 "checksum memmap 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b"
674 "checksum memoffset 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "75189eb85871ea5c2e2c15abbdd541185f63b408415e5051f5cac122d8c774b9"
674 "checksum memoffset 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "75189eb85871ea5c2e2c15abbdd541185f63b408415e5051f5cac122d8c774b9"
675 "checksum micro-timer 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "987429cd6162a80ed5ff44fc790f5090b1c6d617ac73a2e272965ed91201d79b"
675 "checksum micro-timer 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "25b31d6cb9112984323d05d7a353f272ae5d7a307074f9ab9b25c00121b8c947"
676 "checksum micro-timer-macros 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "43cec5c0b38783eb33ef7bccf4b250b7a085703e11f5f2238fa31969e629388a"
676 "checksum micro-timer-macros 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5694085dd384bb9e824207facc040c248d9df653f55e28c3ad0686958b448504"
677 "checksum num-integer 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "3f6ea62e9d81a77cd3ee9a2a5b9b609447857f3d358704331e4ef39eb247fcba"
677 "checksum num-integer 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "3f6ea62e9d81a77cd3ee9a2a5b9b609447857f3d358704331e4ef39eb247fcba"
678 "checksum num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "c62be47e61d1842b9170f0fdeec8eba98e60e90e5446449a0545e5152acd7096"
678 "checksum num-traits 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "c62be47e61d1842b9170f0fdeec8eba98e60e90e5446449a0545e5152acd7096"
679 "checksum num_cpus 1.12.0 (registry+https://github.com/rust-lang/crates.io-index)" = "46203554f085ff89c235cd12f7075f3233af9b11ed7c9e16dfe2560d03313ce6"
679 "checksum num_cpus 1.12.0 (registry+https://github.com/rust-lang/crates.io-index)" = "46203554f085ff89c235cd12f7075f3233af9b11ed7c9e16dfe2560d03313ce6"
@@ -148,7 +148,7 b' Create an extension to test bundle2 API'
148 > bundler.newpart(b'output', data=genraise(), mandatory=False)
148 > bundler.newpart(b'output', data=genraise(), mandatory=False)
149 >
149 >
150 > if path is None:
150 > if path is None:
151 > file = pycompat.stdout
151 > file = pycompat.stdout
152 > else:
152 > else:
153 > file = open(path, 'wb')
153 > file = open(path, 'wb')
154 >
154 >
@@ -436,10 +436,32 b' Check that a failing transaction will pr'
436 data-unused: 0.369% (rust !)
436 data-unused: 0.369% (rust !)
437 data-unused: 0.000% (no-pure no-rust !)
437 data-unused: 0.000% (no-pure no-rust !)
438 $ f --size --sha256 .hg/store/00changelog-*.nd
438 $ f --size --sha256 .hg/store/00changelog-*.nd
439 .hg/store/00changelog-????????????????.nd: size=121536, sha256=bb414468d225cf52d69132e1237afba34d4346ee2eb81b505027e6197b107f03 (glob) (pure !)
439 .hg/store/00changelog-????????????????.nd: size=123584, sha256=8c6cef6fd3d3fac291968793ee19a4be6d0b8375e9508bd5c7d4a8879e8df180 (glob) (pure !)
440 .hg/store/00changelog-????????????????.nd: size=121536, sha256=909ac727bc4d1c0fda5f7bff3c620c98bd4a2967c143405a1503439e33b377da (glob) (rust !)
440 .hg/store/00changelog-????????????????.nd: size=123584, sha256=eb9e9a4bcafdb5e1344bc8a0cbb3288b2106413b8efae6265fb8a7973d7e97f9 (glob) (rust !)
441 .hg/store/00changelog-????????????????.nd: size=121088, sha256=342d36d30d86dde67d3cb6c002606c4a75bcad665595d941493845066d9c8ee0 (glob) (no-pure no-rust !)
441 .hg/store/00changelog-????????????????.nd: size=121088, sha256=342d36d30d86dde67d3cb6c002606c4a75bcad665595d941493845066d9c8ee0 (glob) (no-pure no-rust !)
442
442
443 Check that removing content does not confuse the nodemap
444 --------------------------------------------------------
445
446 removing data with rollback
447
448 $ echo aso > a
449 $ hg ci -m a4
450 $ hg rollback
451 repository tip rolled back to revision 5005 (undo commit)
452 working directory now based on revision 5005
453 $ hg id -r .
454 90d5d3ba2fc4 tip
455
456 roming data with strip
457
458 $ echo aso > a
459 $ hg ci -m a4
460 $ hg --config extensions.strip= strip -r . --no-backup
461 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
462 $ hg id -r . --traceback
463 90d5d3ba2fc4 tip
464
443 Test upgrade / downgrade
465 Test upgrade / downgrade
444 ========================
466 ========================
445
467
@@ -293,6 +293,139 b' Reopen branch by rebase'
293 rebasing 9:e522577ccdbd "D"
293 rebasing 9:e522577ccdbd "D"
294 saved backup bundle to $TESTTMP/a1/.hg/strip-backup/8e279d293175-b023e27c-rebase.hg
294 saved backup bundle to $TESTTMP/a1/.hg/strip-backup/8e279d293175-b023e27c-rebase.hg
295
295
296 $ hg log -G -Tcompact
297 o 11[tip] be1dea60f2a6 2011-04-30 15:24 +0200 nicdumz
298 | D
299 |
300 o 10 ac34ce92632a 2011-04-30 15:24 +0200 nicdumz
301 | C
302 |
303 o 9 7bd665b6ce12 2011-04-30 15:24 +0200 nicdumz
304 | B
305 |
306 o 8 58e7c36e77f7 1970-01-01 00:00 +0000 test
307 | dev-two named branch
308 |
309 o 7 8e5a320651f3 2011-04-30 15:24 +0200 nicdumz
310 | H
311 |
312 @ 6 2b586e70108d 1970-01-01 00:00 +0000 test
313 | close b
314 |
315 o 5:3 3f9d5df8a707 1970-01-01 00:00 +0000 test
316 | create b
317 |
318 | o 4:3,1 aeefee77ab01 2011-04-30 15:24 +0200 nicdumz
319 |/| G
320 | |
321 o | 3 e908b85f3729 2011-04-30 15:24 +0200 nicdumz
322 | | F
323 | |
324 o | 2:0 bc8139ee757c 1970-01-01 00:00 +0000 test
325 | | dev-one named branch
326 | |
327 | o 1 9520eea781bc 2011-04-30 15:24 +0200 nicdumz
328 |/ E
329 |
330 o 0 cd010b8cd998 2011-04-30 15:24 +0200 nicdumz
331 A
332
333 $ echo A-mod > A
334 $ hg diff
335 diff -r 2b586e70108d A
336 --- a/A Thu Jan 01 00:00:00 1970 +0000
337 +++ b/A Thu Jan 01 00:00:00 1970 +0000
338 @@ -1,1 +1,1 @@
339 -A
340 +A-mod
341
342 --dry-run doesn't affect a dirty working directory that is unrelated to the
343 source or destination.
344
345 $ hg rebase -s tip -d 4 --dry-run
346 starting dry-run rebase; repository will not be changed
347 rebasing 11:be1dea60f2a6 "D" (tip)
348 dry-run rebase completed successfully; run without -n/--dry-run to perform this rebase
349 $ hg diff
350 diff -r 2b586e70108d A
351 --- a/A Thu Jan 01 00:00:00 1970 +0000
352 +++ b/A Thu Jan 01 00:00:00 1970 +0000
353 @@ -1,1 +1,1 @@
354 -A
355 +A-mod
356
357 Bailing out on --confirm doesn't affect a dirty working directory that is
358 unrelated to the source or destination.
359
360 $ echo A-mod > A
361 $ echo n | hg rebase -s tip -d 4 --confirm --config ui.interactive=True
362 starting in-memory rebase
363 rebasing 11:be1dea60f2a6 "D" (tip)
364 rebase completed successfully
365 apply changes (yn)? n
366 $ hg diff
367 diff -r 2b586e70108d A
368 --- a/A Thu Jan 01 00:00:00 1970 +0000
369 +++ b/A Thu Jan 01 00:00:00 1970 +0000
370 @@ -1,1 +1,1 @@
371 -A
372 +A-mod
373
374 $ echo A-mod > A
375 $ hg rebase -s tip -d 4 --confirm
376 starting in-memory rebase
377 rebasing 11:be1dea60f2a6 "D" (tip)
378 rebase completed successfully
379 apply changes (yn)? y
380 saved backup bundle to $TESTTMP/a1/.hg/strip-backup/be1dea60f2a6-ca6d2dac-rebase.hg
381 $ hg diff
382 diff -r 2b586e70108d A
383 --- a/A Thu Jan 01 00:00:00 1970 +0000
384 +++ b/A Thu Jan 01 00:00:00 1970 +0000
385 @@ -1,1 +1,1 @@
386 -A
387 +A-mod
388
389 Attempting to rebase the parent of a dirty working directory will abort, without
390 mangling the working directory...
391
392 $ hg rebase -s 5 -d 4 --dry-run
393 starting dry-run rebase; repository will not be changed
394 abort: uncommitted changes
395 [255]
396 $ hg diff
397 diff -r 2b586e70108d A
398 --- a/A Thu Jan 01 00:00:00 1970 +0000
399 +++ b/A Thu Jan 01 00:00:00 1970 +0000
400 @@ -1,1 +1,1 @@
401 -A
402 +A-mod
403
404 ... ditto for --confirm
405
406 $ echo n | hg rebase -s 5 -d 4 --confirm --config ui.interactive=True
407 starting in-memory rebase
408 abort: uncommitted changes
409 [255]
410 $ hg diff
411 diff -r 2b586e70108d A
412 --- a/A Thu Jan 01 00:00:00 1970 +0000
413 +++ b/A Thu Jan 01 00:00:00 1970 +0000
414 @@ -1,1 +1,1 @@
415 -A
416 +A-mod
417 $ hg rebase -s 5 -d 4 --confirm
418 starting in-memory rebase
419 abort: uncommitted changes
420 [255]
421 $ hg diff
422 diff -r 2b586e70108d A
423 --- a/A Thu Jan 01 00:00:00 1970 +0000
424 +++ b/A Thu Jan 01 00:00:00 1970 +0000
425 @@ -1,1 +1,1 @@
426 -A
427 +A-mod
428
296 $ cd ..
429 $ cd ..
297
430
298 Rebase to other head on branch
431 Rebase to other head on branch
General Comments 0
You need to be logged in to leave comments. Login now