##// END OF EJS Templates
Merge with stable
Martin Geisler -
r10692:2a6c34b1 merge default
parent child Browse files
Show More
@@ -16,7 +16,6 b' directory. Applied patches are both patc'
16 16
17 17 Common tasks (use "hg help command" for more details)::
18 18
19 prepare repository to work with patches qinit
20 19 create new patch qnew
21 20 import existing patch qimport
22 21
@@ -1850,7 +1849,7 b' def clone(ui, source, dest=None, **opts)'
1850 1849 default. Use -p <url> to change.
1851 1850
1852 1851 The patch directory must be a nested Mercurial repository, as
1853 would be created by qinit -c.
1852 would be created by init --mq.
1854 1853 '''
1855 1854 def patchdir(repo):
1856 1855 url = repo.url()
@@ -1868,7 +1867,7 b' def clone(ui, source, dest=None, **opts)'
1868 1867 hg.repository(ui, patchespath)
1869 1868 except error.RepoError:
1870 1869 raise util.Abort(_('versioned patch repository not found'
1871 ' (see qinit -c)'))
1870 ' (see init --mq)'))
1872 1871 qbase, destrev = None, None
1873 1872 if sr.local():
1874 1873 if sr.mq.applied:
@@ -2604,7 +2603,16 b' def mqinit(orig, ui, *args, **kwargs):'
2604 2603 if not mq:
2605 2604 return orig(ui, *args, **kwargs)
2606 2605
2606 if args:
2607 repopath = args[0]
2608 if not hg.islocal(repopath):
2609 raise util.Abort(_('only a local queue repository '
2610 'may be initialized'))
2611 else:
2607 2612 repopath = cmdutil.findrepo(os.getcwd())
2613 if not repopath:
2614 raise util.Abort(_('There is no Mercurial repository here '
2615 '(.hg not found)'))
2608 2616 repo = hg.repository(ui, repopath)
2609 2617 return qinit(ui, repo, True)
2610 2618
@@ -80,6 +80,19 b" echo ' series:'"
80 80 cat .hg/patches/series
81 81 cd ..
82 82
83 echo '% init --mq without repo'
84 mkdir f
85 cd f
86 hg init --mq
87 cd ..
88
89 echo '% init --mq with nonexistent directory'
90 hg init --mq nonexistentdir
91
92 echo '% init --mq with bundle (non "local")'
93 hg -R a bundle --all a.bundle >/dev/null
94 hg init --mq a.bundle
95
83 96 cd a
84 97
85 98 hg qnew -m 'foo bar' test.patch
@@ -10,7 +10,6 b' Applied patches are both patch files and'
10 10
11 11 Common tasks (use "hg help command" for more details):
12 12
13 prepare repository to work with patches qinit
14 13 create new patch qnew
15 14 import existing patch qimport
16 15
@@ -90,6 +89,12 b' bleh'
90 89 series:
91 90 A
92 91 B
92 % init --mq without repo
93 abort: There is no Mercurial repository here (.hg not found)
94 % init --mq with nonexistent directory
95 abort: repository nonexistentdir not found!
96 % init --mq with bundle (non "local")
97 abort: only a local queue repository may be initialized
93 98 % qrefresh
94 99 foo bar
95 100
@@ -513,7 +518,7 b' date: Thu Jan 01 00:00:00 1970 +0'
513 518 summary: add foo
514 519
515 520 % qclone
516 abort: versioned patch repository not found (see qinit -c)
521 abort: versioned patch repository not found (see init --mq)
517 522 adding .hg/patches/patch1
518 523 main repo:
519 524 rev 1: change foo
General Comments 0
You need to be logged in to leave comments. Login now