How to save Required Revisions Fetching From the log History?

Asked by santosh nair

Hi ,

I am a regular user of bazaar, i want to fetch a certain revision from the log history (eg: if i commited 4 changes in a file then i can see 4 revisions in the log history,but while tring to save a revision say: 2nd one locally, which is shown in the history in binary format , i am not eble to do ) , how to do this ? is it posiible or not in bazaar?
Any help soon is highly appreciated.

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
John A Meinel (jameinel) said :
#1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

santosh nair wrote:
> New question #120974 on Bazaar:
> https://answers.launchpad.net/bzr/+question/120974
>
> Hi ,
>
> I am a regular user of bazaar, i want to fetch a certain revision from the log history (eg: if i commited 4 changes in a file then i can see 4 revisions in the log history,but while tring to save a revision say: 2nd one locally, which is shown in the history in binary format , i am not eble to do ) , how to do this ? is it posiible or not in bazaar?
> Any help soon is highly appreciated.
>

Can you clarify what you mean by "save a revision locally"? You want to
get the copy of the file on disk? You want to make sure it is in the
repository? you want to see the diff for that revision of the content of
a binary file? Etc.

It is pretty unclear what you are asking for. (bzr revert -r X FILE, bzr
cat FILE -r X, bzr diff -r X FILE, etc)

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxla0gACgkQJdeBCYSNAANNxgCfeORHKdW9vKfgnBoDS3ZCXEuB
I/kAni8UxFaafFJMeO2ohfqy+z0Kmodr
=zKy9
-----END PGP SIGNATURE-----

Revision history for this message
santosh nair (source009) said :
#2

Yes Mr John I need To compare All The Differences last comitted For a Certain Revision (NOTE: The Base File for that revision may be a .xls file or may be a .doc file or .rpt file) , Thnaks.

Revision history for this message
Parth Malwankar (parthm) said :
#3

Hi Santosh,

Lets say you have 10 revisions of foo.doc and you want to compare the difference between version 5 and the latest. You can do the following:

bzr cat foo.doc -r 5 > foo-5.doc # this gets revision 5 of the file into foo-5.doc

As you already have the latest revision of foo.doc you should be able to use the built-in compare feature of Word to compare the file.
Basically for a binary file you will need to use whatever special tool can diff the file.
There is also the docdiff plugin you can look at:
http://doc.bazaar.canonical.com/plugins/en/docdiff-plugin.html

If you need to diff text files in bzr, lets say between the latest and rev 5, you can simply do:

bzr diff -r 5 foo.txt

There are various ways of specifying the argument for the -r option. This is explained in 'bzr help revisionspec'

Can you help with this problem?

Provide an answer of your own, or ask santosh nair for more information if necessary.

To post a message you must log in.