##// END OF EJS Templates
Merge with tah
Thomas Arendsen Hein -
r2991:f63667f6 merge default
parent child Browse files
Show More
@@ -403,17 +403,15 b' class changeset_printer(object):'
403 changes = log.read(changenode)
403 changes = log.read(changenode)
404 date = util.datestr(changes[2])
404 date = util.datestr(changes[2])
405
405
406 parents = [(log.rev(p), self.ui.verbose and hex(p) or short(p))
406 hexfunc = self.ui.debugflag and hex or short
407 for p in log.parents(changenode)
407
408 parents = [(log.rev(p), hexfunc(p)) for p in log.parents(changenode)
408 if self.ui.debugflag or p != nullid]
409 if self.ui.debugflag or p != nullid]
409 if (not self.ui.debugflag and len(parents) == 1 and
410 if (not self.ui.debugflag and len(parents) == 1 and
410 parents[0][0] == rev-1):
411 parents[0][0] == rev-1):
411 parents = []
412 parents = []
412
413
413 if self.ui.verbose:
414 self.ui.write(_("changeset: %d:%s\n") % (rev, hexfunc(changenode)))
414 self.ui.write(_("changeset: %d:%s\n") % (rev, hex(changenode)))
415 else:
416 self.ui.write(_("changeset: %d:%s\n") % (rev, short(changenode)))
417
415
418 for tag in self.repo.nodetags(changenode):
416 for tag in self.repo.nodetags(changenode):
419 self.ui.status(_("tag: %s\n") % tag)
417 self.ui.status(_("tag: %s\n") % tag)
@@ -1611,7 +1609,7 b' def identify(ui, repo):'
1611 ui.write(_("unknown\n"))
1609 ui.write(_("unknown\n"))
1612 return
1610 return
1613
1611
1614 hexfunc = ui.verbose and hex or short
1612 hexfunc = ui.debugflag and hex or short
1615 modified, added, removed, deleted = repo.status()[:4]
1613 modified, added, removed, deleted = repo.status()[:4]
1616 output = ["%s%s" %
1614 output = ["%s%s" %
1617 ('+'.join([hexfunc(parent) for parent in parents]),
1615 ('+'.join([hexfunc(parent) for parent in parents]),
@@ -2601,17 +2599,20 b' def tag(ui, repo, name, rev_=None, **opt'
2601 if opts['rev']:
2599 if opts['rev']:
2602 rev_ = opts['rev']
2600 rev_ = opts['rev']
2603 if rev_:
2601 if rev_:
2604 r = hex(repo.lookup(rev_))
2602 r = repo.lookup(rev_)
2605 else:
2603 else:
2606 p1, p2 = repo.dirstate.parents()
2604 p1, p2 = repo.dirstate.parents()
2607 if p1 == nullid:
2605 if p1 == nullid:
2608 raise util.Abort(_('no revision to tag'))
2606 raise util.Abort(_('no revision to tag'))
2609 if p2 != nullid:
2607 if p2 != nullid:
2610 raise util.Abort(_('outstanding uncommitted merges'))
2608 raise util.Abort(_('outstanding uncommitted merges'))
2611 r = hex(p1)
2609 r = p1
2612
2610
2613 repo.tag(name, r, opts['local'], opts['message'], opts['user'],
2611 message = opts['message']
2614 opts['date'])
2612 if not message:
2613 message = _('Added tag %s for changeset %s') % (name, short(r))
2614
2615 repo.tag(name, r, message, opts['local'], opts['user'], opts['date'])
2615
2616
2616 def tags(ui, repo):
2617 def tags(ui, repo):
2617 """list repository tags
2618 """list repository tags
@@ -2623,9 +2624,10 b' def tags(ui, repo):'
2623
2624
2624 l = repo.tagslist()
2625 l = repo.tagslist()
2625 l.reverse()
2626 l.reverse()
2627 hexfunc = ui.debugflag and hex or short
2626 for t, n in l:
2628 for t, n in l:
2627 try:
2629 try:
2628 r = "%5d:%s" % (repo.changelog.rev(n), hex(n))
2630 r = "%5d:%s" % (repo.changelog.rev(n), hexfunc(n))
2629 except KeyError:
2631 except KeyError:
2630 r = " ?:?"
2632 r = " ?:?"
2631 if ui.quiet:
2633 if ui.quiet:
@@ -169,7 +169,7 b' class localrepository(repo.repository):'
169
169
170 tag_disallowed = ':\r\n'
170 tag_disallowed = ':\r\n'
171
171
172 def tag(self, name, node, local=False, message=None, user=None, date=None):
172 def tag(self, name, node, message, local, user, date):
173 '''tag a revision with a symbolic name.
173 '''tag a revision with a symbolic name.
174
174
175 if local is True, the tag is stored in a per-repository file.
175 if local is True, the tag is stored in a per-repository file.
@@ -191,11 +191,11 b' class localrepository(repo.repository):'
191 if c in name:
191 if c in name:
192 raise util.Abort(_('%r cannot be used in a tag name') % c)
192 raise util.Abort(_('%r cannot be used in a tag name') % c)
193
193
194 self.hook('pretag', throw=True, node=node, tag=name, local=local)
194 self.hook('pretag', throw=True, node=hex(node), tag=name, local=local)
195
195
196 if local:
196 if local:
197 self.opener('localtags', 'a').write('%s %s\n' % (node, name))
197 self.opener('localtags', 'a').write('%s %s\n' % (hex(node), name))
198 self.hook('tag', node=node, tag=name, local=local)
198 self.hook('tag', node=hex(node), tag=name, local=local)
199 return
199 return
200
200
201 for x in self.status()[:5]:
201 for x in self.status()[:5]:
@@ -203,15 +203,12 b' class localrepository(repo.repository):'
203 raise util.Abort(_('working copy of .hgtags is changed '
203 raise util.Abort(_('working copy of .hgtags is changed '
204 '(please commit .hgtags manually)'))
204 '(please commit .hgtags manually)'))
205
205
206 self.wfile('.hgtags', 'ab').write('%s %s\n' % (node, name))
206 self.wfile('.hgtags', 'ab').write('%s %s\n' % (hex(node), name))
207 if self.dirstate.state('.hgtags') == '?':
207 if self.dirstate.state('.hgtags') == '?':
208 self.add(['.hgtags'])
208 self.add(['.hgtags'])
209
209
210 if not message:
211 message = _('Added tag %s for changeset %s') % (name, node)
212
213 self.commit(['.hgtags'], message, user, date)
210 self.commit(['.hgtags'], message, user, date)
214 self.hook('tag', node=node, tag=name, local=local)
211 self.hook('tag', node=hex(node), tag=name, local=local)
215
212
216 def tags(self):
213 def tags(self):
217 '''return a mapping of tag to node'''
214 '''return a mapping of tag to node'''
@@ -1105,7 +1102,7 b' class localrepository(repo.repository):'
1105 else:
1102 else:
1106 raise util.Abort(_("repository is unrelated"))
1103 raise util.Abort(_("repository is unrelated"))
1107
1104
1108 self.ui.note(_("found new changesets starting at ") +
1105 self.ui.debug(_("found new changesets starting at ") +
1109 " ".join([short(f) for f in fetch]) + "\n")
1106 " ".join([short(f) for f in fetch]) + "\n")
1110
1107
1111 self.ui.debug(_("%d total queries\n") % reqcnt)
1108 self.ui.debug(_("%d total queries\n") % reqcnt)
@@ -32,6 +32,9 b' writing tests:'
32 -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
32 -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
33 to strip dates
33 to strip dates
34
34
35 - You can append your own hgrc settings to the file that the environment
36 variable HGRCPATH points to. This file is cleared before running a test.
37
35 You also need to be careful that the tests are portable from one platform
38 You also need to be careful that the tests are portable from one platform
36 to another. You're probably working on Linux, where the GNU toolchain has
39 to another. You're probably working on Linux, where the GNU toolchain has
37 more (or different) functionality than on MacOS, *BSD, Solaris, AIX, etc.
40 more (or different) functionality than on MacOS, *BSD, Solaris, AIX, etc.
@@ -211,6 +211,10 b' def run_one(test):'
211 sys.stdout.write('.')
211 sys.stdout.write('.')
212 sys.stdout.flush()
212 sys.stdout.flush()
213
213
214 # create a fresh hgrc
215 hgrc = file(HGRCPATH, 'w+')
216 hgrc.close()
217
214 err = os.path.join(TESTDIR, test+".err")
218 err = os.path.join(TESTDIR, test+".err")
215 ref = os.path.join(TESTDIR, test+".out")
219 ref = os.path.join(TESTDIR, test+".out")
216
220
@@ -319,11 +323,11 b" os.environ['TZ'] = 'GMT'"
319 os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"'
323 os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"'
320 os.environ["HGMERGE"] = sys.executable + ' -c "import sys; sys.exit(0)"'
324 os.environ["HGMERGE"] = sys.executable + ' -c "import sys; sys.exit(0)"'
321 os.environ["HGUSER"] = "test"
325 os.environ["HGUSER"] = "test"
322 os.environ["HGRCPATH"] = ""
323
326
324 TESTDIR = os.environ["TESTDIR"] = os.getcwd()
327 TESTDIR = os.environ["TESTDIR"] = os.getcwd()
325 HGTMP = os.environ["HGTMP"] = tempfile.mkdtemp("", "hgtests.")
328 HGTMP = os.environ["HGTMP"] = tempfile.mkdtemp("", "hgtests.")
326 DAEMON_PIDS = os.environ["DAEMON_PIDS"] = os.path.join(HGTMP, 'daemon.pids')
329 DAEMON_PIDS = os.environ["DAEMON_PIDS"] = os.path.join(HGTMP, 'daemon.pids')
330 HGRCPATH = os.environ["HGRCPATH"] = os.path.join(HGTMP, '.hgrc')
327
331
328 vlog("# Using TESTDIR", TESTDIR)
332 vlog("# Using TESTDIR", TESTDIR)
329 vlog("# Using HGTMP", HGTMP)
333 vlog("# Using HGTMP", HGTMP)
@@ -1,8 +1,7 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
3 echo "[extensions]" >> $HGRCPATH
4 echo "[extensions]" >> $HGTMP/.hgrc
4 echo "mq=" >> $HGRCPATH
5 echo "mq=" >> $HGTMP/.hgrc
6 cat > $HGTMP/false <<EOF
5 cat > $HGTMP/false <<EOF
7 #!/bin/sh
6 #!/bin/sh
8 exit 1
7 exit 1
@@ -2,9 +2,8 b''
2
2
3 set -e
3 set -e
4
4
5 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
5 echo "[extensions]" >> $HGRCPATH
6 echo "[extensions]" >> $HGTMP/.hgrc
6 echo "hbisect=" >> $HGRCPATH
7 echo "hbisect=" >> $HGTMP/.hgrc
8
7
9 echo % init
8 echo % init
10 hg init
9 hg init
@@ -1,4 +1,20 b''
1 # default style is like normal output
1 # default style is like normal output
2 1c1
3 < changeset: 3:10e46f2dcbf4
4 ---
5 > changeset: 3:10e46f2dcbf4823578cf180f33ecf0b957964c47
6 10c10
7 < changeset: 2:97054abb4ab8
8 ---
9 > changeset: 2:97054abb4ab824450e9164180baf491ae0078465
10 18c18
11 < changeset: 1:b608e9d1a3f0
12 ---
13 > changeset: 1:b608e9d1a3f0273ccf70fb85fd6866b3482bf965
14 29c29
15 < changeset: 0:1e4e1b8f71e0
16 ---
17 > changeset: 0:1e4e1b8f71e05681d422154f5421e385fec3454f
2 18a19
18 18a19
3 > files:
19 > files:
4 29a31
20 29a31
@@ -2,7 +2,7 b' A b'
2 b
2 b
3 b: copy a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
3 b: copy a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
4 we should see two history entries
4 we should see two history entries
5 changeset: 1:386a3cc01532710ca78aed9a54fa2f459c04f29c
5 changeset: 1:386a3cc01532
6 tag: tip
6 tag: tip
7 user: test
7 user: test
8 date: Mon Jan 12 13:46:40 1970 +0000
8 date: Mon Jan 12 13:46:40 1970 +0000
@@ -11,7 +11,7 b' description:'
11 2
11 2
12
12
13
13
14 changeset: 0:33aaa84a386bd609094aeb21a97c09436c482ef1
14 changeset: 0:33aaa84a386b
15 user: test
15 user: test
16 date: Mon Jan 12 13:46:40 1970 +0000
16 date: Mon Jan 12 13:46:40 1970 +0000
17 files: a
17 files: a
@@ -1,8 +1,7 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
3 echo "[extensions]" >> $HGRCPATH
4 echo "[extensions]" >> $HGTMP/.hgrc
4 echo "extdiff=" >> $HGRCPATH
5 echo "extdiff=" >> $HGTMP/.hgrc
6
5
7 hg init a
6 hg init a
8 cd a
7 cd a
@@ -14,9 +13,9 b' if [ $? -ne 0 ]; then'
14 fi
13 fi
15 hg extdiff -o -Nr $opt
14 hg extdiff -o -Nr $opt
16
15
17 echo "[extdiff]" >> $HGTMP/.hgrc
16 echo "[extdiff]" >> $HGRCPATH
18 echo "cmd.falabala=echo" >> $HGTMP/.hgrc
17 echo "cmd.falabala=echo" >> $HGRCPATH
19 echo "opts.falabala=diffing" >> $HGTMP/.hgrc
18 echo "opts.falabala=diffing" >> $HGRCPATH
20
19
21 hg falabala
20 hg falabala
22
21
@@ -1,8 +1,7 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
3 echo "[extensions]" >> $HGRCPATH
4 echo "[extensions]" >> $HGTMP/.hgrc
4 echo "fetch=" >> $HGRCPATH
5 echo "fetch=" >> $HGTMP/.hgrc
6
5
7 hg init a
6 hg init a
8 echo a > a/a
7 echo a > a/a
@@ -31,10 +31,10 b' main: we should have a merge here'
31 2 150 71 2 2 a6aef98656b7 c36078bec30d 000000000000
31 2 150 71 2 2 a6aef98656b7 c36078bec30d 000000000000
32 3 221 72 3 3 0c2cc6fc80e2 182b283965f1 a6aef98656b7
32 3 221 72 3 3 0c2cc6fc80e2 182b283965f1 a6aef98656b7
33 log should show foo and quux changed
33 log should show foo and quux changed
34 changeset: 3:0c2cc6fc80e2d4ee289bb658dbbe9ad932380fe9
34 changeset: 3:0c2cc6fc80e2
35 tag: tip
35 tag: tip
36 parent: 1:182b283965f1069c0112784e30e7755ad1c0dd52
36 parent: 1:182b283965f1
37 parent: 2:a6aef98656b71154cae9d87408abe6d0218c8045
37 parent: 2:a6aef98656b7
38 user: test
38 user: test
39 date: Mon Jan 12 13:46:40 1970 +0000
39 date: Mon Jan 12 13:46:40 1970 +0000
40 files: foo quux
40 files: foo quux
@@ -47,7 +47,7 b' 0:b6c483daf290'
47 0:8580ff50825a
47 0:8580ff50825a
48 1:b6c483daf290
48 1:b6c483daf290
49 %% -v/--verbose
49 %% -v/--verbose
50 changeset: 1:b6c483daf2907ce5825c0bb50f5716226281cc1a
50 changeset: 1:b6c483daf290
51 tag: tip
51 tag: tip
52 user: test
52 user: test
53 date: Thu Jan 01 00:00:01 1970 +0000
53 date: Thu Jan 01 00:00:01 1970 +0000
@@ -56,7 +56,7 b' description:'
56 b
56 b
57
57
58
58
59 changeset: 0:8580ff50825a50c8f716709acdf8de0deddcd6ab
59 changeset: 0:8580ff50825a
60 user: test
60 user: test
61 date: Thu Jan 01 00:00:01 1970 +0000
61 date: Thu Jan 01 00:00:01 1970 +0000
62 files: a
62 files: a
@@ -64,7 +64,7 b' description:'
64 a
64 a
65
65
66
66
67 changeset: 0:b6c483daf2907ce5825c0bb50f5716226281cc1a
67 changeset: 0:b6c483daf290
68 tag: tip
68 tag: tip
69 user: test
69 user: test
70 date: Thu Jan 01 00:00:01 1970 +0000
70 date: Thu Jan 01 00:00:01 1970 +0000
@@ -36,43 +36,43 b' added 3 changesets with 2 changes to 2 f'
36 (run 'hg update' to get a working copy)
36 (run 'hg update' to get a working copy)
37 pretag hook: t=a n=4c52fb2e402287dd5dc052090682536c8406c321 l=0
37 pretag hook: t=a n=4c52fb2e402287dd5dc052090682536c8406c321 l=0
38 precommit hook: p1=4c52fb2e402287dd5dc052090682536c8406c321 p2=
38 precommit hook: p1=4c52fb2e402287dd5dc052090682536c8406c321 p2=
39 pretxncommit hook: n=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 p1=4c52fb2e402287dd5dc052090682536c8406c321 p2=
39 pretxncommit hook: n=8ea2ef7ad3e8cac946c72f1e0c79d6aebc301198 p1=4c52fb2e402287dd5dc052090682536c8406c321 p2=
40 4:4f92e785b90a
40 4:8ea2ef7ad3e8
41 commit hook: n=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 p1=4c52fb2e402287dd5dc052090682536c8406c321 p2=
41 commit hook: n=8ea2ef7ad3e8cac946c72f1e0c79d6aebc301198 p1=4c52fb2e402287dd5dc052090682536c8406c321 p2=
42 commit hook b
42 commit hook b
43 tag hook: t=a n=4c52fb2e402287dd5dc052090682536c8406c321 l=0
43 tag hook: t=a n=4c52fb2e402287dd5dc052090682536c8406c321 l=0
44 pretag hook: t=la n=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 l=1
44 pretag hook: t=la n=8ea2ef7ad3e8cac946c72f1e0c79d6aebc301198 l=1
45 tag hook: t=la n=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 l=1
45 tag hook: t=la n=8ea2ef7ad3e8cac946c72f1e0c79d6aebc301198 l=1
46 pretag hook: t=fa n=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 l=0
46 pretag hook: t=fa n=8ea2ef7ad3e8cac946c72f1e0c79d6aebc301198 l=0
47 pretag.forbid hook
47 pretag.forbid hook
48 abort: pretag.forbid hook exited with status 1
48 abort: pretag.forbid hook exited with status 1
49 pretag hook: t=fla n=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 l=1
49 pretag hook: t=fla n=8ea2ef7ad3e8cac946c72f1e0c79d6aebc301198 l=1
50 pretag.forbid hook
50 pretag.forbid hook
51 abort: pretag.forbid hook exited with status 1
51 abort: pretag.forbid hook exited with status 1
52 4:4f92e785b90a
52 4:8ea2ef7ad3e8
53 precommit hook: p1=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 p2=
53 precommit hook: p1=8ea2ef7ad3e8cac946c72f1e0c79d6aebc301198 p2=
54 pretxncommit hook: n=7792358308a2026661cea44f9d47c072813004cb p1=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 p2=
54 pretxncommit hook: n=fad284daf8c032148abaffcd745dafeceefceb61 p1=8ea2ef7ad3e8cac946c72f1e0c79d6aebc301198 p2=
55 5:7792358308a2
55 5:fad284daf8c0
56 pretxncommit.forbid hook: tip=5:7792358308a2
56 pretxncommit.forbid hook: tip=5:fad284daf8c0
57 abort: pretxncommit.forbid hook exited with status 1
57 abort: pretxncommit.forbid hook exited with status 1
58 transaction abort!
58 transaction abort!
59 rollback completed
59 rollback completed
60 4:4f92e785b90a
60 4:8ea2ef7ad3e8
61 precommit hook: p1=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 p2=
61 precommit hook: p1=8ea2ef7ad3e8cac946c72f1e0c79d6aebc301198 p2=
62 precommit.forbid hook
62 precommit.forbid hook
63 abort: precommit.forbid hook exited with status 1
63 abort: precommit.forbid hook exited with status 1
64 4:4f92e785b90a
64 4:8ea2ef7ad3e8
65 preupdate hook: p1=b702efe9688826e3a91283852b328b84dbf37bc2 p2=
65 preupdate hook: p1=b702efe9688826e3a91283852b328b84dbf37bc2 p2=
66 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
66 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
67 preupdate hook: p1=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 p2=
67 preupdate hook: p1=8ea2ef7ad3e8cac946c72f1e0c79d6aebc301198 p2=
68 update hook: p1=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 p2= err=0
68 update hook: p1=8ea2ef7ad3e8cac946c72f1e0c79d6aebc301198 p2= err=0
69 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
69 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
70 3:4c52fb2e4022
70 3:4c52fb2e4022
71 prechangegroup.forbid hook
71 prechangegroup.forbid hook
72 pulling from ../a
72 pulling from ../a
73 searching for changes
73 searching for changes
74 abort: prechangegroup.forbid hook exited with status 1
74 abort: prechangegroup.forbid hook exited with status 1
75 pretxnchangegroup.forbid hook: tip=4:4f92e785b90a
75 pretxnchangegroup.forbid hook: tip=4:8ea2ef7ad3e8
76 pulling from ../a
76 pulling from ../a
77 searching for changes
77 searching for changes
78 adding changesets
78 adding changesets
@@ -84,7 +84,7 b' transaction abort!'
84 rollback completed
84 rollback completed
85 3:4c52fb2e4022
85 3:4c52fb2e4022
86 preoutgoing hook: s=pull
86 preoutgoing hook: s=pull
87 outgoing hook: n=4f92e785b90ae8995dfe156e39dd4fbc3b346a24 s=pull
87 outgoing hook: n=8ea2ef7ad3e8cac946c72f1e0c79d6aebc301198 s=pull
88 pulling from ../a
88 pulling from ../a
89 searching for changes
89 searching for changes
90 adding changesets
90 adding changesets
@@ -34,7 +34,7 b' date: Thu Jan 01 00:00:01 1970 +0'
34 summary: a
34 summary: a
35
35
36 % one rename
36 % one rename
37 changeset: 0:8580ff50825a50c8f716709acdf8de0deddcd6ab
37 changeset: 0:8580ff50825a
38 user: test
38 user: test
39 date: Thu Jan 01 00:00:01 1970 +0000
39 date: Thu Jan 01 00:00:01 1970 +0000
40 files: a
40 files: a
@@ -43,7 +43,7 b' a'
43
43
44
44
45 % many renames
45 % many renames
46 changeset: 4:8c1c8408f7371319750ea2d4fa7969828effbcf4
46 changeset: 4:8c1c8408f737
47 tag: tip
47 tag: tip
48 user: test
48 user: test
49 date: Thu Jan 01 00:00:05 1970 +0000
49 date: Thu Jan 01 00:00:05 1970 +0000
@@ -52,7 +52,7 b' description:'
52 e
52 e
53
53
54
54
55 changeset: 2:21fba396af4c801f9717de6c415b6cc9620437e8
55 changeset: 2:21fba396af4c
56 user: test
56 user: test
57 date: Thu Jan 01 00:00:03 1970 +0000
57 date: Thu Jan 01 00:00:03 1970 +0000
58 files: b dir/b
58 files: b dir/b
@@ -60,7 +60,7 b' description:'
60 c
60 c
61
61
62
62
63 changeset: 1:c0296dabce9bf0cd3fdd608de26693c91cd6bbf4
63 changeset: 1:c0296dabce9b
64 user: test
64 user: test
65 date: Thu Jan 01 00:00:02 1970 +0000
65 date: Thu Jan 01 00:00:02 1970 +0000
66 files: b
66 files: b
@@ -68,7 +68,7 b' description:'
68 b
68 b
69
69
70
70
71 changeset: 0:8580ff50825a50c8f716709acdf8de0deddcd6ab
71 changeset: 0:8580ff50825a
72 user: test
72 user: test
73 date: Thu Jan 01 00:00:01 1970 +0000
73 date: Thu Jan 01 00:00:01 1970 +0000
74 files: a
74 files: a
@@ -1,8 +1,7 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
3 echo "[extensions]" >> $HGRCPATH
4 echo "[extensions]" >> $HGTMP/.hgrc
4 echo "mq=" >> $HGRCPATH
5 echo "mq=" >> $HGTMP/.hgrc
6
5
7 echo % help
6 echo % help
8 hg help mq
7 hg help mq
@@ -127,7 +126,7 b' hg ci -Ama'
127 hg strip tip 2>&1 | sed 's/\(saving bundle to \).*/\1/'
126 hg strip tip 2>&1 | sed 's/\(saving bundle to \).*/\1/'
128 hg unbundle .hg/strip-backup/*
127 hg unbundle .hg/strip-backup/*
129
128
130 cat >>$HGTMP/.hgrc <<EOF
129 cat >>$HGRCPATH <<EOF
131 [diff]
130 [diff]
132 git = True
131 git = True
133 EOF
132 EOF
@@ -1,8 +1,7 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
3 echo "[extensions]" >> $HGRCPATH
4 echo "[extensions]" >> $HGTMP/.hgrc
4 echo "mq=" >> $HGRCPATH
5 echo "mq=" >> $HGTMP/.hgrc
6
5
7 hg init
6 hg init
8 hg qinit
7 hg qinit
@@ -1,8 +1,7 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
3 echo "[extensions]" >> $HGRCPATH
4 echo "[extensions]" >> $HGTMP/.hgrc
4 echo "mq=" >> $HGRCPATH
5 echo "mq=" >> $HGTMP/.hgrc
6
5
7 echo % init
6 echo % init
8 hg init a
7 hg init a
@@ -1,8 +1,7 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
3 echo "[extensions]" >> $HGRCPATH
4 echo "[extensions]" >> $HGTMP/.hgrc
4 echo "mq=" >> $HGRCPATH
5 echo "mq=" >> $HGTMP/.hgrc
6
5
7 hg init a
6 hg init a
8 cd a
7 cd a
@@ -1,9 +1,8 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 # Environement setup for MQ
3 # Environement setup for MQ
4 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
4 echo "[extensions]" >> $HGRCPATH
5 echo "[extensions]" >> $HGTMP/.hgrc
5 echo "mq=" >> $HGRCPATH
6 echo "mq=" >> $HGTMP/.hgrc
7
6
8 #Repo init
7 #Repo init
9 hg init
8 hg init
@@ -1,8 +1,7 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
3 echo "[extensions]" >> $HGRCPATH
4 echo "[extensions]" >> $HGTMP/.hgrc
4 echo "mq=" >> $HGRCPATH
5 echo "mq=" >> $HGTMP/.hgrc
6
5
7 hg init a
6 hg init a
8 cd a
7 cd a
@@ -1,6 +1,6 b''
1 reverting a
1 reverting a
2 changeset 3:107ce1ee2b43 backs out changeset 1:25a1420a55f8
2 changeset 3:107ce1ee2b43 backs out changeset 1:25a1420a55f8
3 merging with changeset 2:99a1acecff55
3 merging with changeset 2:e6c3abc120e7
4 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
4 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
5 (branch merge, don't forget to commit)
5 (branch merge, don't forget to commit)
6 abort: invalid date: 'should fail'
6 abort: invalid date: 'should fail'
@@ -4,11 +4,11 b' user: test'
4 date: Mon Jan 12 13:46:40 1970 +0000
4 date: Mon Jan 12 13:46:40 1970 +0000
5 summary: test
5 summary: test
6
6
7 changeset: 1:c5c60883086f
7 changeset: 1:3ecf002a1c57
8 tag: tip
8 tag: tip
9 user: test
9 user: test
10 date: Mon Jan 12 13:46:40 1970 +0000
10 date: Mon Jan 12 13:46:40 1970 +0000
11 summary: Added tag bleah for changeset 0acdaf8983679e0aac16e811534eb49d7ee1f2b4
11 summary: Added tag bleah for changeset 0acdaf898367
12
12
13 changeset: 0:0acdaf898367
13 changeset: 0:0acdaf898367
14 tag: bleah
14 tag: bleah
@@ -24,9 +24,9 b' failed'
24 use of 'hg tag NAME [REV]' is deprecated, please use 'hg tag [-r REV] NAME' instead
24 use of 'hg tag NAME [REV]' is deprecated, please use 'hg tag [-r REV] NAME' instead
25 0acdaf8983679e0aac16e811534eb49d7ee1f2b4 bleah
25 0acdaf8983679e0aac16e811534eb49d7ee1f2b4 bleah
26 0acdaf8983679e0aac16e811534eb49d7ee1f2b4 bleah0
26 0acdaf8983679e0aac16e811534eb49d7ee1f2b4 bleah0
27 c5c60883086f5526bd3e36814b94a73a4e75e172 bleah1
27 3ecf002a1c572a2f3bb4e665417e60fca65bbd42 bleah1
28 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
28 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
29 0acdaf8983679e0aac16e811534eb49d7ee1f2b4 foobar
29 0acdaf8983679e0aac16e811534eb49d7ee1f2b4 foobar
30 c5c60883086f5526bd3e36814b94a73a4e75e172 bleah1
30 3ecf002a1c572a2f3bb4e665417e60fca65bbd42 bleah1
31 abort: '\n' cannot be used in a tag name
31 abort: '\n' cannot be used in a tag name
32 abort: ':' cannot be used in a tag name
32 abort: ':' cannot be used in a tag name
@@ -9,7 +9,7 b' hg add a'
9 hg commit -m "test" -d "1000000 0"
9 hg commit -m "test" -d "1000000 0"
10 hg co
10 hg co
11 hg identify
11 hg identify
12 T=`hg tip -v | head -n 1 | cut -d : -f 3`
12 T=`hg tip --debug | head -n 1 | cut -d : -f 3`
13 echo "$T first" > .hgtags
13 echo "$T first" > .hgtags
14 cat .hgtags
14 cat .hgtags
15 hg add .hgtags
15 hg add .hgtags
@@ -2,35 +2,35 b' unknown'
2 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
2 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
3 0acdaf898367 tip
3 0acdaf898367 tip
4 0acdaf8983679e0aac16e811534eb49d7ee1f2b4 first
4 0acdaf8983679e0aac16e811534eb49d7ee1f2b4 first
5 tip 1:8a3ca90d111dc784e6575d373105be12570e8776
5 tip 1:8a3ca90d111d
6 first 0:0acdaf8983679e0aac16e811534eb49d7ee1f2b4
6 first 0:0acdaf898367
7 8a3ca90d111d tip
7 8a3ca90d111d tip
8 M a
8 M a
9 8a3ca90d111d+ tip
9 8a3ca90d111d+ tip
10 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
10 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
11 0acdaf898367+ first
11 0acdaf898367+ first
12 0acdaf8983679e0aac16e811534eb49d7ee1f2b4+ first
12 0acdaf898367+ first
13 M a
13 M a
14 8216907a933d tip
14 8216907a933d tip
15 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
15 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
16 (branch merge, don't forget to commit)
16 (branch merge, don't forget to commit)
17 8216907a933d+8a3ca90d111d+ tip
17 8216907a933d+8a3ca90d111d+ tip
18 M .hgtags
18 M .hgtags
19 tip 6:c6af9d771a81bb9c7f267ec03491224a9f8ba1cd
19 tip 6:e2174d339386
20 first 0:0acdaf8983679e0aac16e811534eb49d7ee1f2b4
20 first 0:0acdaf898367
21 .hgtags (rev 7:39bba1bbbc4c), line 2: cannot parse entry
21 .hgtags (rev 7:c071f74ab5eb), line 2: cannot parse entry
22 .hgtags (rev 7:39bba1bbbc4c), line 4: node 'foo' is not well formed
22 .hgtags (rev 7:c071f74ab5eb), line 4: node 'foo' is not well formed
23 localtags, line 1: tag 'invalid' refers to unknown node
23 localtags, line 1: tag 'invalid' refers to unknown node
24 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
24 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
25 .hgtags (rev 7:39bba1bbbc4c), line 2: cannot parse entry
25 .hgtags (rev 7:c071f74ab5eb), line 2: cannot parse entry
26 .hgtags (rev 7:39bba1bbbc4c), line 4: node 'foo' is not well formed
26 .hgtags (rev 7:c071f74ab5eb), line 4: node 'foo' is not well formed
27 .hgtags (rev 8:4ca6f1b1a68c), line 2: node 'x' is not well formed
27 .hgtags (rev 8:4ca6f1b1a68c), line 2: node 'x' is not well formed
28 localtags, line 1: tag 'invalid' refers to unknown node
28 localtags, line 1: tag 'invalid' refers to unknown node
29 tip 8:4ca6f1b1a68c77be687a03aaeb1614671ba59b20
29 tip 8:4ca6f1b1a68c
30 first 0:0acdaf8983679e0aac16e811534eb49d7ee1f2b4
30 first 0:0acdaf898367
31 changeset: 8:4ca6f1b1a68c
31 changeset: 8:4ca6f1b1a68c
32 .hgtags (rev 7:39bba1bbbc4c), line 2: cannot parse entry
32 .hgtags (rev 7:c071f74ab5eb), line 2: cannot parse entry
33 .hgtags (rev 7:39bba1bbbc4c), line 4: node 'foo' is not well formed
33 .hgtags (rev 7:c071f74ab5eb), line 4: node 'foo' is not well formed
34 .hgtags (rev 8:4ca6f1b1a68c), line 2: node 'x' is not well formed
34 .hgtags (rev 8:4ca6f1b1a68c), line 2: node 'x' is not well formed
35 localtags, line 1: tag 'invalid' refers to unknown node
35 localtags, line 1: tag 'invalid' refers to unknown node
36 tag: tip
36 tag: tip
@@ -64,7 +64,7 b' user: test'
64 date: Mon Jan 12 13:46:40 1970 +0000
64 date: Mon Jan 12 13:46:40 1970 +0000
65 summary: 2
65 summary: 2
66
66
67 changeset: 1:802f095af299cde27a85b2f056aef3829870956c
67 changeset: 1:802f095af299
68 tag: tip
68 tag: tip
69 user: test
69 user: test
70 date: Mon Jan 12 13:46:40 1970 +0000
70 date: Mon Jan 12 13:46:40 1970 +0000
@@ -73,7 +73,7 b' description:'
73 2
73 2
74
74
75
75
76 changeset: 0:33aaa84a386bd609094aeb21a97c09436c482ef1
76 changeset: 0:33aaa84a386b
77 user: test
77 user: test
78 date: Mon Jan 12 13:46:40 1970 +0000
78 date: Mon Jan 12 13:46:40 1970 +0000
79 files: a
79 files: a
General Comments 0
You need to be logged in to leave comments. Login now