[PATCH 1 of 1] Fix a small corner of log behaviour
Bryan O'Sullivan
bos at serpentine.com
Wed Aug 24 22:45:00 UTC 2005
If invoked with no arguments in a subdirectory of the repo root, it
should print the history of the repository as a whole.
# HG changeset patch
# User bos at serpentine.internal.keyresearch.com
# Node ID c0a1abf562eba418b3d8cdfc2f8dc3caec6951cc
# Parent bcb44382b0d044475690a9aa1ff6b22e7f033568
Fix a small corner of log behaviour.
If invoked with no arguments in a subdirectory of the repo root, it
should print the history of the repository as a whole.
diff -r bcb44382b0d0 -r c0a1abf562eb mercurial/commands.py
--- a/mercurial/commands.py Wed Aug 24 20:31:46 2005
+++ b/mercurial/commands.py Wed Aug 24 21:45:35 2005
@@ -845,7 +845,12 @@
# performance, so we use iterators that walk forwards through
# windows of revisions, yielding revisions in reverse order, while
# walking the windows backwards.
- files, matchfn, anypats = matchpats(repo, repo.getcwd(), pats, opts)
+ cwd = repo.getcwd()
+ if not pats and cwd:
+ opts['include'] = [os.path.join(cwd, i) for i in opts['include']]
+ opts['exclude'] = [os.path.join(cwd, x) for x in opts['exclude']]
+ files, matchfn, anypats = matchpats(repo, (pats and cwd) or '',
+ pats, opts)
revs = map(int, revrange(ui, repo, opts['rev'] or ['tip:0']))
wanted = {}
slowpath = anypats
More information about the Mercurial
mailing list