##// END OF EJS Templates
commands: fix shadowed repo module
Patrick Mezard -
r6405:b8346ae5 default
parent child Browse files
Show More
@@ -6,7 +6,7 b''
6 # of the GNU General Public License, incorporated herein by reference.
6 # of the GNU General Public License, incorporated herein by reference.
7
7
8 from node import hex, nullid, nullrev, short
8 from node import hex, nullid, nullrev, short
9 from repo import RepoError
9 from repo import RepoError, NoCapability
10 from i18n import _
10 from i18n import _
11 import os, re, sys, urllib
11 import os, re, sys, urllib
12 import hg, util, revlog, bundlerepo, extensions, copies
12 import hg, util, revlog, bundlerepo, extensions, copies
@@ -2045,7 +2045,7 b' def pull(ui, repo, source="default", **o'
2045 if revs:
2045 if revs:
2046 try:
2046 try:
2047 revs = [other.lookup(rev) for rev in revs]
2047 revs = [other.lookup(rev) for rev in revs]
2048 except repo.NoCapability:
2048 except NoCapability:
2049 error = _("Other repository doesn't support revision lookup, "
2049 error = _("Other repository doesn't support revision lookup, "
2050 "so a rev cannot be specified.")
2050 "so a rev cannot be specified.")
2051 raise util.Abort(error)
2051 raise util.Abort(error)
@@ -14,6 +14,9 b' cd ..'
14 hg init copy
14 hg init copy
15 cd copy
15 cd copy
16
16
17 echo '% pull a missing revision'
18 hg pull -qr missing ../repo
19
17 echo '% pull -r 0'
20 echo '% pull -r 0'
18 hg pull -qr 0 ../repo
21 hg pull -qr 0 ../repo
19 hg log
22 hg log
@@ -15,6 +15,8 b' user: test'
15 date: Thu Jan 01 00:00:00 1970 +0000
15 date: Thu Jan 01 00:00:00 1970 +0000
16 summary: add foo
16 summary: add foo
17
17
18 % pull a missing revision
19 abort: unknown revision 'missing'!
18 % pull -r 0
20 % pull -r 0
19 changeset: 0:bbd179dfa0a7
21 changeset: 0:bbd179dfa0a7
20 tag: tip
22 tag: tip
General Comments 0
You need to be logged in to leave comments. Login now