Comments
Patch
@@ -1658,8 +1658,9 @@
for filename in match.files():
if follow:
if filename not in pctx:
- raise error.Abort(_('cannot follow file not in parent '
- 'revision: "%s"') % filename)
+ # this is not tested
+ raise error.Abort(_('cannot follow parent revision '
+ 'does not have file: "%s"') % filename)
yield filename, pctx[filename].filenode()
else:
yield filename, None
@@ -1976,8 +1977,8 @@
slowpath = True
continue
else:
- raise error.Abort(_('cannot follow file not in parent '
- 'revision: "%s"') % f)
+ raise error.Abort(_('cannot follow parent revision '
+ 'does not have file: "%s"') % f)
filelog = repo.file(f)
if not filelog:
# A zero count may be a directory or deleted file, so
@@ -1650,9 +1650,9 @@
Test --follow on a non-existent directory
$ testlog -f dir
- abort: cannot follow file not in parent revision: "dir"
- abort: cannot follow file not in parent revision: "dir"
- abort: cannot follow file not in parent revision: "dir"
+ abort: cannot follow parent revision does not have file: "dir"
+ abort: cannot follow parent revision does not have file: "dir"
+ abort: cannot follow parent revision does not have file: "dir"
Test --follow on a directory
@@ -1676,9 +1676,9 @@
Test --follow on file not in parent revision
$ testlog -f a
- abort: cannot follow file not in parent revision: "a"
- abort: cannot follow file not in parent revision: "a"
- abort: cannot follow file not in parent revision: "a"
+ abort: cannot follow parent revision does not have file: "a"
+ abort: cannot follow parent revision does not have file: "a"
+ abort: cannot follow parent revision does not have file: "a"
Test --follow and patterns
@@ -101,7 +101,7 @@
-f, non-existent directory
$ hg log -f dir
- abort: cannot follow file not in parent revision: "dir"
+ abort: cannot follow parent revision does not have file: "dir"
[255]
-f, directory