##// END OF EJS Templates
localrepo: reuse parent manifest in commitctx if no files have changed...
Peter Arrenbrecht -
r14162:301725c3 default
parent child Browse files
Show More
@@ -1043,8 +1043,6 b' class localrepository(repo.repository):'
1043 tr = lock = None
1043 tr = lock = None
1044 removed = list(ctx.removed())
1044 removed = list(ctx.removed())
1045 p1, p2 = ctx.p1(), ctx.p2()
1045 p1, p2 = ctx.p1(), ctx.p2()
1046 m1 = p1.manifest().copy()
1047 m2 = p2.manifest()
1048 user = ctx.user()
1046 user = ctx.user()
1049
1047
1050 lock = self.lock()
1048 lock = self.lock()
@@ -1052,40 +1050,48 b' class localrepository(repo.repository):'
1052 tr = self.transaction("commit")
1050 tr = self.transaction("commit")
1053 trp = weakref.proxy(tr)
1051 trp = weakref.proxy(tr)
1054
1052
1055 # check in files
1053 if ctx.files():
1056 new = {}
1054 m1 = p1.manifest().copy()
1057 changed = []
1055 m2 = p2.manifest()
1058 linkrev = len(self)
1056
1059 for f in sorted(ctx.modified() + ctx.added()):
1057 # check in files
1060 self.ui.note(f + "\n")
1058 new = {}
1061 try:
1059 changed = []
1062 fctx = ctx[f]
1060 linkrev = len(self)
1063 new[f] = self._filecommit(fctx, m1, m2, linkrev, trp,
1061 for f in sorted(ctx.modified() + ctx.added()):
1064 changed)
1062 self.ui.note(f + "\n")
1065 m1.set(f, fctx.flags())
1063 try:
1066 except OSError, inst:
1064 fctx = ctx[f]
1067 self.ui.warn(_("trouble committing %s!\n") % f)
1065 new[f] = self._filecommit(fctx, m1, m2, linkrev, trp,
1068 raise
1066 changed)
1069 except IOError, inst:
1067 m1.set(f, fctx.flags())
1070 errcode = getattr(inst, 'errno', errno.ENOENT)
1068 except OSError, inst:
1071 if error or errcode and errcode != errno.ENOENT:
1072 self.ui.warn(_("trouble committing %s!\n") % f)
1069 self.ui.warn(_("trouble committing %s!\n") % f)
1073 raise
1070 raise
1074 else:
1071 except IOError, inst:
1075 removed.append(f)
1072 errcode = getattr(inst, 'errno', errno.ENOENT)
1073 if error or errcode and errcode != errno.ENOENT:
1074 self.ui.warn(_("trouble committing %s!\n") % f)
1075 raise
1076 else:
1077 removed.append(f)
1076
1078
1077 # update manifest
1079 # update manifest
1078 m1.update(new)
1080 m1.update(new)
1079 removed = [f for f in sorted(removed) if f in m1 or f in m2]
1081 removed = [f for f in sorted(removed) if f in m1 or f in m2]
1080 drop = [f for f in removed if f in m1]
1082 drop = [f for f in removed if f in m1]
1081 for f in drop:
1083 for f in drop:
1082 del m1[f]
1084 del m1[f]
1083 mn = self.manifest.add(m1, trp, linkrev, p1.manifestnode(),
1085 mn = self.manifest.add(m1, trp, linkrev, p1.manifestnode(),
1084 p2.manifestnode(), (new, drop))
1086 p2.manifestnode(), (new, drop))
1087 files = changed + removed
1088 else:
1089 mn = p1.manifestnode()
1090 files = []
1085
1091
1086 # update changelog
1092 # update changelog
1087 self.changelog.delayupdate()
1093 self.changelog.delayupdate()
1088 n = self.changelog.add(mn, changed + removed, ctx.description(),
1094 n = self.changelog.add(mn, files, ctx.description(),
1089 trp, p1.node(), p2.node(),
1095 trp, p1.node(), p2.node(),
1090 user, ctx.date(), ctx.extra().copy())
1096 user, ctx.date(), ctx.extra().copy())
1091 p = lambda: self.changelog.writepending() and self.root or ""
1097 p = lambda: self.changelog.writepending() and self.root or ""
@@ -1365,7 +1365,7 b' No branch acls specified'
1365 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
1365 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
1366 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1366 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1367 911600dab2ae7a9baff75958b84fe606851ce955
1367 911600dab2ae7a9baff75958b84fe606851ce955
1368 4ea792ff64284af438188103a0ee8aca1724fb8c
1368 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1369 adding changesets
1369 adding changesets
1370 bundling: 1 changesets
1370 bundling: 1 changesets
1371 bundling: 2 changesets
1371 bundling: 2 changesets
@@ -1386,7 +1386,7 b' No branch acls specified'
1386 changesets: 3 chunks
1386 changesets: 3 chunks
1387 add changeset 911600dab2ae
1387 add changeset 911600dab2ae
1388 changesets: 4 chunks
1388 changesets: 4 chunks
1389 add changeset 4ea792ff6428
1389 add changeset e8fc755d4d82
1390 adding manifests
1390 adding manifests
1391 manifests: 1/4 chunks (25.00%)
1391 manifests: 1/4 chunks (25.00%)
1392 manifests: 2/4 chunks (50.00%)
1392 manifests: 2/4 chunks (50.00%)
@@ -1413,13 +1413,13 b' No branch acls specified'
1413 acl: allowing changeset f9cafe1212c8
1413 acl: allowing changeset f9cafe1212c8
1414 acl: branch access granted: "911600dab2ae" on branch "default"
1414 acl: branch access granted: "911600dab2ae" on branch "default"
1415 acl: allowing changeset 911600dab2ae
1415 acl: allowing changeset 911600dab2ae
1416 acl: branch access granted: "4ea792ff6428" on branch "foobar"
1416 acl: branch access granted: "e8fc755d4d82" on branch "foobar"
1417 acl: allowing changeset 4ea792ff6428
1417 acl: allowing changeset e8fc755d4d82
1418 updating the branch cache
1418 updating the branch cache
1419 checking for updated bookmarks
1419 checking for updated bookmarks
1420 repository tip rolled back to revision 2 (undo push)
1420 repository tip rolled back to revision 2 (undo push)
1421 working directory now based on revision 2
1421 working directory now based on revision 2
1422 2:07e028174695
1422 2:fb35475503ef
1423
1423
1424
1424
1425 Branch acl deny test
1425 Branch acl deny test
@@ -1443,7 +1443,7 b' Branch acl deny test'
1443 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
1443 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
1444 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1444 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1445 911600dab2ae7a9baff75958b84fe606851ce955
1445 911600dab2ae7a9baff75958b84fe606851ce955
1446 4ea792ff64284af438188103a0ee8aca1724fb8c
1446 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1447 adding changesets
1447 adding changesets
1448 bundling: 1 changesets
1448 bundling: 1 changesets
1449 bundling: 2 changesets
1449 bundling: 2 changesets
@@ -1464,7 +1464,7 b' Branch acl deny test'
1464 changesets: 3 chunks
1464 changesets: 3 chunks
1465 add changeset 911600dab2ae
1465 add changeset 911600dab2ae
1466 changesets: 4 chunks
1466 changesets: 4 chunks
1467 add changeset 4ea792ff6428
1467 add changeset e8fc755d4d82
1468 adding manifests
1468 adding manifests
1469 manifests: 1/4 chunks (25.00%)
1469 manifests: 1/4 chunks (25.00%)
1470 manifests: 2/4 chunks (50.00%)
1470 manifests: 2/4 chunks (50.00%)
@@ -1491,12 +1491,12 b' Branch acl deny test'
1491 acl: allowing changeset f9cafe1212c8
1491 acl: allowing changeset f9cafe1212c8
1492 acl: branch access granted: "911600dab2ae" on branch "default"
1492 acl: branch access granted: "911600dab2ae" on branch "default"
1493 acl: allowing changeset 911600dab2ae
1493 acl: allowing changeset 911600dab2ae
1494 error: pretxnchangegroup.acl hook failed: acl: user "astro" denied on branch "foobar" (changeset "4ea792ff6428")
1494 error: pretxnchangegroup.acl hook failed: acl: user "astro" denied on branch "foobar" (changeset "e8fc755d4d82")
1495 transaction abort!
1495 transaction abort!
1496 rollback completed
1496 rollback completed
1497 abort: acl: user "astro" denied on branch "foobar" (changeset "4ea792ff6428")
1497 abort: acl: user "astro" denied on branch "foobar" (changeset "e8fc755d4d82")
1498 no rollback information available
1498 no rollback information available
1499 2:07e028174695
1499 2:fb35475503ef
1500
1500
1501
1501
1502 Branch acl empty allow test
1502 Branch acl empty allow test
@@ -1518,7 +1518,7 b' Branch acl empty allow test'
1518 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
1518 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
1519 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1519 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1520 911600dab2ae7a9baff75958b84fe606851ce955
1520 911600dab2ae7a9baff75958b84fe606851ce955
1521 4ea792ff64284af438188103a0ee8aca1724fb8c
1521 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1522 adding changesets
1522 adding changesets
1523 bundling: 1 changesets
1523 bundling: 1 changesets
1524 bundling: 2 changesets
1524 bundling: 2 changesets
@@ -1539,7 +1539,7 b' Branch acl empty allow test'
1539 changesets: 3 chunks
1539 changesets: 3 chunks
1540 add changeset 911600dab2ae
1540 add changeset 911600dab2ae
1541 changesets: 4 chunks
1541 changesets: 4 chunks
1542 add changeset 4ea792ff6428
1542 add changeset e8fc755d4d82
1543 adding manifests
1543 adding manifests
1544 manifests: 1/4 chunks (25.00%)
1544 manifests: 1/4 chunks (25.00%)
1545 manifests: 2/4 chunks (50.00%)
1545 manifests: 2/4 chunks (50.00%)
@@ -1565,7 +1565,7 b' Branch acl empty allow test'
1565 rollback completed
1565 rollback completed
1566 abort: acl: user "astro" not allowed on branch "default" (changeset "ef1ea85a6374")
1566 abort: acl: user "astro" not allowed on branch "default" (changeset "ef1ea85a6374")
1567 no rollback information available
1567 no rollback information available
1568 2:07e028174695
1568 2:fb35475503ef
1569
1569
1570
1570
1571 Branch acl allow other
1571 Branch acl allow other
@@ -1589,7 +1589,7 b' Branch acl allow other'
1589 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
1589 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
1590 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1590 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1591 911600dab2ae7a9baff75958b84fe606851ce955
1591 911600dab2ae7a9baff75958b84fe606851ce955
1592 4ea792ff64284af438188103a0ee8aca1724fb8c
1592 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1593 adding changesets
1593 adding changesets
1594 bundling: 1 changesets
1594 bundling: 1 changesets
1595 bundling: 2 changesets
1595 bundling: 2 changesets
@@ -1610,7 +1610,7 b' Branch acl allow other'
1610 changesets: 3 chunks
1610 changesets: 3 chunks
1611 add changeset 911600dab2ae
1611 add changeset 911600dab2ae
1612 changesets: 4 chunks
1612 changesets: 4 chunks
1613 add changeset 4ea792ff6428
1613 add changeset e8fc755d4d82
1614 adding manifests
1614 adding manifests
1615 manifests: 1/4 chunks (25.00%)
1615 manifests: 1/4 chunks (25.00%)
1616 manifests: 2/4 chunks (50.00%)
1616 manifests: 2/4 chunks (50.00%)
@@ -1636,7 +1636,7 b' Branch acl allow other'
1636 rollback completed
1636 rollback completed
1637 abort: acl: user "astro" not allowed on branch "default" (changeset "ef1ea85a6374")
1637 abort: acl: user "astro" not allowed on branch "default" (changeset "ef1ea85a6374")
1638 no rollback information available
1638 no rollback information available
1639 2:07e028174695
1639 2:fb35475503ef
1640
1640
1641 $ do_push george
1641 $ do_push george
1642 Pushing as user george
1642 Pushing as user george
@@ -1654,7 +1654,7 b' Branch acl allow other'
1654 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
1654 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
1655 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1655 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1656 911600dab2ae7a9baff75958b84fe606851ce955
1656 911600dab2ae7a9baff75958b84fe606851ce955
1657 4ea792ff64284af438188103a0ee8aca1724fb8c
1657 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1658 adding changesets
1658 adding changesets
1659 bundling: 1 changesets
1659 bundling: 1 changesets
1660 bundling: 2 changesets
1660 bundling: 2 changesets
@@ -1675,7 +1675,7 b' Branch acl allow other'
1675 changesets: 3 chunks
1675 changesets: 3 chunks
1676 add changeset 911600dab2ae
1676 add changeset 911600dab2ae
1677 changesets: 4 chunks
1677 changesets: 4 chunks
1678 add changeset 4ea792ff6428
1678 add changeset e8fc755d4d82
1679 adding manifests
1679 adding manifests
1680 manifests: 1/4 chunks (25.00%)
1680 manifests: 1/4 chunks (25.00%)
1681 manifests: 2/4 chunks (50.00%)
1681 manifests: 2/4 chunks (50.00%)
@@ -1702,13 +1702,13 b' Branch acl allow other'
1702 acl: allowing changeset f9cafe1212c8
1702 acl: allowing changeset f9cafe1212c8
1703 acl: branch access granted: "911600dab2ae" on branch "default"
1703 acl: branch access granted: "911600dab2ae" on branch "default"
1704 acl: allowing changeset 911600dab2ae
1704 acl: allowing changeset 911600dab2ae
1705 acl: branch access granted: "4ea792ff6428" on branch "foobar"
1705 acl: branch access granted: "e8fc755d4d82" on branch "foobar"
1706 acl: allowing changeset 4ea792ff6428
1706 acl: allowing changeset e8fc755d4d82
1707 updating the branch cache
1707 updating the branch cache
1708 checking for updated bookmarks
1708 checking for updated bookmarks
1709 repository tip rolled back to revision 2 (undo push)
1709 repository tip rolled back to revision 2 (undo push)
1710 working directory now based on revision 2
1710 working directory now based on revision 2
1711 2:07e028174695
1711 2:fb35475503ef
1712
1712
1713
1713
1714 Branch acl conflicting allow
1714 Branch acl conflicting allow
@@ -1737,7 +1737,7 b' push foobar into the remote'
1737 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
1737 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
1738 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1738 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1739 911600dab2ae7a9baff75958b84fe606851ce955
1739 911600dab2ae7a9baff75958b84fe606851ce955
1740 4ea792ff64284af438188103a0ee8aca1724fb8c
1740 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1741 adding changesets
1741 adding changesets
1742 bundling: 1 changesets
1742 bundling: 1 changesets
1743 bundling: 2 changesets
1743 bundling: 2 changesets
@@ -1758,7 +1758,7 b' push foobar into the remote'
1758 changesets: 3 chunks
1758 changesets: 3 chunks
1759 add changeset 911600dab2ae
1759 add changeset 911600dab2ae
1760 changesets: 4 chunks
1760 changesets: 4 chunks
1761 add changeset 4ea792ff6428
1761 add changeset e8fc755d4d82
1762 adding manifests
1762 adding manifests
1763 manifests: 1/4 chunks (25.00%)
1763 manifests: 1/4 chunks (25.00%)
1764 manifests: 2/4 chunks (50.00%)
1764 manifests: 2/4 chunks (50.00%)
@@ -1785,13 +1785,13 b' push foobar into the remote'
1785 acl: allowing changeset f9cafe1212c8
1785 acl: allowing changeset f9cafe1212c8
1786 acl: branch access granted: "911600dab2ae" on branch "default"
1786 acl: branch access granted: "911600dab2ae" on branch "default"
1787 acl: allowing changeset 911600dab2ae
1787 acl: allowing changeset 911600dab2ae
1788 acl: branch access granted: "4ea792ff6428" on branch "foobar"
1788 acl: branch access granted: "e8fc755d4d82" on branch "foobar"
1789 acl: allowing changeset 4ea792ff6428
1789 acl: allowing changeset e8fc755d4d82
1790 updating the branch cache
1790 updating the branch cache
1791 checking for updated bookmarks
1791 checking for updated bookmarks
1792 repository tip rolled back to revision 2 (undo push)
1792 repository tip rolled back to revision 2 (undo push)
1793 working directory now based on revision 2
1793 working directory now based on revision 2
1794 2:07e028174695
1794 2:fb35475503ef
1795
1795
1796 Branch acl conflicting deny
1796 Branch acl conflicting deny
1797
1797
@@ -1819,7 +1819,7 b' Branch acl conflicting deny'
1819 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
1819 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
1820 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1820 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd
1821 911600dab2ae7a9baff75958b84fe606851ce955
1821 911600dab2ae7a9baff75958b84fe606851ce955
1822 4ea792ff64284af438188103a0ee8aca1724fb8c
1822 e8fc755d4d8217ee5b0c2bb41558c40d43b92c01
1823 adding changesets
1823 adding changesets
1824 bundling: 1 changesets
1824 bundling: 1 changesets
1825 bundling: 2 changesets
1825 bundling: 2 changesets
@@ -1840,7 +1840,7 b' Branch acl conflicting deny'
1840 changesets: 3 chunks
1840 changesets: 3 chunks
1841 add changeset 911600dab2ae
1841 add changeset 911600dab2ae
1842 changesets: 4 chunks
1842 changesets: 4 chunks
1843 add changeset 4ea792ff6428
1843 add changeset e8fc755d4d82
1844 adding manifests
1844 adding manifests
1845 manifests: 1/4 chunks (25.00%)
1845 manifests: 1/4 chunks (25.00%)
1846 manifests: 2/4 chunks (50.00%)
1846 manifests: 2/4 chunks (50.00%)
@@ -1866,5 +1866,5 b' Branch acl conflicting deny'
1866 rollback completed
1866 rollback completed
1867 abort: acl: user "george" denied on branch "default" (changeset "ef1ea85a6374")
1867 abort: acl: user "george" denied on branch "default" (changeset "ef1ea85a6374")
1868 no rollback information available
1868 no rollback information available
1869 2:07e028174695
1869 2:fb35475503ef
1870
1870
@@ -19,7 +19,7 b' Create a branch with the same name as th'
19 This is what we have:
19 This is what we have:
20
20
21 $ hg log
21 $ hg log
22 changeset: 2:02b1af9b58c2
22 changeset: 2:10519b3f489a
23 branch: branchortag
23 branch: branchortag
24 tag: tip
24 tag: tip
25 user: test
25 user: test
@@ -53,7 +53,7 b' Updating to the branch:'
53 $ hg up 'branch(branchortag)'
53 $ hg up 'branch(branchortag)'
54 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
54 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
55 $ hg parents
55 $ hg parents
56 changeset: 2:02b1af9b58c2
56 changeset: 2:10519b3f489a
57 branch: branchortag
57 branch: branchortag
58 tag: tip
58 tag: tip
59 user: test
59 user: test
@@ -230,7 +230,7 b''
230 default 0:19709c5a4e75 (inactive)
230 default 0:19709c5a4e75 (inactive)
231 $ hg branches -c
231 $ hg branches -c
232 a branch name much longer than the default justification used by branches 7:10ff5895aa57
232 a branch name much longer than the default justification used by branches 7:10ff5895aa57
233 b 12:2da6583810df (closed)
233 b 12:e3d49c0575d8 (closed)
234 c 6:589736a22561 (inactive)
234 c 6:589736a22561 (inactive)
235 a 5:d8cbc61dbaa6 (inactive)
235 a 5:d8cbc61dbaa6 (inactive)
236 default 0:19709c5a4e75 (inactive)
236 default 0:19709c5a4e75 (inactive)
@@ -240,7 +240,7 b''
240 no open branch heads found on branches b
240 no open branch heads found on branches b
241 [1]
241 [1]
242 $ hg heads --closed b
242 $ hg heads --closed b
243 changeset: 12:2da6583810df
243 changeset: 12:e3d49c0575d8
244 branch: b
244 branch: b
245 tag: tip
245 tag: tip
246 parent: 8:eebb944467c9
246 parent: 8:eebb944467c9
@@ -248,7 +248,7 b''
248 date: Thu Jan 01 00:00:09 1970 +0000
248 date: Thu Jan 01 00:00:09 1970 +0000
249 summary: close this part branch too
249 summary: close this part branch too
250
250
251 changeset: 11:c84627f3c15d
251 changeset: 11:d3f163457ebf
252 branch: b
252 branch: b
253 user: test
253 user: test
254 date: Thu Jan 01 00:00:09 1970 +0000
254 date: Thu Jan 01 00:00:09 1970 +0000
@@ -261,13 +261,13 b''
261 --- branch b is back in action
261 --- branch b is back in action
262
262
263 $ hg branches -a
263 $ hg branches -a
264 b 13:6ac12926b8c3
264 b 13:e23b5505d1ad
265 a branch name much longer than the default justification used by branches 7:10ff5895aa57
265 a branch name much longer than the default justification used by branches 7:10ff5895aa57
266
266
267 ---- test heads listings
267 ---- test heads listings
268
268
269 $ hg heads
269 $ hg heads
270 changeset: 13:6ac12926b8c3
270 changeset: 13:e23b5505d1ad
271 branch: b
271 branch: b
272 tag: tip
272 tag: tip
273 user: test
273 user: test
@@ -325,7 +325,7 b' branch a'
325 branch b
325 branch b
326
326
327 $ hg heads b
327 $ hg heads b
328 changeset: 13:6ac12926b8c3
328 changeset: 13:e23b5505d1ad
329 branch: b
329 branch: b
330 tag: tip
330 tag: tip
331 user: test
331 user: test
@@ -333,14 +333,14 b' branch b'
333 summary: reopen branch with a change
333 summary: reopen branch with a change
334
334
335 $ hg heads --closed b
335 $ hg heads --closed b
336 changeset: 13:6ac12926b8c3
336 changeset: 13:e23b5505d1ad
337 branch: b
337 branch: b
338 tag: tip
338 tag: tip
339 user: test
339 user: test
340 date: Thu Jan 01 00:00:09 1970 +0000
340 date: Thu Jan 01 00:00:09 1970 +0000
341 summary: reopen branch with a change
341 summary: reopen branch with a change
342
342
343 changeset: 11:c84627f3c15d
343 changeset: 11:d3f163457ebf
344 branch: b
344 branch: b
345 user: test
345 user: test
346 date: Thu Jan 01 00:00:09 1970 +0000
346 date: Thu Jan 01 00:00:09 1970 +0000
@@ -359,7 +359,7 b' default branch colors:'
359 $ hg up -C b
359 $ hg up -C b
360 2 files updated, 0 files merged, 3 files removed, 0 files unresolved
360 2 files updated, 0 files merged, 3 files removed, 0 files unresolved
361 $ hg branches --color=always
361 $ hg branches --color=always
362 \x1b[0;32mb\x1b[0m \x1b[0;33m 13:6ac12926b8c3\x1b[0m (esc)
362 \x1b[0;32mb\x1b[0m \x1b[0;33m 13:e23b5505d1ad\x1b[0m (esc)
363 \x1b[0;0ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;33m7:10ff5895aa57\x1b[0m (esc)
363 \x1b[0;0ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;33m7:10ff5895aa57\x1b[0m (esc)
364 \x1b[0;0ma\x1b[0m \x1b[0;33m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
364 \x1b[0;0ma\x1b[0m \x1b[0;33m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
365 \x1b[0;0mdefault\x1b[0m \x1b[0;33m 0:19709c5a4e75\x1b[0m (inactive) (esc)
365 \x1b[0;0mdefault\x1b[0m \x1b[0;33m 0:19709c5a4e75\x1b[0m (inactive) (esc)
@@ -367,9 +367,9 b' default branch colors:'
367 default closed branch color:
367 default closed branch color:
368
368
369 $ hg branches --color=always --closed
369 $ hg branches --color=always --closed
370 \x1b[0;32mb\x1b[0m \x1b[0;33m 13:6ac12926b8c3\x1b[0m (esc)
370 \x1b[0;32mb\x1b[0m \x1b[0;33m 13:e23b5505d1ad\x1b[0m (esc)
371 \x1b[0;0ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;33m7:10ff5895aa57\x1b[0m (esc)
371 \x1b[0;0ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;33m7:10ff5895aa57\x1b[0m (esc)
372 \x1b[0;30;1mc\x1b[0m \x1b[0;33m 14:717d2e6fabe1\x1b[0m (closed) (esc)
372 \x1b[0;30;1mc\x1b[0m \x1b[0;33m 14:f894c25619d3\x1b[0m (closed) (esc)
373 \x1b[0;0ma\x1b[0m \x1b[0;33m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
373 \x1b[0;0ma\x1b[0m \x1b[0;33m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
374 \x1b[0;0mdefault\x1b[0m \x1b[0;33m 0:19709c5a4e75\x1b[0m (inactive) (esc)
374 \x1b[0;0mdefault\x1b[0m \x1b[0;33m 0:19709c5a4e75\x1b[0m (inactive) (esc)
375
375
@@ -385,7 +385,7 b' default closed branch color:'
385 custom branch colors:
385 custom branch colors:
386
386
387 $ hg branches --color=always
387 $ hg branches --color=always
388 \x1b[0;31mb\x1b[0m \x1b[0;36m 13:6ac12926b8c3\x1b[0m (esc)
388 \x1b[0;31mb\x1b[0m \x1b[0;36m 13:e23b5505d1ad\x1b[0m (esc)
389 \x1b[0;32ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;36m7:10ff5895aa57\x1b[0m (esc)
389 \x1b[0;32ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;36m7:10ff5895aa57\x1b[0m (esc)
390 \x1b[0;35ma\x1b[0m \x1b[0;36m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
390 \x1b[0;35ma\x1b[0m \x1b[0;36m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
391 \x1b[0;35mdefault\x1b[0m \x1b[0;36m 0:19709c5a4e75\x1b[0m (inactive) (esc)
391 \x1b[0;35mdefault\x1b[0m \x1b[0;36m 0:19709c5a4e75\x1b[0m (inactive) (esc)
@@ -393,8 +393,8 b' custom branch colors:'
393 custom closed branch color:
393 custom closed branch color:
394
394
395 $ hg branches --color=always --closed
395 $ hg branches --color=always --closed
396 \x1b[0;31mb\x1b[0m \x1b[0;36m 13:6ac12926b8c3\x1b[0m (esc)
396 \x1b[0;31mb\x1b[0m \x1b[0;36m 13:e23b5505d1ad\x1b[0m (esc)
397 \x1b[0;32ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;36m7:10ff5895aa57\x1b[0m (esc)
397 \x1b[0;32ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;36m7:10ff5895aa57\x1b[0m (esc)
398 \x1b[0;34mc\x1b[0m \x1b[0;36m 14:717d2e6fabe1\x1b[0m (closed) (esc)
398 \x1b[0;34mc\x1b[0m \x1b[0;36m 14:f894c25619d3\x1b[0m (closed) (esc)
399 \x1b[0;35ma\x1b[0m \x1b[0;36m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
399 \x1b[0;35ma\x1b[0m \x1b[0;36m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
400 \x1b[0;35mdefault\x1b[0m \x1b[0;36m 0:19709c5a4e75\x1b[0m (inactive) (esc)
400 \x1b[0;35mdefault\x1b[0m \x1b[0;36m 0:19709c5a4e75\x1b[0m (inactive) (esc)
@@ -77,13 +77,13 b' Compact style works:'
77 7:-1 29114dbae42b 1970-01-12 13:46 +0000 user
77 7:-1 29114dbae42b 1970-01-12 13:46 +0000 user
78 second
78 second
79
79
80 6:5,4 c7b487c6c50e 1970-01-18 08:40 +0000 person
80 6:5,4 d41e714fe50d 1970-01-18 08:40 +0000 person
81 merge
81 merge
82
82
83 5:3 13207e5a10d9 1970-01-18 08:40 +0000 person
83 5:3 13207e5a10d9 1970-01-18 08:40 +0000 person
84 new head
84 new head
85
85
86 4 32a18f097fcc 1970-01-17 04:53 +0000 person
86 4 bbe44766e73d 1970-01-17 04:53 +0000 person
87 new branch
87 new branch
88
88
89 3 10e46f2dcbf4 1970-01-16 01:06 +0000 person
89 3 10e46f2dcbf4 1970-01-16 01:06 +0000 person
@@ -106,13 +106,13 b' Compact style works:'
106 7:-1 29114dbae42b 1970-01-12 13:46 +0000 User Name <user@hostname>
106 7:-1 29114dbae42b 1970-01-12 13:46 +0000 User Name <user@hostname>
107 second
107 second
108
108
109 6:5,4 c7b487c6c50e 1970-01-18 08:40 +0000 person
109 6:5,4 d41e714fe50d 1970-01-18 08:40 +0000 person
110 merge
110 merge
111
111
112 5:3 13207e5a10d9 1970-01-18 08:40 +0000 person
112 5:3 13207e5a10d9 1970-01-18 08:40 +0000 person
113 new head
113 new head
114
114
115 4 32a18f097fcc 1970-01-17 04:53 +0000 person
115 4 bbe44766e73d 1970-01-17 04:53 +0000 person
116 new branch
116 new branch
117
117
118 3 10e46f2dcbf4 1970-01-16 01:06 +0000 person
118 3 10e46f2dcbf4 1970-01-16 01:06 +0000 person
@@ -139,13 +139,13 b' Compact style works:'
139 7:-1,-1 29114dbae42b 1970-01-12 13:46 +0000 User Name <user@hostname>
139 7:-1,-1 29114dbae42b 1970-01-12 13:46 +0000 User Name <user@hostname>
140 second
140 second
141
141
142 6:5,4 c7b487c6c50e 1970-01-18 08:40 +0000 person
142 6:5,4 d41e714fe50d 1970-01-18 08:40 +0000 person
143 merge
143 merge
144
144
145 5:3,-1 13207e5a10d9 1970-01-18 08:40 +0000 person
145 5:3,-1 13207e5a10d9 1970-01-18 08:40 +0000 person
146 new head
146 new head
147
147
148 4:3,-1 32a18f097fcc 1970-01-17 04:53 +0000 person
148 4:3,-1 bbe44766e73d 1970-01-17 04:53 +0000 person
149 new branch
149 new branch
150
150
151 3:2,-1 10e46f2dcbf4 1970-01-16 01:06 +0000 person
151 3:2,-1 10e46f2dcbf4 1970-01-16 01:06 +0000 person
@@ -182,9 +182,9 b' Test xml styles:'
182 <date>1970-01-12T13:46:40+00:00</date>
182 <date>1970-01-12T13:46:40+00:00</date>
183 <msg xml:space="preserve">second</msg>
183 <msg xml:space="preserve">second</msg>
184 </logentry>
184 </logentry>
185 <logentry revision="6" node="c7b487c6c50ef1cf464cafdc4f4f5e615fc5999f">
185 <logentry revision="6" node="d41e714fe50d9e4a5f11b4d595d543481b5f980b">
186 <parent revision="5" node="13207e5a10d9fd28ec424934298e176197f2c67f" />
186 <parent revision="5" node="13207e5a10d9fd28ec424934298e176197f2c67f" />
187 <parent revision="4" node="32a18f097fcccf76ef282f62f8a85b3adf8d13c4" />
187 <parent revision="4" node="bbe44766e73d5f11ed2177f1838de10c53ef3e74" />
188 <author email="person">person</author>
188 <author email="person">person</author>
189 <date>1970-01-18T08:40:01+00:00</date>
189 <date>1970-01-18T08:40:01+00:00</date>
190 <msg xml:space="preserve">merge</msg>
190 <msg xml:space="preserve">merge</msg>
@@ -195,7 +195,7 b' Test xml styles:'
195 <date>1970-01-18T08:40:00+00:00</date>
195 <date>1970-01-18T08:40:00+00:00</date>
196 <msg xml:space="preserve">new head</msg>
196 <msg xml:space="preserve">new head</msg>
197 </logentry>
197 </logentry>
198 <logentry revision="4" node="32a18f097fcccf76ef282f62f8a85b3adf8d13c4">
198 <logentry revision="4" node="bbe44766e73d5f11ed2177f1838de10c53ef3e74">
199 <branch>foo</branch>
199 <branch>foo</branch>
200 <author email="person">person</author>
200 <author email="person">person</author>
201 <date>1970-01-17T04:53:20+00:00</date>
201 <date>1970-01-17T04:53:20+00:00</date>
@@ -253,9 +253,9 b' Test xml styles:'
253 <path action="A">second</path>
253 <path action="A">second</path>
254 </paths>
254 </paths>
255 </logentry>
255 </logentry>
256 <logentry revision="6" node="c7b487c6c50ef1cf464cafdc4f4f5e615fc5999f">
256 <logentry revision="6" node="d41e714fe50d9e4a5f11b4d595d543481b5f980b">
257 <parent revision="5" node="13207e5a10d9fd28ec424934298e176197f2c67f" />
257 <parent revision="5" node="13207e5a10d9fd28ec424934298e176197f2c67f" />
258 <parent revision="4" node="32a18f097fcccf76ef282f62f8a85b3adf8d13c4" />
258 <parent revision="4" node="bbe44766e73d5f11ed2177f1838de10c53ef3e74" />
259 <author email="person">person</author>
259 <author email="person">person</author>
260 <date>1970-01-18T08:40:01+00:00</date>
260 <date>1970-01-18T08:40:01+00:00</date>
261 <msg xml:space="preserve">merge</msg>
261 <msg xml:space="preserve">merge</msg>
@@ -271,7 +271,7 b' Test xml styles:'
271 <path action="A">d</path>
271 <path action="A">d</path>
272 </paths>
272 </paths>
273 </logentry>
273 </logentry>
274 <logentry revision="4" node="32a18f097fcccf76ef282f62f8a85b3adf8d13c4">
274 <logentry revision="4" node="bbe44766e73d5f11ed2177f1838de10c53ef3e74">
275 <branch>foo</branch>
275 <branch>foo</branch>
276 <author email="person">person</author>
276 <author email="person">person</author>
277 <date>1970-01-17T04:53:20+00:00</date>
277 <date>1970-01-17T04:53:20+00:00</date>
@@ -348,9 +348,9 b' Test xml styles:'
348 </paths>
348 </paths>
349 <extra key="branch">default</extra>
349 <extra key="branch">default</extra>
350 </logentry>
350 </logentry>
351 <logentry revision="6" node="c7b487c6c50ef1cf464cafdc4f4f5e615fc5999f">
351 <logentry revision="6" node="d41e714fe50d9e4a5f11b4d595d543481b5f980b">
352 <parent revision="5" node="13207e5a10d9fd28ec424934298e176197f2c67f" />
352 <parent revision="5" node="13207e5a10d9fd28ec424934298e176197f2c67f" />
353 <parent revision="4" node="32a18f097fcccf76ef282f62f8a85b3adf8d13c4" />
353 <parent revision="4" node="bbe44766e73d5f11ed2177f1838de10c53ef3e74" />
354 <author email="person">person</author>
354 <author email="person">person</author>
355 <date>1970-01-18T08:40:01+00:00</date>
355 <date>1970-01-18T08:40:01+00:00</date>
356 <msg xml:space="preserve">merge</msg>
356 <msg xml:space="preserve">merge</msg>
@@ -369,7 +369,7 b' Test xml styles:'
369 </paths>
369 </paths>
370 <extra key="branch">default</extra>
370 <extra key="branch">default</extra>
371 </logentry>
371 </logentry>
372 <logentry revision="4" node="32a18f097fcccf76ef282f62f8a85b3adf8d13c4">
372 <logentry revision="4" node="bbe44766e73d5f11ed2177f1838de10c53ef3e74">
373 <branch>foo</branch>
373 <branch>foo</branch>
374 <parent revision="3" node="10e46f2dcbf4823578cf180f33ecf0b957964c47" />
374 <parent revision="3" node="10e46f2dcbf4823578cf180f33ecf0b957964c47" />
375 <parent revision="-1" node="0000000000000000000000000000000000000000" />
375 <parent revision="-1" node="0000000000000000000000000000000000000000" />
@@ -510,7 +510,7 b' Issue338:'
510 1970-01-18 person <person>
510 1970-01-18 person <person>
511
511
512 * merge
512 * merge
513 [c7b487c6c50e]
513 [d41e714fe50d]
514
514
515 * d:
515 * d:
516 new head
516 new head
@@ -519,7 +519,7 b' Issue338:'
519 1970-01-17 person <person>
519 1970-01-17 person <person>
520
520
521 * new branch
521 * new branch
522 [32a18f097fcc] <foo>
522 [bbe44766e73d] <foo>
523
523
524 1970-01-16 person <person>
524 1970-01-16 person <person>
525
525
@@ -560,12 +560,12 b" Issue2130: xml output for 'hg heads' is "
560 1970-01-18 person <person>
560 1970-01-18 person <person>
561
561
562 * merge
562 * merge
563 [c7b487c6c50e]
563 [d41e714fe50d]
564
564
565 1970-01-17 person <person>
565 1970-01-17 person <person>
566
566
567 * new branch
567 * new branch
568 [32a18f097fcc] <foo>
568 [bbe44766e73d] <foo>
569
569
570
570
571 Keys work:
571 Keys work:
@@ -886,63 +886,63 b' Keys work:'
886 files--debug: c
886 files--debug: c
887 files--debug: b
887 files--debug: b
888 files--debug: a
888 files--debug: a
889 manifest: 8:94961b75a2da
889 manifest: 6:94961b75a2da
890 manifest: 7:f2dbc354b94e
890 manifest: 5:f2dbc354b94e
891 manifest: 6:91015e9dbdd7
891 manifest: 4:4dc3def4f9b4
892 manifest: 5:4dc3def4f9b4
892 manifest: 4:4dc3def4f9b4
893 manifest: 4:90ae8dda64e1
893 manifest: 3:cb5a1327723b
894 manifest: 3:cb5a1327723b
894 manifest: 3:cb5a1327723b
895 manifest: 2:6e0e82995c35
895 manifest: 2:6e0e82995c35
896 manifest: 1:4e8d705b1e53
896 manifest: 1:4e8d705b1e53
897 manifest: 0:a0c8bcbbb45c
897 manifest: 0:a0c8bcbbb45c
898 manifest--verbose: 8:94961b75a2da
898 manifest--verbose: 6:94961b75a2da
899 manifest--verbose: 7:f2dbc354b94e
899 manifest--verbose: 5:f2dbc354b94e
900 manifest--verbose: 6:91015e9dbdd7
900 manifest--verbose: 4:4dc3def4f9b4
901 manifest--verbose: 5:4dc3def4f9b4
901 manifest--verbose: 4:4dc3def4f9b4
902 manifest--verbose: 4:90ae8dda64e1
902 manifest--verbose: 3:cb5a1327723b
903 manifest--verbose: 3:cb5a1327723b
903 manifest--verbose: 3:cb5a1327723b
904 manifest--verbose: 2:6e0e82995c35
904 manifest--verbose: 2:6e0e82995c35
905 manifest--verbose: 1:4e8d705b1e53
905 manifest--verbose: 1:4e8d705b1e53
906 manifest--verbose: 0:a0c8bcbbb45c
906 manifest--verbose: 0:a0c8bcbbb45c
907 manifest--debug: 8:94961b75a2da554b4df6fb599e5bfc7d48de0c64
907 manifest--debug: 6:94961b75a2da554b4df6fb599e5bfc7d48de0c64
908 manifest--debug: 7:f2dbc354b94e5ec0b4f10680ee0cee816101d0bf
908 manifest--debug: 5:f2dbc354b94e5ec0b4f10680ee0cee816101d0bf
909 manifest--debug: 6:91015e9dbdd76a6791085d12b0a0ec7fcd22ffbf
909 manifest--debug: 4:4dc3def4f9b4c6e8de820f6ee74737f91e96a216
910 manifest--debug: 5:4dc3def4f9b4c6e8de820f6ee74737f91e96a216
910 manifest--debug: 4:4dc3def4f9b4c6e8de820f6ee74737f91e96a216
911 manifest--debug: 4:90ae8dda64e1a876c792bccb9af66284f6018363
911 manifest--debug: 3:cb5a1327723bada42f117e4c55a303246eaf9ccc
912 manifest--debug: 3:cb5a1327723bada42f117e4c55a303246eaf9ccc
912 manifest--debug: 3:cb5a1327723bada42f117e4c55a303246eaf9ccc
913 manifest--debug: 2:6e0e82995c35d0d57a52aca8da4e56139e06b4b1
913 manifest--debug: 2:6e0e82995c35d0d57a52aca8da4e56139e06b4b1
914 manifest--debug: 1:4e8d705b1e53e3f9375e0e60dc7b525d8211fe55
914 manifest--debug: 1:4e8d705b1e53e3f9375e0e60dc7b525d8211fe55
915 manifest--debug: 0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
915 manifest--debug: 0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
916 node: 95c24699272ef57d062b8bccc32c878bf841784a
916 node: 95c24699272ef57d062b8bccc32c878bf841784a
917 node: 29114dbae42b9f078cf2714dbe3a86bba8ec7453
917 node: 29114dbae42b9f078cf2714dbe3a86bba8ec7453
918 node: c7b487c6c50ef1cf464cafdc4f4f5e615fc5999f
918 node: d41e714fe50d9e4a5f11b4d595d543481b5f980b
919 node: 13207e5a10d9fd28ec424934298e176197f2c67f
919 node: 13207e5a10d9fd28ec424934298e176197f2c67f
920 node: 32a18f097fcccf76ef282f62f8a85b3adf8d13c4
920 node: bbe44766e73d5f11ed2177f1838de10c53ef3e74
921 node: 10e46f2dcbf4823578cf180f33ecf0b957964c47
921 node: 10e46f2dcbf4823578cf180f33ecf0b957964c47
922 node: 97054abb4ab824450e9164180baf491ae0078465
922 node: 97054abb4ab824450e9164180baf491ae0078465
923 node: b608e9d1a3f0273ccf70fb85fd6866b3482bf965
923 node: b608e9d1a3f0273ccf70fb85fd6866b3482bf965
924 node: 1e4e1b8f71e05681d422154f5421e385fec3454f
924 node: 1e4e1b8f71e05681d422154f5421e385fec3454f
925 node--verbose: 95c24699272ef57d062b8bccc32c878bf841784a
925 node--verbose: 95c24699272ef57d062b8bccc32c878bf841784a
926 node--verbose: 29114dbae42b9f078cf2714dbe3a86bba8ec7453
926 node--verbose: 29114dbae42b9f078cf2714dbe3a86bba8ec7453
927 node--verbose: c7b487c6c50ef1cf464cafdc4f4f5e615fc5999f
927 node--verbose: d41e714fe50d9e4a5f11b4d595d543481b5f980b
928 node--verbose: 13207e5a10d9fd28ec424934298e176197f2c67f
928 node--verbose: 13207e5a10d9fd28ec424934298e176197f2c67f
929 node--verbose: 32a18f097fcccf76ef282f62f8a85b3adf8d13c4
929 node--verbose: bbe44766e73d5f11ed2177f1838de10c53ef3e74
930 node--verbose: 10e46f2dcbf4823578cf180f33ecf0b957964c47
930 node--verbose: 10e46f2dcbf4823578cf180f33ecf0b957964c47
931 node--verbose: 97054abb4ab824450e9164180baf491ae0078465
931 node--verbose: 97054abb4ab824450e9164180baf491ae0078465
932 node--verbose: b608e9d1a3f0273ccf70fb85fd6866b3482bf965
932 node--verbose: b608e9d1a3f0273ccf70fb85fd6866b3482bf965
933 node--verbose: 1e4e1b8f71e05681d422154f5421e385fec3454f
933 node--verbose: 1e4e1b8f71e05681d422154f5421e385fec3454f
934 node--debug: 95c24699272ef57d062b8bccc32c878bf841784a
934 node--debug: 95c24699272ef57d062b8bccc32c878bf841784a
935 node--debug: 29114dbae42b9f078cf2714dbe3a86bba8ec7453
935 node--debug: 29114dbae42b9f078cf2714dbe3a86bba8ec7453
936 node--debug: c7b487c6c50ef1cf464cafdc4f4f5e615fc5999f
936 node--debug: d41e714fe50d9e4a5f11b4d595d543481b5f980b
937 node--debug: 13207e5a10d9fd28ec424934298e176197f2c67f
937 node--debug: 13207e5a10d9fd28ec424934298e176197f2c67f
938 node--debug: 32a18f097fcccf76ef282f62f8a85b3adf8d13c4
938 node--debug: bbe44766e73d5f11ed2177f1838de10c53ef3e74
939 node--debug: 10e46f2dcbf4823578cf180f33ecf0b957964c47
939 node--debug: 10e46f2dcbf4823578cf180f33ecf0b957964c47
940 node--debug: 97054abb4ab824450e9164180baf491ae0078465
940 node--debug: 97054abb4ab824450e9164180baf491ae0078465
941 node--debug: b608e9d1a3f0273ccf70fb85fd6866b3482bf965
941 node--debug: b608e9d1a3f0273ccf70fb85fd6866b3482bf965
942 node--debug: 1e4e1b8f71e05681d422154f5421e385fec3454f
942 node--debug: 1e4e1b8f71e05681d422154f5421e385fec3454f
943 parents:
943 parents:
944 parents: -1:000000000000
944 parents: -1:000000000000
945 parents: 5:13207e5a10d9 4:32a18f097fcc
945 parents: 5:13207e5a10d9 4:bbe44766e73d
946 parents: 3:10e46f2dcbf4
946 parents: 3:10e46f2dcbf4
947 parents:
947 parents:
948 parents:
948 parents:
@@ -951,7 +951,7 b' Keys work:'
951 parents:
951 parents:
952 parents--verbose:
952 parents--verbose:
953 parents--verbose: -1:000000000000
953 parents--verbose: -1:000000000000
954 parents--verbose: 5:13207e5a10d9 4:32a18f097fcc
954 parents--verbose: 5:13207e5a10d9 4:bbe44766e73d
955 parents--verbose: 3:10e46f2dcbf4
955 parents--verbose: 3:10e46f2dcbf4
956 parents--verbose:
956 parents--verbose:
957 parents--verbose:
957 parents--verbose:
@@ -960,7 +960,7 b' Keys work:'
960 parents--verbose:
960 parents--verbose:
961 parents--debug: 7:29114dbae42b9f078cf2714dbe3a86bba8ec7453 -1:0000000000000000000000000000000000000000
961 parents--debug: 7:29114dbae42b9f078cf2714dbe3a86bba8ec7453 -1:0000000000000000000000000000000000000000
962 parents--debug: -1:0000000000000000000000000000000000000000 -1:0000000000000000000000000000000000000000
962 parents--debug: -1:0000000000000000000000000000000000000000 -1:0000000000000000000000000000000000000000
963 parents--debug: 5:13207e5a10d9fd28ec424934298e176197f2c67f 4:32a18f097fcccf76ef282f62f8a85b3adf8d13c4
963 parents--debug: 5:13207e5a10d9fd28ec424934298e176197f2c67f 4:bbe44766e73d5f11ed2177f1838de10c53ef3e74
964 parents--debug: 3:10e46f2dcbf4823578cf180f33ecf0b957964c47 -1:0000000000000000000000000000000000000000
964 parents--debug: 3:10e46f2dcbf4823578cf180f33ecf0b957964c47 -1:0000000000000000000000000000000000000000
965 parents--debug: 3:10e46f2dcbf4823578cf180f33ecf0b957964c47 -1:0000000000000000000000000000000000000000
965 parents--debug: 3:10e46f2dcbf4823578cf180f33ecf0b957964c47 -1:0000000000000000000000000000000000000000
966 parents--debug: 2:97054abb4ab824450e9164180baf491ae0078465 -1:0000000000000000000000000000000000000000
966 parents--debug: 2:97054abb4ab824450e9164180baf491ae0078465 -1:0000000000000000000000000000000000000000
@@ -1174,9 +1174,9 b' Filters work:'
1174 $ hg log --template '{node|short}\n'
1174 $ hg log --template '{node|short}\n'
1175 95c24699272e
1175 95c24699272e
1176 29114dbae42b
1176 29114dbae42b
1177 c7b487c6c50e
1177 d41e714fe50d
1178 13207e5a10d9
1178 13207e5a10d9
1179 32a18f097fcc
1179 bbe44766e73d
1180 10e46f2dcbf4
1180 10e46f2dcbf4
1181 97054abb4ab8
1181 97054abb4ab8
1182 b608e9d1a3f0
1182 b608e9d1a3f0
@@ -1197,9 +1197,9 b' Filters work:'
1197 8:
1197 8:
1198 7: 8:95c24699272e
1198 7: 8:95c24699272e
1199 6:
1199 6:
1200 5: 6:c7b487c6c50e
1200 5: 6:d41e714fe50d
1201 4: 6:c7b487c6c50e
1201 4: 6:d41e714fe50d
1202 3: 4:32a18f097fcc 5:13207e5a10d9
1202 3: 4:bbe44766e73d 5:13207e5a10d9
1203 2: 3:10e46f2dcbf4
1203 2: 3:10e46f2dcbf4
1204 1: 2:97054abb4ab8
1204 1: 2:97054abb4ab8
1205 0: 1:b608e9d1a3f0
1205 0: 1:b608e9d1a3f0
@@ -83,10 +83,10 b' Convert again'
83
83
84
84
85 $ hg branches
85 $ hg branches
86 newbranch 11:08fca3ff8634
86 newbranch 11:a6d7cc050ad1
87 default 10:098988aa63ba
87 default 10:6e2b33404495
88 old 9:b308f345079b
88 old 9:93c4b0f99529
89 old2 8:49f2336c7b8b (inactive)
89 old2 8:b52884d7bead (inactive)
90 $ hg tags -q
90 $ hg tags -q
91 tip
91 tip
92 $ cd ..
92 $ cd ..
@@ -129,7 +129,7 b' Convert while testing all possible outpu'
129 Check tags are in UTF-8
129 Check tags are in UTF-8
130
130
131 $ cat .hgtags
131 $ cat .hgtags
132 221c3fdaf24df5f14c0a64c597581e2eacfb47bb branch\xc3\xa9e (esc)
132 e94e4422020e715add80525e8f0f46c9968689f1 branch\xc3\xa9e (esc)
133 7a40952c2db29cf00d9e31df3749e98d8a4bdcbf branch\xc3\xa9 (esc)
133 f7e66f98380ed1e53a797c5c7a7a2616a7ab377d branch\xc3\xa9 (esc)
134
134
135 $ cd ..
135 $ cd ..
@@ -67,7 +67,7 b''
67 $ hg -R a outgoing b
67 $ hg -R a outgoing b
68 comparing with b
68 comparing with b
69 searching for changes
69 searching for changes
70 changeset: 4:119caaef4ed1
70 changeset: 4:1ec3c74fc0e0
71 tag: tip
71 tag: tip
72 parent: 1:79f9e10cd04e
72 parent: 1:79f9e10cd04e
73 parent: 2:8e1bb01c1a24
73 parent: 2:8e1bb01c1a24
@@ -78,7 +78,7 b''
78 $ hg -R a outgoing c
78 $ hg -R a outgoing c
79 comparing with c
79 comparing with c
80 searching for changes
80 searching for changes
81 changeset: 3:cbb48b367d1b
81 changeset: 3:d15a0c284984
82 parent: 2:8e1bb01c1a24
82 parent: 2:8e1bb01c1a24
83 parent: 1:79f9e10cd04e
83 parent: 1:79f9e10cd04e
84 user: test
84 user: test
@@ -88,7 +88,7 b''
88 $ hg -R b outgoing c
88 $ hg -R b outgoing c
89 comparing with c
89 comparing with c
90 searching for changes
90 searching for changes
91 changeset: 3:cbb48b367d1b
91 changeset: 3:d15a0c284984
92 tag: tip
92 tag: tip
93 parent: 2:8e1bb01c1a24
93 parent: 2:8e1bb01c1a24
94 parent: 1:79f9e10cd04e
94 parent: 1:79f9e10cd04e
@@ -99,7 +99,7 b''
99 $ hg -R c outgoing b
99 $ hg -R c outgoing b
100 comparing with b
100 comparing with b
101 searching for changes
101 searching for changes
102 changeset: 3:119caaef4ed1
102 changeset: 3:1ec3c74fc0e0
103 tag: tip
103 tag: tip
104 parent: 1:79f9e10cd04e
104 parent: 1:79f9e10cd04e
105 parent: 2:8e1bb01c1a24
105 parent: 2:8e1bb01c1a24
@@ -48,7 +48,7 b' these should work'
48 hg log (ascii)
48 hg log (ascii)
49
49
50 $ hg --encoding ascii log
50 $ hg --encoding ascii log
51 changeset: 5:093c6077d1c8
51 changeset: 5:a52c0692f24a
52 branch: ?
52 branch: ?
53 tag: tip
53 tag: tip
54 user: test
54 user: test
@@ -85,7 +85,7 b' hg log (ascii)'
85 hg log (latin-1)
85 hg log (latin-1)
86
86
87 $ hg --encoding latin-1 log
87 $ hg --encoding latin-1 log
88 changeset: 5:093c6077d1c8
88 changeset: 5:a52c0692f24a
89 branch: \xe9 (esc)
89 branch: \xe9 (esc)
90 tag: tip
90 tag: tip
91 user: test
91 user: test
@@ -122,7 +122,7 b' hg log (latin-1)'
122 hg log (utf-8)
122 hg log (utf-8)
123
123
124 $ hg --encoding utf-8 log
124 $ hg --encoding utf-8 log
125 changeset: 5:093c6077d1c8
125 changeset: 5:a52c0692f24a
126 branch: \xc3\xa9 (esc)
126 branch: \xc3\xa9 (esc)
127 tag: tip
127 tag: tip
128 user: test
128 user: test
@@ -159,37 +159,37 b' hg log (utf-8)'
159 hg tags (ascii)
159 hg tags (ascii)
160
160
161 $ HGENCODING=ascii hg tags
161 $ HGENCODING=ascii hg tags
162 tip 5:093c6077d1c8
162 tip 5:a52c0692f24a
163 ? 3:ca661e7520de
163 ? 3:ca661e7520de
164
164
165 hg tags (latin-1)
165 hg tags (latin-1)
166
166
167 $ HGENCODING=latin-1 hg tags
167 $ HGENCODING=latin-1 hg tags
168 tip 5:093c6077d1c8
168 tip 5:a52c0692f24a
169 \xe9 3:ca661e7520de (esc)
169 \xe9 3:ca661e7520de (esc)
170
170
171 hg tags (utf-8)
171 hg tags (utf-8)
172
172
173 $ HGENCODING=utf-8 hg tags
173 $ HGENCODING=utf-8 hg tags
174 tip 5:093c6077d1c8
174 tip 5:a52c0692f24a
175 \xc3\xa9 3:ca661e7520de (esc)
175 \xc3\xa9 3:ca661e7520de (esc)
176
176
177 hg branches (ascii)
177 hg branches (ascii)
178
178
179 $ HGENCODING=ascii hg branches
179 $ HGENCODING=ascii hg branches
180 ? 5:093c6077d1c8
180 ? 5:a52c0692f24a
181 default 4:94db611b4196 (inactive)
181 default 4:94db611b4196 (inactive)
182
182
183 hg branches (latin-1)
183 hg branches (latin-1)
184
184
185 $ HGENCODING=latin-1 hg branches
185 $ HGENCODING=latin-1 hg branches
186 \xe9 5:093c6077d1c8 (esc)
186 \xe9 5:a52c0692f24a (esc)
187 default 4:94db611b4196 (inactive)
187 default 4:94db611b4196 (inactive)
188
188
189 hg branches (utf-8)
189 hg branches (utf-8)
190
190
191 $ HGENCODING=utf-8 hg branches
191 $ HGENCODING=utf-8 hg branches
192 \xc3\xa9 5:093c6077d1c8 (esc)
192 \xc3\xa9 5:a52c0692f24a (esc)
193 default 4:94db611b4196 (inactive)
193 default 4:94db611b4196 (inactive)
194 $ echo '[ui]' >> .hg/hgrc
194 $ echo '[ui]' >> .hg/hgrc
195 $ echo 'fallbackencoding = koi8-r' >> .hg/hgrc
195 $ echo 'fallbackencoding = koi8-r' >> .hg/hgrc
@@ -197,7 +197,7 b' hg branches (utf-8)'
197 hg log (utf-8)
197 hg log (utf-8)
198
198
199 $ HGENCODING=utf-8 hg log
199 $ HGENCODING=utf-8 hg log
200 changeset: 5:093c6077d1c8
200 changeset: 5:a52c0692f24a
201 branch: \xc3\xa9 (esc)
201 branch: \xc3\xa9 (esc)
202 tag: tip
202 tag: tip
203 user: test
203 user: test
@@ -18,14 +18,14 b' Initialize remote repo with branches:'
18 adding c
18 adding c
19
19
20 $ hg log
20 $ hg log
21 changeset: 2:1630aed6ed2b
21 changeset: 2:ae3d9c30ec50
22 branch: br
22 branch: br
23 tag: tip
23 tag: tip
24 user: test
24 user: test
25 date: Thu Jan 01 00:00:00 1970 +0000
25 date: Thu Jan 01 00:00:00 1970 +0000
26 summary: c
26 summary: c
27
27
28 changeset: 1:234f53e6c5ff
28 changeset: 1:3f7f930ca414
29 branch: br
29 branch: br
30 user: test
30 user: test
31 date: Thu Jan 01 00:00:00 1970 +0000
31 date: Thu Jan 01 00:00:00 1970 +0000
@@ -50,7 +50,7 b' Try cloning -r branch:'
50 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
50 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
51
51
52 $ hg -R local1 parents
52 $ hg -R local1 parents
53 changeset: 2:1630aed6ed2b
53 changeset: 2:ae3d9c30ec50
54 branch: br
54 branch: br
55 tag: tip
55 tag: tip
56 user: test
56 user: test
@@ -86,7 +86,7 b' Try cloning -r1 clone#branch:'
86 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
86 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
87
87
88 $ hg -R local3 parents
88 $ hg -R local3 parents
89 changeset: 1:234f53e6c5ff
89 changeset: 1:3f7f930ca414
90 branch: br
90 branch: br
91 user: test
91 user: test
92 date: Thu Jan 01 00:00:00 1970 +0000
92 date: Thu Jan 01 00:00:00 1970 +0000
@@ -982,7 +982,7 b' resolve to local'
982 $ HGMERGE=internal:local hg resolve -a
982 $ HGMERGE=internal:local hg resolve -a
983 $ hg commit -m localresolve
983 $ hg commit -m localresolve
984 $ cat m
984 $ cat m
985 $Id: m 41efa6d38e9b Thu, 01 Jan 1970 00:00:00 +0000 test $
985 $Id: m 800511b3a22d Thu, 01 Jan 1970 00:00:00 +0000 test $
986 bar
986 bar
987
987
988 Test restricted mode with transplant -b
988 Test restricted mode with transplant -b
@@ -1000,19 +1000,19 b' Test restricted mode with transplant -b'
1000 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
1000 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
1001 $ hg -y transplant -b foo tip
1001 $ hg -y transplant -b foo tip
1002 applying 4aa30d025d50
1002 applying 4aa30d025d50
1003 4aa30d025d50 transplanted to 5a4da427c162
1003 4aa30d025d50 transplanted to e00abbf63521
1004
1004
1005 Expansion in changeset but not in file
1005 Expansion in changeset but not in file
1006
1006
1007 $ hg tip -p
1007 $ hg tip -p
1008 changeset: 11:5a4da427c162
1008 changeset: 11:e00abbf63521
1009 tag: tip
1009 tag: tip
1010 parent: 9:41efa6d38e9b
1010 parent: 9:800511b3a22d
1011 user: test
1011 user: test
1012 date: Thu Jan 01 00:00:00 1970 +0000
1012 date: Thu Jan 01 00:00:00 1970 +0000
1013 summary: 9foobranch
1013 summary: 9foobranch
1014
1014
1015 diff -r 41efa6d38e9b -r 5a4da427c162 a
1015 diff -r 800511b3a22d -r e00abbf63521 a
1016 --- a/a Thu Jan 01 00:00:00 1970 +0000
1016 --- a/a Thu Jan 01 00:00:00 1970 +0000
1017 +++ b/a Thu Jan 01 00:00:00 1970 +0000
1017 +++ b/a Thu Jan 01 00:00:00 1970 +0000
1018 @@ -1,3 +1,4 @@
1018 @@ -1,3 +1,4 @@
@@ -1023,7 +1023,7 b' Expansion in changeset but not in file'
1023
1023
1024 $ head -n 2 a
1024 $ head -n 2 a
1025 foobranch
1025 foobranch
1026 expand $Id: a 5a4da427c162 Thu, 01 Jan 1970 00:00:00 +0000 test $
1026 expand $Id: a e00abbf63521 Thu, 01 Jan 1970 00:00:00 +0000 test $
1027
1027
1028 Turn off expansion
1028 Turn off expansion
1029
1029
@@ -8,77 +8,77 b''
8 $ hg ci -Ambase -d '1 0'
8 $ hg ci -Ambase -d '1 0'
9 adding base
9 adding base
10
10
11 $ hg qnew -d '1 0' a
11 $ hg qnew -d '1 0' pa
12 $ hg qnew -d '1 0' b
12 $ hg qnew -d '1 0' pb
13 $ hg qnew -d '1 0' c
13 $ hg qnew -d '1 0' pc
14
14
15 $ hg qdel
15 $ hg qdel
16 abort: qdelete requires at least one revision or patch name
16 abort: qdelete requires at least one revision or patch name
17 [255]
17 [255]
18
18
19 $ hg qdel c
19 $ hg qdel pc
20 abort: cannot delete applied patch c
20 abort: cannot delete applied patch pc
21 [255]
21 [255]
22
22
23 $ hg qpop
23 $ hg qpop
24 popping c
24 popping pc
25 now at: b
25 now at: pb
26
26
27 Delete the same patch twice in one command (issue2427)
27 Delete the same patch twice in one command (issue2427)
28
28
29 $ hg qdel c c
29 $ hg qdel pc pc
30
30
31 $ hg qseries
31 $ hg qseries
32 a
32 pa
33 b
33 pb
34
34
35 $ ls .hg/patches
35 $ ls .hg/patches
36 a
36 pa
37 b
37 pb
38 series
38 series
39 status
39 status
40
40
41 $ hg qpop
41 $ hg qpop
42 popping b
42 popping pb
43 now at: a
43 now at: pa
44
44
45 $ hg qdel -k 1
45 $ hg qdel -k 1
46
46
47 $ ls .hg/patches
47 $ ls .hg/patches
48 a
48 pa
49 b
49 pb
50 series
50 series
51 status
51 status
52
52
53 $ hg qdel -r a
53 $ hg qdel -r pa
54 patch a finalized without changeset message
54 patch pa finalized without changeset message
55
55
56 $ hg qapplied
56 $ hg qapplied
57
57
58 $ hg log --template '{rev} {desc}\n'
58 $ hg log --template '{rev} {desc}\n'
59 1 [mq]: a
59 1 [mq]: pa
60 0 base
60 0 base
61
61
62 $ hg qnew d
62 $ hg qnew pd
63 $ hg qnew e
63 $ hg qnew pe
64 $ hg qnew f
64 $ hg qnew pf
65
65
66 $ hg qdel -r e
66 $ hg qdel -r pe
67 abort: cannot delete revision 3 above applied patches
67 abort: cannot delete revision 3 above applied patches
68 [255]
68 [255]
69
69
70 $ hg qdel -r qbase:e
70 $ hg qdel -r qbase:pe
71 patch d finalized without changeset message
71 patch pd finalized without changeset message
72 patch e finalized without changeset message
72 patch pe finalized without changeset message
73
73
74 $ hg qapplied
74 $ hg qapplied
75 f
75 pf
76
76
77 $ hg log --template '{rev} {desc}\n'
77 $ hg log --template '{rev} {desc}\n'
78 4 [mq]: f
78 4 [mq]: pf
79 3 [mq]: e
79 3 [mq]: pe
80 2 [mq]: d
80 2 [mq]: pd
81 1 [mq]: a
81 1 [mq]: pa
82 0 base
82 0 base
83
83
84 $ cd ..
84 $ cd ..
@@ -97,53 +97,53 b' Delete the same patch twice in one comma'
97 $ hg qfinish -a
97 $ hg qfinish -a
98 no patches applied
98 no patches applied
99
99
100 $ hg qnew -d '1 0' a
100 $ hg qnew -d '1 0' pa
101 $ hg qnew -d '1 0' b
101 $ hg qnew -d '1 0' pb
102 $ hg qnew c # XXX fails to apply by /usr/bin/patch if we put a date
102 $ hg qnew pc # XXX fails to apply by /usr/bin/patch if we put a date
103
103
104 $ hg qfinish 0
104 $ hg qfinish 0
105 abort: revision 0 is not managed
105 abort: revision 0 is not managed
106 [255]
106 [255]
107
107
108 $ hg qfinish b
108 $ hg qfinish pb
109 abort: cannot delete revision 2 above applied patches
109 abort: cannot delete revision 2 above applied patches
110 [255]
110 [255]
111
111
112 $ hg qpop
112 $ hg qpop
113 popping c
113 popping pc
114 now at: b
114 now at: pb
115
115
116 $ hg qfinish -a c
116 $ hg qfinish -a pc
117 abort: unknown revision 'c'!
117 abort: unknown revision 'pc'!
118 [255]
118 [255]
119
119
120 $ hg qpush
120 $ hg qpush
121 applying c
121 applying pc
122 patch c is empty
122 patch pc is empty
123 now at: c
123 now at: pc
124
124
125 $ hg qfinish qbase:b
125 $ hg qfinish qbase:pb
126 patch a finalized without changeset message
126 patch pa finalized without changeset message
127 patch b finalized without changeset message
127 patch pb finalized without changeset message
128
128
129 $ hg qapplied
129 $ hg qapplied
130 c
130 pc
131
131
132 $ hg log --template '{rev} {desc}\n'
132 $ hg log --template '{rev} {desc}\n'
133 3 imported patch c
133 3 imported patch pc
134 2 [mq]: b
134 2 [mq]: pb
135 1 [mq]: a
135 1 [mq]: pa
136 0 base
136 0 base
137
137
138 $ hg qfinish -a c
138 $ hg qfinish -a pc
139 patch c finalized without changeset message
139 patch pc finalized without changeset message
140
140
141 $ hg qapplied
141 $ hg qapplied
142
142
143 $ hg log --template '{rev} {desc}\n'
143 $ hg log --template '{rev} {desc}\n'
144 3 imported patch c
144 3 imported patch pc
145 2 [mq]: b
145 2 [mq]: pb
146 1 [mq]: a
146 1 [mq]: pa
147 0 base
147 0 base
148
148
149 $ ls .hg/patches
149 $ ls .hg/patches
@@ -177,7 +177,7 b' resilience to inconsistency: qfinish -a '
177 $ hg qrefresh -d '1 0'
177 $ hg qrefresh -d '1 0'
178 $ echo > .hg/patches/series # remove 3.diff from series to confuse mq
178 $ echo > .hg/patches/series # remove 3.diff from series to confuse mq
179 $ hg qfinish -a
179 $ hg qfinish -a
180 revision c4dd2b624061 refers to unknown patches: 3.diff
180 revision 47dfa8501675 refers to unknown patches: 3.diff
181
181
182 more complex state 'both known and unknown patches
182 more complex state 'both known and unknown patches
183
183
@@ -189,6 +189,6 b" more complex state 'both known and unkno"
189 $ echo hup >> base
189 $ echo hup >> base
190 $ hg qnew -f -d '1 0' -m 6 6.diff
190 $ hg qnew -f -d '1 0' -m 6 6.diff
191 $ hg qfinish -a
191 $ hg qfinish -a
192 revision 6fdec4b20ec3 refers to unknown patches: 5.diff
192 revision 2b1c98802260 refers to unknown patches: 5.diff
193 revision 2ba51db7ba24 refers to unknown patches: 4.diff
193 revision 33a6861311c0 refers to unknown patches: 4.diff
194
194
@@ -1282,7 +1282,7 b' apply force, should not discard changes '
1282 patch empty is empty
1282 patch empty is empty
1283 now at: empty
1283 now at: empty
1284 $ hg diff --config diff.nodates=True
1284 $ hg diff --config diff.nodates=True
1285 diff -r bf5fc3f07a0a hello.txt
1285 diff -r d58265112590 hello.txt
1286 --- a/hello.txt
1286 --- a/hello.txt
1287 +++ b/hello.txt
1287 +++ b/hello.txt
1288 @@ -1,1 +1,2 @@
1288 @@ -1,1 +1,2 @@
@@ -1296,7 +1296,7 b' apply force, should not discard changes '
1296 hello
1296 hello
1297 +world
1297 +world
1298 $ hg log -l1 -p
1298 $ hg log -l1 -p
1299 changeset: 1:bf5fc3f07a0a
1299 changeset: 1:d58265112590
1300 tag: empty
1300 tag: empty
1301 tag: qbase
1301 tag: qbase
1302 tag: qtip
1302 tag: qtip
@@ -31,7 +31,7 b' Branch shadowing:'
31 There should be only one default branch head
31 There should be only one default branch head
32
32
33 $ hg heads .
33 $ hg heads .
34 changeset: 3:9d567d0b51f9
34 changeset: 3:1c28f494dae6
35 tag: tip
35 tag: tip
36 user: test
36 user: test
37 date: Thu Jan 01 00:00:00 1970 +0000
37 date: Thu Jan 01 00:00:00 1970 +0000
@@ -54,34 +54,34 b' There should be only one default branch '
54 $ hg ci -m "merge"
54 $ hg ci -m "merge"
55
55
56 $ hg log
56 $ hg log
57 changeset: 5:dc140083783b
57 changeset: 5:530046499edf
58 branch: foo
58 branch: foo
59 tag: tip
59 tag: tip
60 parent: 4:98d14f698afe
60 parent: 4:adf1a74a7f7b
61 parent: 3:9d567d0b51f9
61 parent: 3:1c28f494dae6
62 user: test
62 user: test
63 date: Thu Jan 01 00:00:00 1970 +0000
63 date: Thu Jan 01 00:00:00 1970 +0000
64 summary: merge
64 summary: merge
65
65
66 changeset: 4:98d14f698afe
66 changeset: 4:adf1a74a7f7b
67 branch: foo
67 branch: foo
68 parent: 1:0079f24813e2
68 parent: 1:6c0e42da283a
69 user: test
69 user: test
70 date: Thu Jan 01 00:00:00 1970 +0000
70 date: Thu Jan 01 00:00:00 1970 +0000
71 summary: modify a branch
71 summary: modify a branch
72
72
73 changeset: 3:9d567d0b51f9
73 changeset: 3:1c28f494dae6
74 user: test
74 user: test
75 date: Thu Jan 01 00:00:00 1970 +0000
75 date: Thu Jan 01 00:00:00 1970 +0000
76 summary: clear branch name
76 summary: clear branch name
77
77
78 changeset: 2:ed2bbf4e0102
78 changeset: 2:c21617b13b22
79 branch: bar
79 branch: bar
80 user: test
80 user: test
81 date: Thu Jan 01 00:00:00 1970 +0000
81 date: Thu Jan 01 00:00:00 1970 +0000
82 summary: change branch name
82 summary: change branch name
83
83
84 changeset: 1:0079f24813e2
84 changeset: 1:6c0e42da283a
85 branch: foo
85 branch: foo
86 user: test
86 user: test
87 date: Thu Jan 01 00:00:00 1970 +0000
87 date: Thu Jan 01 00:00:00 1970 +0000
@@ -93,9 +93,9 b' There should be only one default branch '
93 summary: initial
93 summary: initial
94
94
95 $ hg branches
95 $ hg branches
96 foo 5:dc140083783b
96 foo 5:530046499edf
97 default 3:9d567d0b51f9 (inactive)
97 default 3:1c28f494dae6 (inactive)
98 bar 2:ed2bbf4e0102 (inactive)
98 bar 2:c21617b13b22 (inactive)
99
99
100 $ hg branches -q
100 $ hg branches -q
101 foo
101 foo
@@ -111,10 +111,10 b' Test for invalid branch cache:'
111 $ cp $branchcache .hg/bc-invalid
111 $ cp $branchcache .hg/bc-invalid
112
112
113 $ hg log -r foo
113 $ hg log -r foo
114 changeset: 4:98d14f698afe
114 changeset: 4:adf1a74a7f7b
115 branch: foo
115 branch: foo
116 tag: tip
116 tag: tip
117 parent: 1:0079f24813e2
117 parent: 1:6c0e42da283a
118 user: test
118 user: test
119 date: Thu Jan 01 00:00:00 1970 +0000
119 date: Thu Jan 01 00:00:00 1970 +0000
120 summary: modify a branch
120 summary: modify a branch
@@ -123,12 +123,12 b' Test for invalid branch cache:'
123
123
124 $ hg --debug log -r foo
124 $ hg --debug log -r foo
125 invalidating branch cache (tip differs)
125 invalidating branch cache (tip differs)
126 changeset: 4:98d14f698afeaff8cb612dcf215ce95e639effc3
126 changeset: 4:adf1a74a7f7b4cd193d12992f5d0d6a004ed21d6
127 branch: foo
127 branch: foo
128 tag: tip
128 tag: tip
129 parent: 1:0079f24813e2b73a891577c243684c5066347bc8
129 parent: 1:6c0e42da283a56b5edc5b4fadb491365ec7f5fa8
130 parent: -1:0000000000000000000000000000000000000000
130 parent: -1:0000000000000000000000000000000000000000
131 manifest: 4:d01b250baaa05909152f7ae07d7a649deea0df9a
131 manifest: 1:8c342a37dfba0b3d3ce073562a00d8a813c54ffe
132 user: test
132 user: test
133 date: Thu Jan 01 00:00:00 1970 +0000
133 date: Thu Jan 01 00:00:00 1970 +0000
134 files: a
134 files: a
@@ -141,13 +141,13 b' Test for invalid branch cache:'
141 $ echo corrupted > $branchcache
141 $ echo corrupted > $branchcache
142
142
143 $ hg log -qr foo
143 $ hg log -qr foo
144 4:98d14f698afe
144 4:adf1a74a7f7b
145
145
146 $ cat $branchcache
146 $ cat $branchcache
147 98d14f698afeaff8cb612dcf215ce95e639effc3 4
147 adf1a74a7f7b4cd193d12992f5d0d6a004ed21d6 4
148 9d567d0b51f9e2068b054e1948e1a927f99b5874 default
148 1c28f494dae69a2f8fc815059d257eccf3fcfe75 default
149 98d14f698afeaff8cb612dcf215ce95e639effc3 foo
149 adf1a74a7f7b4cd193d12992f5d0d6a004ed21d6 foo
150 ed2bbf4e01029020711be82ca905283e883f0e11 bar
150 c21617b13b220988e7a2e26290fbe4325ffa7139 bar
151
151
152 Push should update the branch cache:
152 Push should update the branch cache:
153
153
@@ -166,22 +166,22 b' Pushing everything:'
166 $ hg push -qf ../target
166 $ hg push -qf ../target
167
167
168 $ cat ../target/$branchcache
168 $ cat ../target/$branchcache
169 98d14f698afeaff8cb612dcf215ce95e639effc3 4
169 adf1a74a7f7b4cd193d12992f5d0d6a004ed21d6 4
170 9d567d0b51f9e2068b054e1948e1a927f99b5874 default
170 1c28f494dae69a2f8fc815059d257eccf3fcfe75 default
171 98d14f698afeaff8cb612dcf215ce95e639effc3 foo
171 adf1a74a7f7b4cd193d12992f5d0d6a004ed21d6 foo
172 ed2bbf4e01029020711be82ca905283e883f0e11 bar
172 c21617b13b220988e7a2e26290fbe4325ffa7139 bar
173
173
174 Update with no arguments: tipmost revision of the current branch:
174 Update with no arguments: tipmost revision of the current branch:
175
175
176 $ hg up -q -C 0
176 $ hg up -q -C 0
177 $ hg up -q
177 $ hg up -q
178 $ hg id
178 $ hg id
179 9d567d0b51f9
179 1c28f494dae6
180
180
181 $ hg up -q 1
181 $ hg up -q 1
182 $ hg up -q
182 $ hg up -q
183 $ hg id
183 $ hg id
184 98d14f698afe (foo) tip
184 adf1a74a7f7b (foo) tip
185
185
186 $ hg branch foobar
186 $ hg branch foobar
187 marked working directory as branch foobar
187 marked working directory as branch foobar
@@ -210,11 +210,11 b' Fastforward merge:'
210 foo
210 foo
211 $ hg commit -m'Merge ff into foo'
211 $ hg commit -m'Merge ff into foo'
212 $ hg parents
212 $ hg parents
213 changeset: 6:917eb54e1b4b
213 changeset: 6:185ffbfefa30
214 branch: foo
214 branch: foo
215 tag: tip
215 tag: tip
216 parent: 4:98d14f698afe
216 parent: 4:adf1a74a7f7b
217 parent: 5:6683a60370cb
217 parent: 5:1a3c27dc5e11
218 user: test
218 user: test
219 date: Thu Jan 01 00:00:00 1970 +0000
219 date: Thu Jan 01 00:00:00 1970 +0000
220 summary: Merge ff into foo
220 summary: Merge ff into foo
@@ -298,11 +298,11 b' test merge'
298 Date: * (glob)
298 Date: * (glob)
299 Subject: merge
299 Subject: merge
300 From: test@test.com
300 From: test@test.com
301 X-Hg-Notification: changeset 22c88b85aa27
301 X-Hg-Notification: changeset 6a0cf76b2701
302 Message-Id: <*> (glob)
302 Message-Id: <*> (glob)
303 To: baz@test.com, foo@bar
303 To: baz@test.com, foo@bar
304
304
305 changeset 22c88b85aa27 in b
305 changeset 6a0cf76b2701 in b
306 description: merge
306 description: merge
307 (run 'hg update' to get a working copy)
307 (run 'hg update' to get a working copy)
308
308
@@ -330,11 +330,11 b' truncate multi-byte subject'
330 Date: * (glob)
330 Date: * (glob)
331 Subject: \xc3\xa0... (esc)
331 Subject: \xc3\xa0... (esc)
332 From: test@test.com
332 From: test@test.com
333 X-Hg-Notification: changeset 4a47f01c1356
333 X-Hg-Notification: changeset 7ea05ad269dc
334 Message-Id: <*> (glob)
334 Message-Id: <*> (glob)
335 To: baz@test.com, foo@bar
335 To: baz@test.com, foo@bar
336
336
337 changeset 4a47f01c1356 in b
337 changeset 7ea05ad269dc in b
338 description: \xc3\xa0\xc3\xa1\xc3\xa2\xc3\xa3\xc3\xa4 (esc)
338 description: \xc3\xa0\xc3\xa1\xc3\xa2\xc3\xa3\xc3\xa4 (esc)
339 diffstat:
339 diffstat:
340
340
@@ -343,7 +343,7 b' truncate multi-byte subject'
343
343
344 diffs (7 lines):
344 diffs (7 lines):
345
345
346 diff -r 22c88b85aa27 -r 4a47f01c1356 a
346 diff -r 6a0cf76b2701 -r 7ea05ad269dc a
347 --- a/a Thu Jan 01 00:00:03 1970 +0000
347 --- a/a Thu Jan 01 00:00:03 1970 +0000
348 +++ b/a Thu Jan 01 00:00:00 1970 +0000
348 +++ b/a Thu Jan 01 00:00:00 1970 +0000
349 @@ -1,2 +1,3 @@
349 @@ -1,2 +1,3 @@
@@ -51,7 +51,7 b' don\'t show "(+1 heads)" message when pul'
51 added 2 changesets with 1 changes to 1 files
51 added 2 changesets with 1 changes to 1 files
52 (run 'hg update' to get a working copy)
52 (run 'hg update' to get a working copy)
53 $ hg heads -q --closed
53 $ hg heads -q --closed
54 4:996201fa1abf
54 4:00cfe9073916
55 2:effea6de0384
55 2:effea6de0384
56 1:ed1b79f46b9a
56 1:ed1b79f46b9a
57
57
@@ -85,9 +85,9 b' Rebase part of branch2 (5-6) onto branch'
85 o 0: 'A'
85 o 0: 'A'
86
86
87 $ hg branches
87 $ hg branches
88 branch3 8:05b64c4ca2d8
88 branch3 8:4666b71e8e32
89 branch2 6:b410fbec727a
89 branch2 6:5097051d331d
90 branch1 2:9d931918fcf7 (inactive)
90 branch1 2:0a03079c47fd (inactive)
91 default 0:1994f17a630e (inactive)
91 default 0:1994f17a630e (inactive)
92
92
93 $ hg theads
93 $ hg theads
@@ -101,9 +101,9 b' Rebase part of branch2 (5-6) onto branch'
101 saved backup bundle to $TESTTMP/a1/.hg/strip-backup/*-backup.hg (glob)
101 saved backup bundle to $TESTTMP/a1/.hg/strip-backup/*-backup.hg (glob)
102
102
103 $ hg branches
103 $ hg branches
104 branch3 8:c1d4b9719987
104 branch3 8:466cdfb14b62
105 branch2 4:1be2b203ae5e
105 branch2 4:e4fdb121d036
106 branch1 2:9d931918fcf7
106 branch1 2:0a03079c47fd
107 default 0:1994f17a630e (inactive)
107 default 0:1994f17a630e (inactive)
108
108
109 $ hg theads
109 $ hg theads
@@ -162,9 +162,9 b' Rebase head of branch3 (8) onto branch2 '
162 saved backup bundle to $TESTTMP/a2/.hg/strip-backup/*-backup.hg (glob)
162 saved backup bundle to $TESTTMP/a2/.hg/strip-backup/*-backup.hg (glob)
163
163
164 $ hg branches
164 $ hg branches
165 branch2 8:e1e80ed73210
165 branch2 8:6b4bdc1b5ac0
166 branch3 7:75fd7b643dce
166 branch3 7:653b9feb4616
167 branch1 2:9d931918fcf7 (inactive)
167 branch1 2:0a03079c47fd (inactive)
168 default 0:1994f17a630e (inactive)
168 default 0:1994f17a630e (inactive)
169
169
170 $ hg theads
170 $ hg theads
@@ -226,8 +226,8 b' Rebase entire branch3 (7-8) onto branch2'
226 saved backup bundle to $TESTTMP/a3/.hg/strip-backup/*-backup.hg (glob)
226 saved backup bundle to $TESTTMP/a3/.hg/strip-backup/*-backup.hg (glob)
227
227
228 $ hg branches
228 $ hg branches
229 branch2 7:e1e80ed73210
229 branch2 7:6b4bdc1b5ac0
230 branch1 2:9d931918fcf7 (inactive)
230 branch1 2:0a03079c47fd (inactive)
231 default 0:1994f17a630e (inactive)
231 default 0:1994f17a630e (inactive)
232
232
233 $ hg theads
233 $ hg theads
@@ -292,7 +292,7 b' tagging on an uncommitted merge (issue25'
292 [255]
292 [255]
293 $ hg tag --rev 1 --local t3
293 $ hg tag --rev 1 --local t3
294 $ hg tags -v
294 $ hg tags -v
295 tip 2:8a8f787d0d5c
295 tip 2:2a156e8887cc
296 t3 1:c3adabd1a5f4 local
296 t3 1:c3adabd1a5f4 local
297
297
298 $ cd ..
298 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now