##// END OF EJS Templates
revset: prevent using outgoing() and remote() in hgweb session (BC)...
Yuya Nishihara -
r30850:41e31a6f stable
parent child Browse files
Show More
@@ -1546,7 +1546,7 b' def origin(repo, subset, x):'
1546 # some optimizations from the fact this is a baseset.
1546 # some optimizations from the fact this is a baseset.
1547 return subset & o
1547 return subset & o
1548
1548
1549 @predicate('outgoing([path])', safe=True)
1549 @predicate('outgoing([path])', safe=False)
1550 def outgoing(repo, subset, x):
1550 def outgoing(repo, subset, x):
1551 """Changesets not found in the specified destination repository, or the
1551 """Changesets not found in the specified destination repository, or the
1552 default push location.
1552 default push location.
@@ -1737,7 +1737,7 b' def public(repo, subset, x):'
1737 return subset.filter(condition, condrepr=('<phase %r>', target),
1737 return subset.filter(condition, condrepr=('<phase %r>', target),
1738 cache=False)
1738 cache=False)
1739
1739
1740 @predicate('remote([id [,path]])', safe=True)
1740 @predicate('remote([id [,path]])', safe=False)
1741 def remote(repo, subset, x):
1741 def remote(repo, subset, x):
1742 """Local revision that corresponds to the given identifier in a
1742 """Local revision that corresponds to the given identifier in a
1743 remote repository, if present. Here, the '.' identifier is a
1743 remote repository, if present. Here, the '.' identifier is a
General Comments 0
You need to be logged in to leave comments. Login now