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