bookmarks and branches again: files

Uwe Brauer oub at mat.ucm.es
Wed Jul 13 08:18:43 UTC 2016



   > The `hg update` is unnecessary. `hg bookmark book2` creates book2 on
   > the current revision and makes it the active bookmark.

Ok, maybe I was confusing this with branches, after creating a branch I
have to update to that branch.


   > Now you've gone back to a commit that doesn't have test2.txt in it.


   > As expected, test2.txt is not in this revision.


   > But it is in here.


   > Indeed, as expected, you have the commit formerly bookmarked 'master'
   > checked out (which by the way in hg should be spelled '@' instead).


Why, I think I have read this somewhere, that @ is recommended but why?


   > If you now check out the commit that was labelled 'book2', you would
   > have test2.txt back. The commits don't go anywhere when you delete the
   > bookmark, only the bookmarks do.

The problem is, how do I know which commit I have to checkout, after
having deleted the bookmark? Is there any command which would allow me
to list all the files which have been added in any revision?

Uwe 




More information about the Mercurial mailing list