log --revision date:yesterday and explicit date when only one commit matches broken.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned |
Bug Description
The revisionspec help says the following about the date signature:
<begin>
date:
Supply a datestamp to select the first revision that matches the date.
Date can be 'yesterday', 'today', 'tomorrow' or a YYYY-MM-DD string.
Matches the first entry after a given date (either at midnight or
at a specified time).
One way to display all the changes since yesterday would be:
bzr log -r date:yesterday..
Examples:
date:
date:
<end>
However errors occur when I try to use this on a repos with the following last commits:
<begin>
$ bzr log -r revno:72.. file://
-------
revno: 73 [merge]
committer: cmsadmin <email address hidden>
branch nick: dev_navinfo
timestamp: Fri 2015-11-13 10:19:31 +0100
message:
Task: NICHN011479
Integrating into repository
-------
revno: 72
tags: dev_navinfo_
committer: cmsadmin <email address hidden>
branch nick: dev_navinfo
timestamp: Thu 2015-09-17 04:25:36 +0200
message:
add 14.04 builds
-------
Use --include-merged or -n0 to see merged revisions.
<end>
Examples, note that the date when these were run was 2015-11-13, the date of the commit for revision 73:
<begin>
$ bzr log -r date:yesterday.. file://
bzr: ERROR: Requested revision: 'date:yesterday' does not exist in branch: file://
<end>
Expected revno 73.
<begin>
bzr log -r date:2015-10-01.. -n0 file://
bzr: ERROR: Requested revision: 'date:2015-10-01' does not exist in branch: file://
<end>
Expected revno 73.
<begin>
$ bzr log -r 2010-01-
bzr: ERROR: Requested revision: 'date:today' does not exist in branch: file://
<end>
Expected complete history.
I also wonder how 'tomorrow' can ever work given that the description says that the selection is for the 'first entry after a given date', e.g.
<begin>
$ bzr log -r ..date:tomorrow -n0 file://
bzr: ERROR: Requested revision: 'date:tomorrow' does not exist in branch: file://
<end>
The bzr version used is:
<begin>
$ bzr --version
Bazaar (bzr) 2.6.0
Python interpreter: /usr/bin/python 2.7.6
Python standard library: /usr/lib/python2.7
Platform: Linux-3.
bzrlib: /data/id/
Bazaar configuration: /data/users/
Bazaar log file: /data/users/
Copyright 2005-2012 Canonical Ltd.
http://
bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.
Bazaar is part of the GNU Project to produce a free operating system.
<end>
Here are example tracebacks from the bzr log file:
<begin>
Fri 2015-11-13 10:56:08 +0100
0.081 bazaar version: 2.6.0
0.081 bzr arguments: [u'log', u'-r', u'2010-
0.087 looking for plugins in /data/users/
0.092 looking for plugins in /data/id/
0.097 Plugin name diff_revid already loaded
0.143 looking for plugins in /usr/lib/
0.143 Plugin name po_merge already loaded
0.143 Plugin name bash_completion already loaded
0.143 Plugin name grep already loaded
0.143 Plugin name launchpad already loaded
0.143 Plugin name weave_fmt already loaded
0.143 Plugin name changelog_merge already loaded
0.143 Plugin name netrc_credentia
0.143 Plugin name news_merge already loaded
0.151 Returning RevisionSpec RevisionSpec_date for date:today
0.152 encoding stdout as sys.stdout encoding 'ANSI_X3.4-1968'
0.244 Traceback (most recent call last):
File "/data/
return the_callable(*args, **kwargs)
File "/data/
ret = run(*run_argv)
File "/data/
return self.run(
File "/data/
return self._operation
File "/data/
self.cleanups, self.func, *args, **kwargs)
File "/data/
result = func(*args, **kwargs)
File "/data/
result = func(*args, **kwargs)
File "/data/
revision, file_list, self.add_cleanup)
File "/data/
"log")
File "/data/
rev2 = end_spec.
File "/data/
return self._match_
File "/data/
info = self._match_
File "/data/
raise errors.
InvalidRevision
0.244 return code 3
Fri 2015-11-13 10:56:18 +0100
0.072 bazaar version: 2.6.0
0.072 bzr arguments: [u'log', u'-r', u'2010-
0.075 looking for plugins in /data/users/
0.085 looking for plugins in /data/id/
0.085 Plugin name diff_revid already loaded
0.115 looking for plugins in /usr/lib/
0.115 Plugin name po_merge already loaded
0.115 Plugin name bash_completion already loaded
0.115 Plugin name grep already loaded
0.115 Plugin name launchpad already loaded
0.115 Plugin name weave_fmt already loaded
0.115 Plugin name changelog_merge already loaded
0.115 Plugin name netrc_credentia
0.115 Plugin name news_merge already loaded
0.122 Returning RevisionSpec RevisionSpec_date for date:yesterday
0.123 encoding stdout as sys.stdout encoding 'ANSI_X3.4-1968'
0.196 Traceback (most recent call last):
File "/data/
return the_callable(*args, **kwargs)
File "/data/
ret = run(*run_argv)
File "/data/
return self.run(
File "/data/
return self._operation
File "/data/
self.cleanups, self.func, *args, **kwargs)
File "/data/
result = func(*args, **kwargs)
File "/data/
result = func(*args, **kwargs)
File "/data/
revision, file_list, self.add_cleanup)
File "/data/
"log")
File "/data/
rev2 = end_spec.
File "/data/
return self._match_
File "/data/
info = self._match_
File "/data/
raise errors.
InvalidRevision
<end>
tags: | added: check-for-breezy |