date revisionspec not working as expected

Bug #918665 reported by Patrick Farrell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned
Breezy
Opinion
High
Unassigned

Bug Description

Consider the following:

mkdir /tmp/bzrbug
cd /tmp/bzrbug
bzr co lp:~libadjoint/libadjoint/dolfin_paper
cd dolfin_paper
bzr log -r3
bzr log -r4

This shows that r3 was committed on the evening of the 18th of January, and r4 was committed on the afternoon of the 19th.

bzr cat -r3 dolfin_adjoint.tex > r3.tex
bzr cat -r4 dolfin_adjoint.tex > r4.tex
bzr cat -rdate:2012-01-19 dolfin_adjoint.tex > today.tex

I expect that -rdate:2012-01-19 will return r3, as that was the current revision at midnight on the 19th. However,

[pef@caoimhe:/tmp/bzrbug/dolfin_paper]$ md5sum r3.tex r4.tex today.tex
011861d9334740c66ec42151512eb50e r3.tex
a381c595b663d8b3cffc39ac5ba80172 r4.tex
a381c595b663d8b3cffc39ac5ba80172 today.tex

today.tex is actually identical to r4, not r3 as expected.

This is on ubuntu natty (2.2.4-0ubuntu1).

Tags: revspec
Jelmer Vernooij (jelmer)
Changed in bzr:
importance: Undecided → High
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: added: revspec
removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

The behaviour is as documented: date: matches on anything *after* the specific date or time.

I'm close this, though it might be worth having a discussion about what people actually expect this to work like - since it might not be the same.

Changed in brz:
status: Triaged → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.