Updating Mercurial-hg to a specific date on a named branch

I am currently working on a project that has several mercury repositories. Each mercury repository contains source code for a library or binary, all of which are being actively developed.

You can imagine that compatibility between products created from each repository can quickly become a problem. One way to alleviate this problem is to update each local repository on compatible branches, and then update to a specific date in these branches - with a view that was compatible with branches at any given time.

In the named branch, say, V0.X, in the tag V0.1

hg identify

gives

934ad264137e (V0.X) V0.1

It then updates to a specific date (I still want to stay on branch V0.X)

hg update -d "<10/28/11"

now identify

hg identify; hg branch

gives

51a072771de7 tip
default    

- , ?

.

.

+5
1
hg help revset
"branch(string or set)"
  All changesets belonging to the given branch or the branches of the
  given changesets.

...

" ()"       , . "Hg help date".

,

  • hg log -r "branch ('V0.X') ( ('< 10/28/11'), )"
  • N
  • hg update -r N
+2

All Articles