downgrade XNAT

30 views
Skip to first unread message

Miklos Espak

unread,
Apr 18, 2013, 10:44:51 AM4/18/13
to xnat_di...@googlegroups.com
Hi,

does somebody know here how to downgrade XNAT?

My xnat-builder directory is a clone of the hg repository. I'm having problems with the tip, and want to revert to revision 1429 (v1.6.1).

Is there something like "git reset --hard <commit>" in mercurial?

I ran these commands:
hg revert -r 1429 --all
hg update -C

Is this correct? It shows a lot of not tracked files in the working copy, like:

...
? plugin-resources/webapp/xnat/applet/jackson-mapper-asl-1.8.5.jar
? plugin-resources/webapp/xnat/applet/jackson-mapper-asl-1.8.5.jar.pack.gz
? plugin-resources/webapp/xnat/applet/spring-beans-3.0.5.RELEASE.jar
? plugin-resources/webapp/xnat/applet/spring-beans-3.0.5.RELEASE.jar.pack.gz
? plugin-resources/webapp/xnat/applet/spring-core-3.0.5.RELEASE.jar
...

Once the working copy is reverted, I have to run bin/update.sh and not bin/setup.sh, right?

Sorry for the basic question.

Thank you,
Miklos

Herrick, Rick

unread,
Apr 18, 2013, 10:57:17 AM4/18/13
to xnat_di...@googlegroups.com

Miklos,

 

You should just be able to do:

 

hg update -r 1429

 

That should roll all of the updates since then back to that revision. From there, yes, you should do bin/update.sh. I would strongly encourage you to dump your database beforehand and also back up the web app folder as well!

 

What was the specific issue you were having with the dev tip code?

--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To post to this group, send email to xnat_di...@googlegroups.com.
Visit this group at http://groups.google.com/group/xnat_discussion?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 




The material in this message is private and may contain Protected Healthcare Information (PHI). If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.

Miklos Espak

unread,
Apr 18, 2013, 11:20:06 AM4/18/13
to xnat_di...@googlegroups.com
Hi Rick,

yes, I first tried this command, but the log says I'm at revision 1719 what I find confusing.

--------------------------
[tomcat@cmic-xnat cmic-xnat-builder]$ hg update -r 1429
443 files updated, 0 files merged, 187 files removed, 0 files unresolved
[tomcat@cmic-xnat cmic-xnat-builder]$ hg status
[tomcat@cmic-xnat cmic-xnat-builder]$ hg log | head
changeset:   1719:81add4cb06d1
tag:         tip
user:        Mark Florida <flor...@mir.wustl.edu>
date:        Wed Apr 17 15:58:39 2013 -0500
summary:     login box tweaks, tweaked alert/error/warning/message boxes (similar to Twitter bootstrap), code cruft cleanup (bonus markup removed)
--------------------------------------------------

So, which revision I'm at, actually?

I backed up the database.

I cannot upload any image currently. The upload with the applet completes but the image does not appear neither in the prearchive nor in the project. This might be a problem with the anonymisation script, eventually, I have not checked.

I cannot upload images through the REST interface either. I sent an e-mail to this list last week, and Tim confirmed that this might be a bug introduced since the last release.

If the downgrade solved these problems, I would be perfectly fine with that.

Thanks,
Miklos

Miklos Espak

unread,
Apr 18, 2013, 11:57:53 AM4/18/13
to xnat_di...@googlegroups.com
OK, there is a "hg summary" command that shows that the working copy is at 1429. The "hg log" shows the complete history.

Thanks,
Miklos

Herrick, Rick

unread,
Apr 18, 2013, 2:34:08 PM4/18/13
to xnat_di...@googlegroups.com

Yes, sorry, started to respond to this and then have been in meetings since then!

 

The other command you can use for this is id. The basic command gives you the revision hash, with --debug you get the full hash, and with -n you get the revision number:

 

nrg > hg id

57895edf0840

 

nrg > hg id --debug

57895edf084070e19c0d6d88e5f205cbcc20f9f8

 

nrg > hg id -n

32

--

You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To post to this group, send email to xnat_di...@googlegroups.com.
Visit this group at http://groups.google.com/group/xnat_discussion?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Miklos Espak

unread,
Apr 18, 2013, 2:37:43 PM4/18/13
to xnat_di...@googlegroups.com
No problem. Thanks, that's useful.

Miklos

Reply all
Reply to author
Forward
0 new messages